Customers

Create Customer Token

Mints a customer-dashboard token so a custom storefront can act as this customer. Call this server-to-server only; never expose your API key in the browser. The customer can revoke minted tokens via "log out other sessions", so handle 401 responses by minting a new token.

post/v1/shops/{shopId}/customers/{customerId}/token

Request body

expires_ininteger

Token lifetime in seconds, 60 to 2592000 (30 days). Defaults to 30 days.

Changes

No recorded changes to this endpoint across all 2 revisions of this API.