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/6789012345. Send this or email

email
string

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

Response

The customer ID and the token

customerId
integer<int64>

The customer's Shopify ID

Example:

6789012345

token
string

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

Example:

"TOKEN"