Expired token cannot use sandbox anylonger

Hi

when doing the request https://api.sandbox.stuart.com/oauth/token
we obtain a expired access token ? how to refresh it ?

{
“access_token”: “<access_token>”,
“token_type”: “Bearer”,
“expires_in”: 2629746, => 1970
“scope”: “api”,
“created_at”: 1623255637
}

regards

Raphaël

Hello @ralphs17,

A new access token expires after 30 days, you can find more information about When should I renew my oAuth2 access token? and also our OAuth Authentication in general by following these links.

Hopefully, this answers your question, but do let us know if we can help further.

Hi @ralphs17,

The expires_in represents the 30 days lifetime of the token (express in seconds)
While the created_at value is the unix timestamp of the token creation time.

We will update the description to make it clearer in the documentation but you should not have any issue using this token.

Best

2 Likes