Skip to content

Dataset

Braintree transaction records datasets for AI training

A Braintree dataset is an export of a merchant's Braintree gateway: transactions with their status history, processor response codes and AVS and CVV results, the vaulted customers and payment method tokens behind them, subscriptions and plans, disputes, and the disbursement details of each payout. SourceX sources it to a buyer's spec from established businesses that run Braintree, with customer identity, card fragments and custom fields removed or replaced by pseudonymous keys. Each dataset is de-identified and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
Transactions with status history and processor responses from a merchant's Braintree gateway, with its subscriptions, disputes and disbursement details
Typical systems
Braintree gateway with the Vault, recurring billing, disputes and fraud tools, including PayPal and Venmo payments taken through Braintree
Typical history
Varies by merchant; specify a date range per merchant account and ask whether older transactions still come back in full from search
Modality
Structured transaction, subscription and dispute records with enumerated codes; free text only in dispute evidence comments and custom fields
Delivery formats
JSONL or Parquet per object from the server SDKs or the GraphQL API, or Control Panel CSV downloads
Preparation
Customer, token and card identifiers re-keyed; names, emails, addresses, last four, expiry and Control Panel usernames removed; custom fields screened
Licensing
Scoped per merchant, merchant account and date range; permitted use agreed per license; the Braintree payment services agreement checked by owner and buyer
Availability
Sourced to your spec; payment methods, volume and history depend on the merchant, and supply is not guaranteed
Structured recordsIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
transaction_refstringPseudonymous key replacing the Transaction id, which refunds, disputes and subscriptions refer to.
type_and_amountobjectThe Transaction's type (sale or credit), its amount as a decimal string and its currency ISO code.
merchant_accountstringKeyed merchant account ID from the Transaction, which fixes the currency.
status_historyarrayThe Transaction's StatusHistory entries in order: status, UTC timestamp, amount and transaction source, with the Control Panel user removed.
processor_responseobjectProcessor response code, text and type (approved, soft declined or hard declined), plus any settlement response code.
gateway_rejection_reasonenumSet only on gateway-rejected Transactions: avs, cvv, avs_and_cvv, duplicate, fraud, risk_threshold, three_d_secure and similar values.
verification_resultsobjectThe Transaction's AVS postal code, AVS street address, AVS error and CVV response codes as single letters.
payment_instrumentobjectPayment instrument type and the card details kept from the Transaction: card type, debit, prepaid and commercial flags and country of issuance.
vault_keysobjectStable keys replacing the Customer id, the PaymentMethod token and the card's unique number identifier.
risk_dataobjectRiskData from the merchant's fraud tools: decision (Approve, Review, Decline or Not Evaluated) and decision reasons.
disbursement_detailsobjectDisbursementDetails on eligible merchant accounts: disbursement date, settlement amount, settlement currency, exchange rate, funds held and success.
refund_linksobjectThe refunded transaction ID on a credit and the refund IDs on a sale, re-keyed so each side resolves.
subscriptionobjectKeyed Subscription id with Plan ID, the billing period this Transaction paid for, and any AddOn and Discount applied.
disputesarrayDispute records on the Transaction: kind, reason, reason code, status with its own status history, amounts disputed and won, received and reply-by dates.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "transaction_ref": "txn_7c41e0",
  "type_and_amount": {
    "type": "sale",
    "amount": "49.00",
    "currency_iso_code": "USD"
  },
  "merchant_account": "ma_usd_01",
  "status_history": [
    {
      "status": "authorized",
      "timestamp": "2025-03-03T08:14:22Z",
      "amount": "49.00",
      "transaction_source": "recurring"
    },
    {
      "status": "submitted_for_settlement",
      "timestamp": "2025-03-03T08:14:22Z",
      "amount": "49.00",
      "transaction_source": "recurring"
    },
    {
      "status": "settling",
      "timestamp": "2025-03-04T05:02:10Z",
      "amount": "49.00"
    },
    {
      "status": "settled",
      "timestamp": "2025-03-04T11:40:51Z",
      "amount": "49.00"
    }
  ],
  "processor_response": {
    "code": "1000",
    "text": "Approved",
    "type": "approved"
  },
  "gateway_rejection_reason": null,
  "verification_results": {
    "avs_postal_code_response_code": "M",
    "avs_street_address_response_code": "I",
    "cvv_response_code": "I"
  },
  "payment_instrument": {
    "payment_instrument_type": "credit_card",
    "card_type": "Visa",
    "debit": "Yes",
    "prepaid": "No"
  },
  "vault_keys": {
    "customer_key": "cus_19af",
    "payment_method_key": "pm_5d20"
  },
  "risk_data": {
    "decision": "Approve",
    "device_data_captured": false
  },
  "disbursement_details": {
    "disbursement_date": "2025-03-05",
    "settlement_amount": "49.00",
    "settlement_currency_iso_code": "USD",
    "funds_held": false,
    "success": true
  },
  "refund_links": {
    "refunded_transaction_ref": null,
    "refund_refs": []
  },
  "subscription": {
    "subscription_key": "sub_3e7a",
    "plan_id": "studio-monthly",
    "billing_period_start_date": "2025-03-03",
    "billing_period_end_date": "2025-04-02"
  },
  "disputes": [
    {
      "dispute_key": "dsp_0b64",
      "kind": "chargeback",
      "reason": "cancelled_recurring_transaction",
      "status": "lost",
      "amount_disputed": "49.00",
      "received_date": "2025-04-11",
      "reply_by_date": "2025-04-25"
    }
  ]
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Train retry and recovery policies on real declines

