Skip to main content
POST
Guest Universal Promo Codes must be enabled for your account by Thanx. See Guest Universal Promo Codes for the full flow.
Send your Merchant-owned OAuth app’s client_id / client_secret in the JSON request body, the same way you call Acquire Access Token. No Merchant-Key header is needed for this call. This route is served under /loyalty-api/, not /api/. Reuse a token until it expires instead of minting one per basket.

Parameters

string
required
Must be client_credentials.
string
required
Your Merchant-owned OAuth app’s Client ID
string
required
Your Merchant-owned OAuth app’s Client Secret
HTTP Basic client_id:client_secret is also accepted; when an Authorization: Basic header is sent, it is used instead of the body. Never send the credentials in the URL query string — that returns invalid_client.

Response

string
The guest Bearer token, for use on Create & Update Basket.
string
The type of token, Bearer
integer
Token lifetime in seconds. Currently 1800 (30 minutes). There is no refresh token — re-mint a new guest token once the current one expires.
string
The OAuth scopes configured on your app. This echoes your app’s own configuration and varies per integration.

Errors