Customer Token Refresh
POST/customer/token/refresh
This is used to get a new end-user access token using the refresh token. This needs to be done before the refresh token expires. If it has already expired, you need to do the authentication step from the stretch.
Request
- application/json
Body
refreshToken stringrequired
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- example
Schema
status stringrequired
reason stringrequired
rejectCode integerrequired
Find error codes here
accessToken string
refreshToken string
accessTokenExpiresAt integer
UTC time
refreshTokenExpiresAt integer
UTC time
tokenType string
Example: bearer
{
"status": "string",
"reason": "string",
"rejectCode": 0,
"accessToken": "string",
"refreshToken": "string",
"accessTokenExpiresAt": 0,
"refreshTokenExpiresAt": 0,
"tokenType": "bearer"
}
{
"status": "SUCCESS",
"reason": "auth token generation success",
"rejectCode": 0,
"accessToken": "O0AeyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyb2xlIjoiY3VzdG9tZXIiLCJwcm92aWRlciI6Im9tcyIsImlzcyI6IkdUTiIsImluc3RDb2RlIjoiVFJBREVfQVBJX0lOU1RfT05FIiwiY3VzdG9tZXJOdW1iZXIiOiJBU0kxMTEwNTMxNTIiLCJlbnYiOiJBU0lBLVVBVCIsImV4cCI6MTcwOTA0Njc2OCwiaWF0IjoxNzA5MDEwNDY4LCJqdGkiOiJiZGNkYzVmMC1mODcyLTQ2NWEtYTBlMC0zZGRjZTI0ZmZjOTkifQ.zTuSBSICWTohSTAIGW5aMTn6xRNMSPLWh4RDv3kyZb8",
"refreshToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyb2xlIjoiY3VzdG9tZXIiLCJwcm92aWRlciI6Im9tcyIsImlzcyI6IkdUTiIsImluc3RDb2RlIjoiVFJBREVfQVBJX0lOU1RfT05FIiwiY3VzdG9tZXJOdW1iZXIiOiJBU0kxMTEwNTMxNTIiLCJlbnYiOiJBU0lBLVVBVCIsImV4cCI6MTcwOTA4Mjc2OCwiaWF0IjoxNzA5MDEwNzY4LCJqdGkiOiIwMGVjZWJlNi0yY2Y1LTRlNzctOTI0YS0xMTM0OTVmNzQ4M2EifQ.E5YfHyYVyzWcU3qaDNgXPrZIXXLC5Jxas5CnBSjc6cQ",
"accessTokenExpiresAt": 1709046768697,
"refreshTokenExpiresAt": 1709082768697,
"tokenType": "bearer"
}
Loading...
Is this page helpful for you?