Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.09 KB

revoke-token-request.md

File metadata and controls

25 lines (17 loc) · 1.09 KB

Revoke Token Request

Structure

RevokeTokenRequest

Fields

Name Type Tags Description
clientId string | undefined Optional The Square-issued ID for your application, which is available in the OAuth page in the
Developer Dashboard.
Constraints: Maximum Length: 191
accessToken string | undefined Optional 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.
Constraints: Minimum Length: 2, Maximum Length: 1024
merchantId string | undefined Optional The ID of the merchant whose token you want to revoke.
Do not provide a value for access_token if you provide this parameter.
revokeOnlyAccessToken boolean | undefined Optional If true, terminate the given single access token, but do not
terminate the entire authorization.
Default: false

Example (as JSON)

{
  "access_token": "ACCESS_TOKEN",
  "client_id": "CLIENT_ID"
}