# 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

{% hint style="success" %}
Start with the **Transactions** entity to get your payment history flowing first. You can always add Subscriptions, Disputes, or Customers to the same data flow later.
{% endhint %}

## How to connect

{% stepper %}
{% step %}
**Create a new data flow in Coupler.io.** From your Coupler.io dashboard, click **Add data flow** and select Braintree as your source.
{% endstep %}

{% step %}
**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.
{% endstep %}

{% step %}
**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.
{% endstep %}

{% step %}
**Choose the entity you want to export.** Select from Transactions, Subscriptions, Customers, Disputes, Plans, Discounts, or Merchant Accounts.
{% endstep %}

{% step %}
**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.
{% endstep %}
{% endstepper %}

## 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            |
