For the complete documentation index, see llms.txt. This page is also available as Markdown.

Braintree

Braintree is a payment platform owned by PayPal that handles payment processing, recurring billing, and subscription management. It's widely used by SaaS companies and e-commerce businesses to manage transactions, plans, and customer payment profiles.

Connecting Braintree to Coupler.io lets you pull your payment data out of the gateway and into your reporting or analytics stack — without writing any code.

Why connect Braintree to Coupler.io?

  • Analyze transaction volume, revenue trends, and dispute rates in Google Sheets, Looker Studio, or BigQuery

  • Combine subscription and plan data using Join or Aggregate to track MRR and churn

  • Send payment insights to AI tools like ChatGPT, Claude, or Gemini for summaries and anomaly detection

  • Append data from multiple Braintree merchant accounts into a single destination

Prerequisites

  • A Braintree account with API access (available on all plans)

  • Your Merchant ID, Public Key, and Private Key — found in the Braintree Control Panel under Settings > API

  • Know whether you're connecting to the Sandbox or Production environment

Quick start

How to connect

1

Create a new data flow in Coupler.io. From your Coupler.io dashboard, click Add data flow and select Braintree as your source.

2

Enter your Braintree API credentials. You'll need your Merchant ID, Public Key, and Private Key. Grab these from the Braintree Control Panel under Settings > API. Select Production or Sandbox depending on which environment you want to pull data from.

3

Set a start date. Use the date picker to choose how far back you want to pull historical data. Records before this date won't be included.

4

Choose the entity you want to export. Select from Transactions, Subscriptions, Customers, Disputes, Plans, Discounts, or Merchant Accounts.

5

Pick a destination and run the data flow. Connect to Google Sheets, Excel, BigQuery, Looker Studio, or an AI destination like ChatGPT or Claude. Then run the data flow manually to confirm everything is working.

Available entities

Entity
Description

Transactions

Payment transactions processed through Braintree

Subscriptions

Recurring billing records and subscription status

Customers

Customer profiles and contact details

Disputes

Chargebacks and payment disputes

Plans

Subscription plans and pricing structures

Discounts

Discount codes and promotional offers

Merchant Accounts

Merchant account configuration details

Braintree data overview

Braintree exposes seven entities through Coupler.io, covering the full lifecycle of a payment — from a customer profile and subscription plan, through a processed transaction, all the way to a chargeback dispute.

Entities at a glance

Entity
Best used for

Transactions

Revenue reporting, payment volume, refund analysis

Subscriptions

MRR tracking, churn, billing status

Customers

Customer segmentation, contact data

Disputes

Chargeback rate monitoring, dispute outcomes

Plans

Plan mix analysis, pricing tier breakdowns

Discounts

Promo usage tracking, discount impact on revenue

Merchant Accounts

Gateway configuration audits

Transactions

Key fields

Field
Description

id

Unique transaction identifier

amount

Transaction amount

status

e.g., settled, failed, voided, refunded

created_at

Timestamp when the transaction was created

updated_at

Timestamp of last status change

currency_iso_code

Currency of the transaction

payment_instrument_type

e.g., credit card, PayPal

merchant_account_id

Which merchant account processed this

order_id

Your internal order reference

refund_ids

Linked refund transaction IDs

Subscriptions

Key fields

Field
Description

id

Subscription ID

status

Active, canceled, past due, expired

plan_id

The plan this subscription is on

price

Current billed amount

billing_day_of_month

Day billing renews each month

first_billing_date

Start of billing

paid_through_date

Coverage end date

number_of_billing_cycles

Total cycles configured

current_billing_cycle

Current cycle count

Customers

Key fields

Field
Description

id

Customer ID

email

Customer email address

first_name / last_name

Customer name

company

Company name if provided

created_at

When the customer was created

phone

Contact phone number

Disputes

Key fields

Field
Description

id

Dispute ID

amount

Amount under dispute

status

Open, won, lost, accepted

reason

Dispute reason code

received_date

When the dispute was filed

reply_by_date

Deadline to respond

transaction_id

Linked transaction

Plans

Key fields

Field
Description

id

Plan ID

name

Plan display name

price

Plan price

billing_frequency

Billing cycle in months

currency_iso_code

Plan currency

trial_period

Whether a trial is included

trial_duration

Trial length

Discounts

Key fields

Field
Description

id

Discount ID

name

Discount name

amount

Fixed discount amount

number_of_billing_cycles

How many cycles the discount applies

Common field combinations

  • Transaction + Merchant Account — Use a Join to attribute revenue by merchant account

  • Subscription + Plan — Join on plan_id to analyze revenue by pricing tier

  • Dispute + Transaction — Join on transaction_id to calculate chargeback rates per payment method or merchant account

  • Subscription + Customer — Join to build a customer-level MRR and churn view

