Auth
Create Access Token
POST
Scope required:
auth.createParameters
string
required
Merchant ID
string
Thanx User ID. One of
user_id, email, or phone must be specified.string
Email address. One of
user_id, email, or phone must be specified.string
Phone number in E.164 format
(e.g.
+14155551212). One of user_id, email, or phone must be
specified.integer
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
string
The user’s access token, for use in accessing the Consumer API
string
The type of token, “Bearer”
string
The API scopes granted to the access token
integer
The number of seconds since the epoch
integer
The number of seconds after which this access token will expire