Skip to main content
GET
Generate customer portal authentication token

Headers

X-API-Key
string

Query Parameters

api_key
string

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

customerId
string

The customer's Shopify ID, as a number or as gid://shopify/Customer/987654321. Send this or email

email
string

The customer's email, as saved on their subscription. Send this or customerId

Response

The customer ID and the token

appstleExternalToken
string | null

Always null from customer-portal-token

customerId
integer<int64>

The customer's Shopify ID

Example:

987654321

token
string

The customer portal token, valid for 2 hours from when it was generated

Example:

"TOKEN"