RenewToken
is deprecated.
POST
/oauth2/clients/{client_id}/access-token/renew
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 recomplete 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.
Your application ID, which is available on the OAuth page in the Developer Dashboard.
The renewed access token. This value might be different from the access_token
you provided in your request. You provide this token in a header with every request to Connect API endpoints. See Request and response headers for the format of this header.
The date when the access_token
expires, in ISO 8601 format.
LEGACY FIELD. The ID of the merchant subscription associated with the authorization. The ID is only present if the merchant signed up for a subscription during authorization.
LEGACY FIELD. The ID of the subscription plan the merchant signed up for. The ID is only present if the merchant signed up for a subscription plan during authorization.