Skip to main content
Braintree → SnowflakeIntegration guide

Connecting Braintree to Snowflake

Braintree is a payment gateway rather than a storefront, so it sits underneath whatever is taking the order and holds the transaction itself. Snowflake's distinguishing feature is that two organisations can join data without either copying it to the other, which turns measurement between partners from a legal negotiation into a query. The join between them succeeds or fails on one thing: whether whatever join key both parties agree on, usually a hashed identifier reaches the Braintree transaction before the conversion happens, because Snowflake can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Braintree transactions in Snowflake: settlement, currency, disputes

Load Braintree transactions, refunds and disputes into Snowflake as separate tables keyed on transaction ID, with your order ID and stored click identifiers. Load incrementally by status change or update time, take currency from the merchant account and convert with a documented rate. Then compare each ad platform's claims with settled revenue net of refunds and disputes.

Snowflake is the right place to reconcile Braintree against everything else, because the processor's view of a payment (authorized, settled, refunded, disputed) rarely matches the order system's or the ad platforms'. Load transactions, refunds and disputes as separate tables keyed on the Braintree transaction ID, with your order ID and any click identifiers from custom fields alongside.

Two Braintree specifics shape the model. Status changes after creation: a transaction moves from authorized to submitted for settlement to settled, and a dispute can open months later, so load incrementally by status change or update time, not creation date. And each merchant account settles in one currency, so currency comes from the merchant account; if you sell in several markets, convert in the warehouse with a documented rate rather than summing raw amounts.

Once settled revenue and click identifiers sit in one table, you can compare what each ad platform claimed with what actually settled, net of refunds and lost disputes, per campaign. If a partner wants to measure jointly, Snowflake sharing lets them query an agreed view; settle whether a sale means authorized or settled before any query runs, because that one definition moves the answer. Card data stays out entirely.

Braintree → Snowflake · what breaks

Why this join usually fails — Braintree → Snowflake

  1. 01

    Whatever join key both parties agree on, usually a hashed identifier never reaches Braintree

    Braintree is a gateway, so it sees the payment and not the marketing. The identifier has to be attached at the point your application creates the transaction, through custom fields, or it never enters Braintree at all.

  2. 02

    A gateway that knows nothing about marketing

    Braintree sees a payment. Whether it can be tied to a click depends entirely on whether your own application attached the identifier when creating the transaction, and most do not.

  3. 03

    A clean room that answers a question nobody agreed on

    The technology makes the join possible; it does not make the definitions match. Two organisations measuring the same campaign will disagree about what a conversion is, which window applies and whose attribution model governs — and the query will return a confident number for whichever set of assumptions got written into the SQL.

  4. 04

    Nothing reconciles afterwards

    Snowflake will not tell you anything is wrong. Verify by querying against each party's own totals and checking for duplicate rows on the join key before trusting any aggregate.

Braintree → Snowflake · the fix

What working looks like — Braintree → Snowflake

  • Whatever join key both parties agree on, usually a hashed identifier on every transaction

  • Conversions arriving in Snowflake

    The row lands in a table you own, joinable to your own data and — through a share or clean room — to a partner's, without either party moving raw records.

  • Reconciled against the source

Braintree → Snowflake · architecture

How Braintree and Snowflake actually connect

  1. 1

    Braintree holds the truth

    Settled and authorised are different states. Authorisation reserves the funds; settlement is money moving, and reporting on the wrong one produces a persistent gap against your bank.

  2. 2

    Snowflake needs a click to match

    A schema both sides agree on, consistent types, and identifiers normalised identically before hashing. The failure mode is not rejection but silent divergence — a timestamp in the wrong zone or a trimmed-versus-untrimmed email produces answers that look plausible.

  3. 3

    The identifier is the bridge

    Whatever join key both parties agree on, usually a hashed identifier, captured at the visit and carried into the Braintree transaction.

  4. 4

    The event source decides reliability

    Fire on settlement rather than authorisation, and note that Braintree's PayPal and wallet flows redirect the buyer away — so the confirmation page is not a reliable trigger.

  5. 5

    Deduplication at the destination

    Nothing deduplicates for you. Loads are at-least-once, so a retried pipeline creates duplicate rows and the only protection is a deduplication step you write and actually schedule.

Braintree → Snowflake · normal or broken

