OAuth

  • Authorize

  • Revoke token

  • Obtain token

  • Retrieve token status

  • Webhooks

  • oauth.authorization.revoked

Development
  • Guides
  • API Reference
  • API Explorer
  • SDKs
  • Sample apps
  • System status
Support
  • Developer forums
  • Developer blog
  • YouTube
  • X
More
  • Square Home
  • Square Developer
  • App Marketplace
  • Partner with Square
  • Solutions Partner Program
  • Pricing
  • Sales

© 2026 Square, Inc.

  • Developer terms of service
  • Developer Integration and Marketing Agreement
  • Privacy policy
  • Partnerships
  • Sign In
  • Sign In

<- OAuth webhooks

OAuth webhooks

All versions ->

oauth authorization revoked

EVENT

 oauth.authorization.revoked

Published when a merchant/application revokes all access tokens and refresh tokens granted to an application.

Link to section

Event payload

Example code

Link to section

merchant_id

string

The ID of the target merchant associated with the event.

Link to section

type

string

The type of event this represents, "oauth.authorization.revoked".

Link to section

event_id

string

A unique ID for the event.

Link to section

created_at

string

Read only Timestamp of when the event was created, in RFC 3339 format.

Examples for January 25th, 2020 6:25:34pm Pacific Standard Time:

UTC: 2020-01-26T02:25:34Z

Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00

Link to section

data

Data associated with the event.

Link to section

Examples

All versions ->

Response JSON

{ "merchant_id": "J9Z30SF99NPFJ", "type": "oauth.authorization.revoked", "event_id": "e1d6ae37-5aa9-45a5-b525-b12caf819fdb", "created_at": "2020-08-14T15:51:04.246373287Z", "data": { "type": "revocation", "id": "415641cf-eba2-4dfa-88cc-c4be1301fdc6", "object": { "revocation": { "revoked_at": "2020-08-14T15:51:00.246373287Z", "revoker_type": "MERCHANT" } } } }