# Braintree integration

> PayPal-owned payments gateway. Single-endpoint GraphQL API for charging, refunding, vaulting payment methods, and managing customers and transactions.

- Authentication: apiKey

## Tools (23)

- **Authorize Payment Method**: Authorize (hold) funds on a payment method without submitting for settlement.
- **Capture Transaction**: Capture (settle) a previously authorized transaction; supports partial capture.
- **Charge Credit Card**: Authorize and submit for settlement a transaction against a single-use card nonce.
- **Charge Payment Method**: Authorize and submit for settlement against any payment method (vaulted or single-use).
- **Convert Legacy ID to Global ID**: Translate a classic numeric ID (transaction, customer, etc.) into a GraphQL global ID.
- **Create Client Token**: Generate a client token used to initialize the client-side Braintree SDKs.
- **Create Customer**: Create a customer record in the vault.
- **Delete Customer**: Permanently delete a customer and their vaulted payment methods.
- **Delete Payment Method From Vault**: Permanently remove a vaulted payment method.
- **Get Authenticated Viewer**: Return information about the currently authenticated merchant/API caller.
- **Node Lookup by ID**: Fetch any object (transaction, customer, payment method, dispute, verification) by its global GraphQL ID.
- **Perform 3D Secure Lookup**: Run a 3D Secure lookup/authentication on a single-use payment method.
- **Ping (Health Check)**: Validate credentials and the Braintree-Version header; returns the string "pong".
- **Refund Transaction**: Refund a settled transaction, in full or partially.
- **Reverse Transaction**: Void or refund a transaction automatically depending on its settlement state.
- **Search Customers**: Paginated search over customers by ID, email, name, company, and other attributes.
- **Search Disputes**: Paginated search over disputes by status, reason, case number, or related transaction.
- **Search Transactions**: Paginated search over transactions by status, amount, date, customer, order ID, and more.
- **Search Verifications**: Paginated search over payment method verifications by status, date, or payment method.
- **Tokenize Credit Card**: Tokenize raw card details into a single-use payment method ID (nonce).
- **Update Customer**: Update fields on an existing customer.
- **Vault Payment Method**: Store a single-use payment method in the vault, optionally attaching it to a customer.
- **Void Transaction**: Void an unsettled (authorized or submitted-for-settlement) transaction.

## Related prompts

- [Daily Braintree declined-payment recovery digest to Slack](https://www.generalinput.com/prompts/daily-braintree-declined-payment-recovery-digest-to-slack.md)
- [Track new Braintree disputes before the deadline slips](https://www.generalinput.com/prompts/track-new-braintree-disputes-before-the-deadline-slips.md)
- [Weekly Braintree revenue and refund report for finance](https://www.generalinput.com/prompts/weekly-braintree-revenue-and-refund-report-for-finance.md)
- [Sync settled Braintree payments into Xero every night](https://www.generalinput.com/prompts/sync-settled-braintree-payments-into-xero-every-night.md)

Connect Braintree in General Input: https://www.generalinput.com/apps/braintree