Create access token
POST/jwt/token
Use the Merchant ID and Secret Key | Publishable Key to generate an access token. The returned access token should be used when authorizing future API requests with the Authorization: Bearer <token> header
Request
- application/json
Body
required
Possible values: <= 36 characters, Value must match regular expression ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
UUID v4
Secret or Publishable Key
Responses
- 200
- 403
- 422
- 500
Successfully exchanged the code to create a token
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [success]
data
object
Token response
Possible values: <= 4096 characters
String passed to the authorization server to gain access to the system
Number of seconds the token is valid for.
Possible values: [200]
Possible values: [Successful request]
{
"status": "success",
"data": {
"token": "i1qxz68gu50zp4i8ceyxqogmq7y0yienm52351c6...",
"expires_in": 900
},
"code": 200,
"message": "Successful request"
}
Invalid authentication data provided
Query failed due to query parameters validation failure
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [error]
Possible values: [422]
{
"status": "error",
"data": {
"dob": {
"day": "Value expected to be 'integer', 'string' given."
}
},
"code": 422,
"message": "cannot process the provided entity"
}
Server error