B

Braintree GraphQL API

GraphQL discovered

Details
Endpoint
https://payments.sandbox.braintree-api.com/graphql
Spec
introspection
Docs
https://developer.paypal.com/braintree/graphql/
Authentication
Gateway API keys (public key + private key) for a Braintree merchant account basic discovered Get credentials ↗
Authorization: Basic <credential>

Log in to the appropriate Braintree Control Panel for your environment — sandbox or production. Open the gear menu, choose API, and copy your public key, private key, and merchant ID from the API Keys section as described in Important Gateway Credentials. Keep the environment (sandbox or production) with the keys, since Braintree issues different credentials per environment.

Braintree OAuth access token for acting on behalf of merchant accounts bearer discovered Get token ↗
Authorization: Bearer <credential>

Create or configure a Braintree OAuth application from the Braintree OAuth docs starting at OAuth overview. Implement the merchant-facing OAuth flow to obtain an access token for each connected merchant, then use that token as a bearer token in API calls. For in-person integrations, Braintree’s API Authentication guide confirms this bearer-token option for third-party applications.