Working vs. broken, side by side — Braintree → Snowflake

Normal, not a fault

  • Whatever join key both parties agree on, usually a hashed identifier present on the transaction

  • Sent from the Braintree transaction settlement webhook

  • Deduplicated correctly

    Nothing deduplicates for you. Loads are at-least-once, so a retried pipeline creates duplicate rows and the only protection is a deduplication step you write and actually schedule.

  • Reconciles with the source

Actually broken

  • Whatever join key both parties agree on, usually a hashed identifier missing on most records

    Braintree is a gateway, so it sees the payment and not the marketing. The identifier has to be attached at the point your application creates the transaction, through custom fields, or it never enters Braintree at all.

  • Sent from the browser

    Braintree sees a payment. Whether it can be tied to a click depends entirely on whether your own application attached the identifier when creating the transaction, and most do not.

  • Counted twice, or not at all

    The technology makes the join possible; it does not make the definitions match. Two organisations measuring the same campaign will disagree about what a conversion is, which window applies and whose attribution model governs — and the query will return a confident number for whichever set of assumptions got written into the SQL.

  • Nobody has reconciled it

Braintree → Snowflake · diagnose

Diagnostic order — Braintree → Snowflake

  1. 01

    Count transactions carrying whatever join key both parties agree on, usually a hashed identifier

  2. 02

    Follow one real conversion end to end

  3. 03

    Open a settled transaction and check its custom fields

    If the identifier is not there, your application never attached it and nothing downstream can recover it.

  4. 04

    Write down both parties' conversion definitions before writing any query

    Definition mismatch, not technology, is what makes most partner measurement projects produce numbers neither side trusts.

  5. 05

    Read the match rate, not the success message

    Snowflake will not tell you anything is wrong. Verify by querying against each party's own totals and checking for duplicate rows on the join key before trusting any aggregate.

Braintree → Snowflake · prove

How it gets proven — Braintree → Snowflake

Source of truth

Braintree's transaction records, filtered to settled, for the same window.

  • Whatever join key both parties agree on, usually a hashed identifier confirmed present on a live transaction.
  • Row counts and revenue reconciled against each source system for a closed window, with duplicates checked on the join key and both definitions documented.
  • A PayPal-funded transaction confirmed to report even though the buyer was redirected away.

Braintree → Snowflake · free audit

What we check in the free audit

  • Count transactions carrying whatever join key both parties agree on, usually a hashed identifier
  • Follow one real conversion end to end
  • Open a settled transaction and check its custom fields
  • Write down both parties' conversion definitions before writing any query
  • Read the match rate, not the success message

Checked against

Braintree's transaction records, filtered to settled, for the same window.

Get my free conversion tracking audit

Free30 minutesNo obligation

Braintree → Snowflake · when not to buy

When you don't need this — Braintree → Snowflake

  • Measure identifier coverage yourself first — pull your last hundred transactions and count how many carry whatever join key both parties agree on, usually a hashed identifier.
  • If your platform already reports orders accurately and Braintree is purely the funding rail, work at the order layer instead — it is closer to the customer.
  • If you have no partner to share data with and one cloud, a warehouse you already run does the same job. The sharing capability is what justifies this one.

Braintree → Snowflake · what we deliver

What gets built — Braintree → Snowflake

  • Identifier capture into Braintree

    Pass the click identifier into the transaction's custom fields when your server creates the charge. Braintree preserves them and they survive to the webhook and to any later refund.

  • Event source: the Braintree transaction settlement webhook

    Fire on settlement rather than authorisation, and note that Braintree's PayPal and wallet flows redirect the buyer away — so the confirmation page is not a reliable trigger.

  • Dispatch to Snowflake

    Batch or streaming loads from your order system, with the raw event retained alongside anything you derive from it.

  • Reversals where they exist

    Braintree exposes refunds and disputes, both carrying the original custom fields, so reversals are straightforward.

Written guarantee

95%+ tracking accuracy

Measured against Braintree's transaction records, filtered to settled, for the same window.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Braintree → Snowflake questions, answered

Through Braintree's API or reports on a schedule, or an ETL connector if one supports Braintree for your setup; load incrementally on status changes and keep refunds and disputes as their own tables.

Free · 30 min

Get Braintree and Snowflake joined properly

Free30 minutesNo obligation