Auth
Create Access Token
POST
Scope required:
auth.createParameters
Merchant ID
Thanx User ID. One of
user_id, email, or phone must be specified.Email address. One of
user_id, email, or phone must be specified.Phone number in E.164 format
(e.g.
+14155551212). One of user_id, email, or phone must be
specified.The number of seconds after which this access token will expire. Defaults to
no expiration for integrations that require long-lived access tokens. If your
integration does not require long-lived access tokens, we highly recommend
this value to be specified. The allowed values are between 60s and 3600s
(1 hour).
Besides phone formatting (above),
Unknown user is also returned when the user
does not exist on Thanx, or exists but is not an enrolled loyalty member at
this merchant (a marketing subscriber is not sufficient). Enroll the user with
POST /users first, then retry.Response
The user’s access token, for use in accessing the Consumer API
The type of token, “Bearer”
The API scopes granted to the access token
The number of seconds since the epoch
The number of seconds after which this access token will expire