Disconnect app from user

The following describes how to disconnect an app from an associated Zettle organisation through the OAuth API. This is valuable when a user disconnects outside of Zettle, and you want to remove access to merchant account data, and clean up registered webhooks. The issued access token for the organisation is used in the disconnection request.

Prerequisites

  • A working authorisation flow set up using either assertion grant, code grant, or code grant with PKCE.

Disconnect app

The following request deletes app connections associated with user data access granted by an access token.
1
DELETE /application-connections/self
Example: Deleting app connections associated with the access token eyJraWQiOiIxN...R5Y6FDNTva7esJ5Q.
Request
1
DELETE application-connections/self HTTP/1.1
2
Host: oauth.zettle.com
3
Authorization: Bearer eyJraWQiOiIxN...R5Y6FDNTva7esJ5Q
Response
1
204 No content