The OAuth connection flow
A user connects to your platform using the following OAuth connection flow:
- From a page on your site, the user clicks a link that redirects them to Stripe, passing along your platform’s
- On Stripe’s website, the user provides the necessary information for connecting to your platform.
- The user is redirected to your site, along with an authorization code.
- Your site then makes a request to Stripe’s OAuth token endpoint to complete the connection and fetch the user’s account ID.
Revoked and revoking access
account.application.deauthorized event occurs when a user disconnects your platform from their account. By watching for this event via webhooks, you can perform any necessary cleanup on your servers.
To disconnect a Standard account from your platform, POST your
client_id and the connected account’s ID to
Now you can use the API on your user’s behalf to accept payments, set up recurring billing, fetch account data, and more: