Skip to main content
GET
Generate customer portal link

Headers

X-API-Key
string
required

API Key for authentication

Path Parameters

customerId
integer<int64>
required

The customer's Shopify ID: the number at the end of gid://shopify/Customer/987654321

Required range: x >= 1

Query Parameters

api_key
string

API Key (Deprecated - Use X-API-Key header instead)

Response

The link and the time it expires

The link that opens the customer portal signed in as the customer

Example:

"https://your-store.myshopify.com/apps/subscriptions?token=TOKEN"

tokenExpirationTime
string<date-time>

When the link expires, 2 hours after it was generated

Example:

"2026-11-13T00:43:23.175875994Z"