Use cases by role

  • Pull Transactions daily into Google Sheets or BigQuery to reconcile revenue

  • Use Aggregate to sum settled transaction amounts by day, week, or currency

  • Track dispute amounts and outcomes to monitor chargeback exposure

  • Join Subscriptions and Plans to calculate MRR by pricing tier

  • Analyze plan distribution and trial conversion by joining Plans and Subscriptions

  • Monitor discount usage and its impact on billed revenue

  • Feed subscription churn data into ChatGPT or Claude for narrative summaries

  • Export Merchant Accounts to audit gateway configuration across environments

  • Use Append to combine Sandbox and Production transaction data for comparison

  • Track dispute reply deadlines to avoid automatic losses

Platform-specific notes

  • Braintree uses cursor-based pagination internally — large transaction exports may take longer on the first run

  • The start_date parameter applies primarily to Transactions and Subscriptions; static entities like Plans and Discounts return all records regardless

  • Sandbox and Production are separate environments — make sure your credentials match the environment you want to report on

  • Refunds appear as separate transaction records linked via refund_ids, not as negative line items on the original transaction

Braintree common issues

Connection issues

Invalid credentials error when connecting

Double-check that you're using the correct Merchant ID, Public Key, and Private Key from the Braintree Control Panel under Settings > API. These are environment-specific — Sandbox credentials won't work against Production and vice versa. Make sure the environment you selected in Coupler.io matches the credentials you've entered.

Connection succeeds but no data loads

This usually means the start date is set too far in the future, or you've selected an entity (like Plans or Discounts) that has no records yet in your account. Try setting an earlier start date or switching to the Transactions entity to confirm the connection is working.

Missing data

Transactions from a certain period are missing

Braintree applies the start date filter to transaction created dates. If you moved the start date forward, earlier transactions are excluded. Reset the start date using the date picker to cover the period you need, then re-run the data flow.

Refunds aren't showing up

Refunds in Braintree are recorded as separate transaction records, not modifications to the original. Make sure your Transactions export covers the date range when the refund was processed — it will have its own created_at timestamp and a type of credit.

Plans, Discounts, or Merchant Accounts return no data

These entities are static and don't filter by date. If they're returning empty, it likely means none have been created in your Braintree account yet. Verify in the Braintree Control Panel that the relevant records exist.

Permission errors

API key doesn't have permission to access disputes or subscriptions

Braintree API keys inherit the permissions of the user or role they belong to. If you're seeing access errors for specific entities, check in the Braintree Control Panel that the API user has the necessary role permissions — for example, dispute access may require an elevated role.

Data discrepancies

Transaction amounts don't match my Braintree dashboard totals

The Braintree dashboard typically shows settled amounts only. Your Coupler.io export includes all transaction statuses (authorized, submitted for settlement, failed, voided, etc.). Filter by status = settled in your destination to match dashboard figures.

Subscription counts differ between Coupler.io and Braintree

Expired or canceled subscriptions are included in Coupler.io exports. If the Braintree dashboard shows only active subscriptions, apply a status = Active filter in your destination sheet or BI tool.

Rate limits

Data flow times out or fails on large transaction exports

Braintree's API can be slow when paginating through large transaction histories. If you hit timeouts, try narrowing the start date to reduce the volume of records per run. Once your historical data is loaded, future incremental runs will be much faster.

Braintree FAQ

Which Braintree credentials do I need to connect?

You need three values from the Braintree Control Panel under Settings > API: your Merchant ID, Public Key, and Private Key. You'll also need to know whether you're connecting to the Sandbox or Production environment, since each has its own set of credentials.

Can I export data from both Sandbox and Production?

Yes, but you'll need a separate data flow for each environment. Sandbox and Production have different API credentials and completely separate data — they can't be combined in a single data flow.

How does the start date affect which records are exported?

The start date filters Transactions and Subscriptions by their created_at date. Any records created before the start date won't be included. Static entities like Plans, Discounts, and Merchant Accounts ignore the start date and always return all records.

Why do my transaction totals look higher than what Braintree's dashboard shows?

Braintree's dashboard typically displays settled amounts only. Coupler.io exports include all statuses — authorized, submitted for settlement, failed, voided, and refunded. Filter your export to status = settled to match the dashboard.

Can I pull data from multiple Braintree merchant accounts?

Each merchant account lives under the same Braintree gateway credentials, so a single data flow will capture transactions across all merchant accounts. The merchant_account_id field on each transaction tells you which account it belongs to. If you need to combine data from entirely separate Braintree gateways, use Coupler.io's Append transformation.

Are refunds included in the Transactions export?

Yes — refunds appear as separate transaction records with a type of credit, not as modifications to the original transaction. Make sure your start date covers the date the refund was processed, as it will have its own created_at timestamp.

Can I use Braintree data with AI tools?

Yes. Coupler.io supports AI destinations including ChatGPT, Claude, Gemini, Perplexity, Cursor, and OpenClaw. You can send your transaction or subscription data directly to these tools for summaries, anomaly detection, or financial narrative generation.

How do I calculate MRR from Braintree data?

Join the Subscriptions entity to the Plans entity on plan_id to get the price and billing frequency for each active subscription. Filter subscriptions to status = Active, then aggregate the price field — adjusting for billing frequency if you have both monthly and annual plans.

For a full list of available fields per entity, see the Data Overview. For setup tips and date filter guidance, check Best Practices.

Last updated

Was this helpful?