POST
/oauth2/revoke
Revokes an access token generated with the OAuth flow.
If an account has more than one OAuth access token for your application, this endpoint revokes all of them, regardless of which token you specify. When an OAuth access token is revoked, all of the active subscriptions associated with that OAuth token are canceled immediately.
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 OAuth
page for your application in the Developer Dashboard.
The Square-issued ID for your application, which is available on the OAuth page in the Developer Dashboard.
The access token of the merchant whose token you want to revoke.
Do not provide a value for merchant_id
if you provide this parameter.
The ID of the merchant whose token you want to revoke.
Do not provide a value for access_token
if you provide this parameter.