Skip to main content
Follow the REST app guide. Use providerEndpoint with https://payments.braintree-api.com or https://payments.sandbox.braintree-api.com and /graphql. Seal the Base64 value of public_key:private_key as Authorization header auth with prefix Basic . Bind receivers and mounts to the same protected data label. Use one mount per mode and initialize with { profile: { mode: "provider", provider, limit: 25 } }. Both modes retain the ending Relay cursor while Braintree reports more results. The next sweep starts at the first page. Missing records remain landed. Each response supports up to 50 records and 36 KiB and requires the bundled parser artifact. Standalone PayPal invoices belong to the separate PayPal Invoicing API.

Write subscriptions and charge a payment method

Use providerWriter with a write-capable sealed Basic credential and the same protected label. Supply one GraphQL mutation input object, up to 24 KiB. Each caller key binds one exact command. An uncertain task settles as final Unknown. GraphQL errors or a missing returned ID prevent acknowledgment. An acknowledged charge establishes the transaction ID. Use the transaction source to observe settlement. Commands perform no deletes and carry no read cursor. Braintree GraphQL reference · PayPal Invoicing API Submit mode braintree.subscriptions.cancel through the subscription writer with { action: "cancelSubscription", id } using the global subscription ID. The once command requires that ID and CANCELED status in the reply. Cancellation keeps the subscription record and carries no read cursor. Cancel a Braintree subscription