+1 (726) 227-3549

Finance Data with Fivetran: Reconciling Stripe and NetSuite in Your Warehouse

Most Fivetran projects start with marketing or product data, where a small discrepancy is tolerable. Finance data is different. If the revenue number in the warehouse differs from the ledger by even a small amount, the dashboard stops being used. This tutorial covers how to sync a payments source (Stripe) and an ERP (NetSuite) with Fivetran and prove that the two agree.

1. Decide what you are reconciling

Write the question down before configuring anything. A typical one is: for each month, does the sum of Stripe payouts and fees match the cash and fee postings in the NetSuite general ledger? That tells you which tables you need and which you can leave unselected.

  • Stripe: charges, refunds, disputes, balance transactions, payouts, invoices.
  • NetSuite: transactions, transaction lines, accounts, accounting periods, customers.

Balance transactions are the key Stripe table. They are the ledger-like record of every movement, and payouts reconcile against them, not against charges.

2. Configure the connectors conservatively

  1. Create the Stripe connection with a restricted, read-only API key rather than a full secret key.
  2. Create the NetSuite connection following the current Fivetran setup guide for your edition. Check the connector docs for the supported method, because NetSuite connectors have changed over time.
  3. In the schema tab, deselect tables you do not need. This reduces both sync time and billed monthly active rows.
  4. Keep both destinations in the same schema family, for example stripe and netsuite, so downstream models are easy to find.

Be cautious with sync frequency. ERP sources are slow and sometimes rate limited, so hourly is usually plenty. Finance close rarely needs near-real-time.

3. Handle deletes and edits

Ledger data is edited more often than people expect: transactions are voided, periods reopened, and lines changed. Check how your connector represents deleted records (see our post on _fivetran_deleted) and filter on it in every finance model. Otherwise voided transactions inflate totals.

4. Model both sides to the same grain

Build one staging model per source, then a daily or monthly summary on a shared key such as accounting period or payout date. Convert currencies explicitly and keep both the original and reporting amounts. Stripe stores amounts in the smallest currency unit, so divide appropriately per currency; do not assume 100 for all of them.

select
  date_trunc('month', available_on) as period,
  currency,
  sum(net) / 100.0 as stripe_net,
  sum(fee) / 100.0 as stripe_fees
from stripe.balance_transaction
where type in ('charge','payment','refund','adjustment')
group by 1, 2

Treat this as a starting point. Zero-decimal currencies, payout timing and your chart of accounts all change the details.

5. Build the reconciliation check

Join the two summaries and compute the difference per period and currency. Then classify it:

  • Timing: a payout lands in one month in Stripe and another in NetSuite. Expected, and should net to zero over adjacent periods.
  • Missing posting: Stripe has activity with no matching ledger entry. This is a real finding.
  • Sync lag: one source has not synced yet. Compare against _fivetran_synced to rule this out.

Fail the check only when the unexplained difference exceeds a threshold agreed with finance, and route the alert to them as well as to data engineering.

6. Guard against sync lag before close

Before running reconciliation, assert that both connectors have synced after the period end. A check that compares half-loaded data produces false alarms and teaches people to ignore them. If you orchestrate runs, trigger the models after the sync completes rather than on a fixed clock.

7. Restrict access

Finance tables often contain customer and bank details. Block or hash sensitive columns in the connector, and grant warehouse access to a finance role only.

Checklist

  • Reconciliation question written down and agreed with finance
  • Read-only credentials on both sources
  • Only required tables selected
  • Deleted and voided records filtered
  • Currency handled explicitly
  • Freshness assertion before each check
  • Threshold and owner for unexplained differences

When to bring in help

If your numbers will not tie out after these steps, the cause is usually in the accounting mapping rather than the pipeline. SyncSpur can help design the models and monitoring. Get in touch to talk through your setup.