RenewToken
RenewToken is deprecated. For information about refreshing OAuth access tokens, see Migrate from Renew to Refresh OAuth Tokens.
Renews an OAuth access token before it expires.
OAuth access tokens besides your application's personal access token expire after 30 days. You can also renew expired tokens within 15 days of their expiration. You cannot renew an access token that has been expired for more than 15 days. Instead, the associated user must re-complete the OAuth flow from the beginning.
Important: The Authorization header for this endpoint must have the following format:
Authorization: Client APPLICATION_SECRET
Replace APPLICATION_SECRET with the application secret on the Credentials page in the developer dashboard.
Path parameters
Your application ID, available from the developer dashboard.
Request body
Example request
{
"request_body": {
"access_token": "ACCESS_TOKEN"
}
}Response
Success
Example response
{
"access_token": "ACCESS_TOKEN",
"expires_at": "2006-01-02T15:04:05Z",
"merchant_id": "MERCHANT_ID",
"token_type": "bearer"
}