Skip to main content
Sent to your app’s webhook just before a connection ends. It tells you to stop showing that business as connected and to throw away its tokens. Only your app receives it, on the webhook Bachs set up for that business when you swapped the code. The business’s own webhooks never get it, and your app cannot subscribe to it: it always comes.

Event fields

string
The event’s unique identifier, prefixed evt_. Use it to deduplicate deliveries.
string
Always app.deauthorized.
string
When the connection ended, in UTC.
string
The business that was connected.
string
Always app_authorization.
string
The connection’s id.
string
The business that was connected. Matches organization_id and the account_id you got when you swapped the code.
string
Your app’s client_id.
string
Why it ended: merchant (the business disconnected), app (your server revoked it), expired (no refresh for 90 days), deleted (you deleted the app) or suspended (Bachs suspended the app).

What to do on receipt

Mark the business as disconnected and delete its access and refresh tokens and its webhook signing secret. Do not retry the old tokens: they already stopped working. To work with the business again, send it through a new connection.