Refresh Customer Token
GET/authentication/refreshCustomerAuthToken
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
Query Parameters
refreshToken stringrequired
refresh token which given by /authentication/customerAuthToken or authentication/customer
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- example
Schema
status stringrequired
Possible values: [SUCCESS
, FAILED
]
reason string
rejectCode integer
Find error codes here)
accessToken stringrequired
refreshToken stringrequired
accessTokenExpiresIn integerdeprecated
UTC time
accessTokenExpiresAt integerrequired
UTC time
refreshTokenExpiresIn integerdeprecated
UTC time
refreshTokenExpiresAt integerrequired
UTC time
tokenType stringrequired
Example: bearer
{
"status": "SUCCESS",
"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.eyJyb2xlIjoiY3VzdG9tZXIiLCJwcm92aWRlciI6Im9tcyIsImlzcyI6IkdUTiIsImluc3RDb2RlIjoiVFJBREVfQVBJX0lOU1RfT05FIiwiY3VzdG9tZXJOdW1iZXIiOiJBU0kxMTEwNTMxNTIiLCJlbnYiOiJBU0lBLVVBVCIsImV4cCI6MTcwOTA0NjU4NywiaWF0IjoxNzA5MDEwMjg3fQ.5SyQjKPCR8L-MgWy-tSj3OvHHCwQQc15XGWPOs6BI6s",
"refreshToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyb2xlIjoiY3VzdG9tZXIiLCJwcm92aWRlciI6Im9tcyIsImlzcyI6IkdUTiIsImluc3RDb2RlIjoiVFJBREVfQVBJX0lOU1RfT05FIiwiY3VzdG9tZXJOdW1iZXIiOiJBU0kxMTEwNTMxNTIiLCJlbnYiOiJBU0lBLVVBVCIsImV4cCI6MTcwOTA4MjU4NywiaWF0IjoxNzA5MDEwNTg3LCJqdGkiOiJjM2U2Y2FiOC1mMjg0LTQzMTktYjE0My05YWY4ZTlhZjhhOGYifQ.4wyKTZhAOoOGDLnbk9PsDtiBM5pEpHJwRikoK04Fnaw",
"accessTokenExpiresIn": 1709046587793,
"refreshTokenExpiresIn": 1709082587792,
"accessTokenExpiresAt": 1709046587793,
"refreshTokenExpiresAt": 1709082587792,
"tokenType": "bearer"
}
Loading...
Is this page helpful for you?