POST /authentication/getToken
Request
Authentication is performed by posting to /authentication/getToken
with the following body:
key
Yes
The key provided to you by 6DOT50. It is uniquely linked to your Merchant account.
secret
Yes
The secret provided to you by 6DOT50.
The key/secret will be different between the Test and Production environments.
Response
If successfully authenticated, the operation will return a token. This token is to be used in subsequent requests to other operations by supplying an Authorization
header with the value bearer
[token]
.
success
boolean
Whether authentication was successful or not.
token
string
If success is true, this is the Bearer token to be used for subsequent calls to the API.
expiresAt
string($date-time)
If success is true, this is the date and time that the token will expire.
Tokens expire every 15 minutes and must be refreshed.
Token Expiry and Refresh
Tokens expire after 15 minutes. Field expiresAt
in the response model can be used to track token expiry.
Call the authentication/getToken
operation again to re-authenticate and receive a new token.
Last updated