Refresh Token [v3]
The merchant can use the refresh token API to regenerate a new token
to launch the checkout, if necessary.
Request Body required
This is the refresh token, you have received in the response of Create Order v3 API in the refresh_token
field.
- 200
- 4XX
- 5XX
When the refresh token is successful, the response will be as below
Schema
This is the new token, you will need to use to launch the checkout.
This is the expiry of the token, it is expressed in UTC. The token has an expiry time of 20 minutes.
{
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo0LCJleHAiOjE2MTc4ODkxMjJ9.mBz-d9hizuhLaIBVHYR8eGL5E9mJ0F2gsRfS5VNqrAw",
"token_expiration": "2021-01-09T09:49:57.715413"
}
When the refresh token is not successful, the response will be as below
Schema
The HTTP error status
The message from the server explaining the error
error object
The HTTP error status
The message from the server explaining the error
This is the http status code
The transaction status
error object
The transaction status
The message from the server explaining the error
{}
When there is a problem on the server, the response will be as below
Schema
The HTTP error status
The message from the server explaining the error
{
"status": 500,
"error": "HTTP 500: Internal Server Error"
}