Soft and hard declines, followed by later attempts on the same vault key, show which refusals were worth retrying.

Model the settlement lifecycle

Timed status histories run from authorization to settlement, with voids, expired authorizations and settlement declines along the way.

Build dunning logic for subscriptions

Subscription status history, failure count and days past due, joined to each cycle's transactions, show how past-due accounts recovered.

Support dispute-handling agents

Disputes with kind, reason, reply-by date and a won or lost result are worked cases of when contesting paid off.

Evaluate payout reconciliation

Disbursement details across merchant accounts and currencies make test items with known answers for matching sales to deposits.

Use-case guides: Finance and accounting agents, Enterprise and computer-use agents, Private evaluation sets

What makes this data valuable

Status history intact

Every transaction carries its full list of status entries, not only the current status.

Failures included

Processor-declined, gateway-rejected, failed and voided transactions are present, not just settled sales.

Windows under the cap

The extraction log shows every search window returned fewer results than the search maximum.

Refunds resolve to sales

Each refund's and each dispute's transaction key is found in the delivery.

Disbursement details populated

Settled transactions on eligible merchant accounts carry a disbursement date and settlement amount.

Stable vault keys

One customer or card keeps one key across the delivery, so retries and repeat purchases can be followed.

License terms

Braintree dataset

This page covers braintree gateway transaction records.Illustrative

A Braintree transaction carries its own status history

Braintree puts a payment's path inside the payment record. Each Transaction has a status history, a list of entries that each hold a status, a UTC timestamp, the amount at that step and a transaction source saying whether it came from the API, the Control Panel or recurring billing. A card sale that went well reads authorized, submitted for settlement, settling, settled. One that did not ends in voided, authorization expired or settlement declined.

The reason for a failure sits beside it, and Braintree separates two kinds. A processor decline carries the processor response code and text plus a response type of soft declined or hard declined, so a refusal worth retrying, such as insufficient funds, can be told from one that is not. A gateway rejection is Braintree's own refusal. It carries a gateway rejection reason such as avs, cvv, duplicate, fraud or risk threshold, and it reflects the rules the merchant switched on, not the issuer's view of the cardholder. A model trained on declines needs the two kept apart.

The pattern repeats one level up. A Subscription keeps a status history whose entries hold the price and balance at each change, and a Dispute keeps one with effective dates. What Braintree overwrites is the Vault. A Customer and its payment methods are current state with an updated time, so the card on file today may not be the card an old transaction charged. Read card attributes from the transaction and treat the Vault as a snapshot from the day of the pull.

Braintree search caps and per-currency merchant accounts shape the extract

A Braintree gateway is not one ledger. Each transaction belongs to a merchant account, and the merchant account fixes the currency, so a merchant selling in three currencies has at least three. On eligible merchant accounts a settled transaction is stamped with disbursement details: the disbursement date, the settlement amount and currency, the exchange rate applied, whether funds were held and whether the disbursement succeeded. Grouped by merchant account and disbursement date, these rebuild the bank deposits. On other accounts the block is empty, which means not available, not unpaid.

