{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/square/main/json-schema/square-revoke-token-request-schema.json",
  "title": "RevokeTokenRequest",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/square-oauth-api-openapi.yml#/components/schemas/RevokeTokenRequest",
  "type": "object",
  "x-release-status": "PUBLIC",
  "properties": {
    "client_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The Square-issued ID for your application, which is available on the **OAuth** page in the\n[Developer Dashboard](https://developer.squareup.com/apps).",
      "maxLength": 191
    },
    "access_token": {
      "type": [
        "string",
        "null"
      ],
      "description": "The access token of the merchant whose token you want to revoke.\nDo not provide a value for `merchant_id` if you provide this parameter.",
      "minLength": 2,
      "maxLength": 1024
    },
    "merchant_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The ID of the merchant whose token you want to revoke.\nDo not provide a value for `access_token` if you provide this parameter."
    },
    "revoke_only_access_token": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "If `true`, terminate the given single access token, but do not\nterminate the entire authorization.\nDefault: `false`"
    }
  },
  "x-sq-sdk-sample-code": {
    "csharp": "/sdk_samples/RevokeToken/RevokeTokenRequest.csharp",
    "java": "/sdk_samples/RevokeToken/RevokeTokenRequest.java",
    "javascript": "/sdk_samples/RevokeToken/RevokeTokenRequest.javascript",
    "php": "/sdk_samples/RevokeToken/RevokeTokenRequest.php",
    "python": "/sdk_samples/RevokeToken/RevokeTokenRequest.python",
    "ruby": "/sdk_samples/RevokeToken/RevokeTokenRequest.ruby"
  }
}