Revoke token
documentedRevokes an OAuth token.
POST /oauth2/revokeOAuthno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://connect.squareup.com/oauth2/revoke" \
-X POST \
-H "Square-Version: {{$square_version}}" \
-H "Authorization: Client {{$SQUAREUP_SECRET}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"access_token": "{{$OAUTH2_ACCESS_TOKEN}}", "client_id": "{{$client_id}}", "merchant_id": "{{$merchant_id}}", "revoke_only_access_token": {{$revoke_only_access_token}}}'