Extraction runs through search. Braintree's reference states that a transaction search returns at most 50,000 results and every other search at most 10,000. The server first returns the matching IDs and the SDK fetches each record as the caller iterates, so a record deleted mid-run, or updated so that it no longer matches, is skipped. A full extract is therefore a series of date windows per merchant account, each under the cap, and a window whose count reaches the maximum cannot be treated as complete. The Control Panel's CSV download is a separate path with its own search limits, and its columns vary with the account's setup.

Test a sample in three ways. Count transactions per day per merchant account and look for flat tops or gaps at window edges. Follow the links: a refund is its own transaction of type credit carrying the refunded transaction ID, the sale lists its refund IDs, and every dispute names its transaction, so each should resolve inside the delivery. Then ask what sits outside the transaction record. Card processing fees do: Braintree reports them in a Transaction-Level Fee Report, run in the Control Panel per merchant account and date range, which is not offered on every account, leaves out PayPal transactions and gives only estimated interchange on interchange-plus pricing. Ask too whether older transactions came back in full, since Braintree's search reference says results are limited under a PayPal data protection addendum.

What to check before licensing

  • Have the data owner and your counsel read the Braintree payment services agreement and the PayPal developer terms that cover the API, on exported data and API use, before a permitted use is agreed.
  • Get the list of merchant accounts with the currency of each, and confirm every one is in the extract with its own date range.
  • Ask for the extraction log of search windows and result counts, and have any window whose count reaches the search maximum split and rerun.
  • Check that customer names, emails, phone numbers, addresses and custom fields are removed, along with the Control Panel username in each status history entry.
  • Confirm no raw card data is present: cardholder name, last four, expiry and masked number removed, tokens and the unique number identifier re-keyed, and the BIN kept only if agreed.
  • Confirm declined, rejected, failed and voided transactions are present, and ask which AVS, CVV and risk rules were switched on over the period.
  • Measure the share of settled transactions with disbursement details per merchant account, and ask whether the Transaction-Level Fee Report and dispute evidence files are in scope.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

What does a Braintree transaction record contain?

It contains the payment and its whole path. A Transaction holds the type, amount and merchant account, a status history with a timestamp for each state, the processor response code, text and type, AVS and CVV response codes, card attributes such as card type and debit or prepaid flags, risk data, disbursement details and links to its refunds, disputes and subscription.

Can processor declines be told apart from gateway rejections?

Yes. A processor-declined transaction carries the processor's response code, text and a type of soft declined or hard declined. A gateway-rejected transaction carries a gateway rejection reason instead, such as avs, cvv, duplicate, fraud or risk threshold, which reflects rules the merchant configured. Ask which rules were active during the date range, because a change in settings shifts rejection rates with no change in customers.

How is a full history pulled when Braintree search is capped?

By windowing. Braintree's reference states that a transaction search returns at most 50,000 results and other searches at most 10,000, so the extract is run as date ranges per merchant account that each stay below the cap. Ask for the log of windows and counts. A window whose count reached the maximum cannot be treated as complete and should be split and rerun.

Is card data included in a Braintree dataset?

No raw card numbers are included. Braintree's API returns card details in reduced form, such as BIN, last four, card type, issuing bank, country of issuance and flags for debit, prepaid or commercial cards. For delivery, cardholder name, last four and expiry are removed, and tokens and the unique number identifier are replaced with keys. Decide whether you need the BIN.

Do the records show what the merchant was paid out?

Partly. On eligible merchant accounts each settled transaction carries disbursement details with the disbursement date, settlement amount, settlement currency and exchange rate, plus flags for held funds and success. Processing fees are not in that block. Braintree reports them in a separate Transaction-Level Fee Report from the Control Panel, so ask whether it is in scope and how its rows were matched to transactions. Expect the disbursement block to be empty on accounts where Braintree does not provide it.

Is SourceX affiliated with PayPal?

Braintree is named to identify the system the records come from. That does not imply a partnership with or endorsement by PayPal. The records belong to the business that runs Braintree, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 26 November 2026.

See if your company qualifies