availability

OAuth is in closed beta in production, and open beta in sandbox. To request production access, email auth@braintreepayments.com.

OAuth enables separate Braintree accounts to securely connect with each other and share information. You can use OAuth either on its own or in conjunction with other Braintree functionality like the Grant API and Shared Vault.

Our OAuth implementation follows the OAuth 2.0 specification.

OAuth sequence

  1. Your server generates a connect URL that specifies your requested OAuth scopes and a redirect URI where a merchant will be sent after authorization
  2. A Braintree merchant clicks a Connect with Braintree button on your site or mobile app, which sends them to the connect URL
  3. At the connect URL, the merchant logs into their Braintree account and agrees to your requested OAuth scopes
  4. Braintree sends the merchant to your redirect URI and includes an authorization code as a query parameter in the URI
  5. Your server uses this authorization code to create an access token for the merchant, which you can then use to make authorized API calls on the merchant's behalf

Next Page: Configuration →

Still have questions?

If you can’t find an answer, contact our Support team