Domain tracks · L2Reconciliation

Reconciliation

How to match your ledger against provider reports and bank statements, sort every difference, and fix it without rewriting history.

L2 SeniorDomain tracks19 min read
Fact-checked by AI against cited sources · Human review pendingLast reviewed 7 Nov 2026 · How we check content
Section 1 of 8

What broke

In May 2024 thousands of people suddenly could not touch their money. According to a later complaint by the US Consumer Financial Protection Bureau (CFPB), some waited more than eight months. 1 They used apps built on Synapse, which connected fintech apps to the banks that held the money.

The complaint describes the setup. Synapse told several partner banks where to move customer money. According to the CFPB, Synapse was responsible for tracking where each customer's money was. It also had to make sure its records matched the banks' records. 1

The complaint says they did not match. As early as September 2023, one bank held less money than Synapse's records said it should. The bank and Synapse blamed each other for the gap. 1 Synapse filed for bankruptcy in April 2024.

In May 2024, the complaint says, Synapse stopped sending one bank the daily ledger reports it used to send. The bank also lost access to a dashboard of customer balances. On 11 May that bank froze all activity for end users. 1

According to the complaint, the banks together held less money than Synapse's records showed. The court-appointed trustee estimated the gap at $60 to $90 million. 1 Two banks hired outside help to reconcile and confirm each balance. They used their own records, Federal Reserve records and records from the trustee. 1

The CFPB alleged that Synapse failed to keep adequate records of where consumers' money was. It also alleged that Synapse failed to make sure those records matched the banks' records. 1 The case was settled when the court entered an order on 12 September 2025. 3 Synapse's bankruptcy trustee agreed to it without admitting or denying the allegations. 2

Records that nobody compares can drift apart for months. This lesson is about the daily check that catches the gap early.

Section 2 of 8

The idea in simple words

Your system keeps its own record of money: orders, payments and a ledger. But you do not hold the money. A payment provider and a bank do. They keep their own records.

Reconciliation means comparing your records with theirs, line by line, and explaining every difference. A difference is called a reconciliation break.

Usually you compare three sides:

  1. Your ledger. What you think happened.
  2. The provider's report. What Stripe, Adyen or another provider says it processed, and what it kept as fees.
  3. The bank statement. What actually arrived in your bank account.

Each pair must agree. If two agree and the third does not, you know where to look.

The key idea. Your ledger is only a claim. Reconciliation proves the claim against outside records every day. Every break gets a type, an owner and an age, and you fix it with new entries, never by editing old ones.

Section 3 of 8

How it works

Step through one day of card payments. Use Next and Back, or the ← and → keys.

Matching one day of payments: ledger, provider report and bank statementOur ledger Provider report Result A ₹1,000B ₹500C ₹200 A 1,000 fee 20B 500 fee 10D 300 fee 6 ✓ match✓ matchonly oursonly theirsmatch on the payment id, then compare amounts Payout vs bank statement Payout ₹1,764Bank +₹1,764980 + 490 + 294 = 1,764 · same trace idmatched A + B net = ₹1,470 · gap ₹294 = D Break queueC · timing · age 1 day · waitD · missing on our side · verify, post entryFix with new entries. Never edit old ones. SeniorPath
  1. Your ledger says three card payments succeeded today: A for ₹1,000, B for ₹500 and C for ₹200. It knows the gross amounts, but not the fees yet.
  2. The provider's report lists what it put into this payout. It has A and B, with fees. It also has D, a payment your ledger never recorded. C is not there.
  3. Match line by line on the payment id. A and B match. C exists only on your side. D exists only on the provider's side. Each gap is a break.
  4. The payout is the sum of the net amounts, ₹1,764. It matches the bank deposit, and the trace id agrees. After you book the fees from the report, the items you matched, A and B, net to only ₹1,470. The extra ₹294 is D, which your ledger never recorded.
  5. Every break goes to a queue with a type, an owner and an age. C is probably a timing gap, so you wait a day. D needs a check with the provider, then a new ledger entry. You never edit an old entry.
Step 1 of 5

Step 1: Load the outside files

Providers send settlement reports. Stripe's payout reconciliation report lists every payment, refund, dispute and fee inside each payout. 4 You can get the same list from the API: list balance transactions and filter by the payout id. 5 Adyen creates a settlement details report, by default one per merchant account per batch. 7

Banks send statements. Many US banks send BAI2 files. Banks usually send one every day with posted transactions, and more during the day with pending ones. 10 Another standard format is camt.053, the ISO 20022 XML bank-to-customer statement. Adyen and Circle, for example, provide statements in it. 8 9

Turn every file into one shape: id, amount in minor units, currency, date, type. Watch the units. Stripe's report gives amounts in major units, like dollars, not cents. 4

Step 2: Match on keys

Match on exact ids first. Store the provider's id on your payment row when you create it. Adyen's PSP reference is a 16-character, globally unique id. Its report also carries your own merchant reference from the payment request. 7 Stripe's itemised report has balance_transaction_id by default. You can add columns such as payment_intent_id and charge_id. 4

The payout must then match the bank deposit. Stripe's report can include a trace_id, which banks use to find a transfer. It can also include a reference that appears on your bank statement. 4

Some money arrives with no id you know, like a customer's bank transfer. Then you match on amount, currency and a date window. Modern Treasury's "expected payments" work this way. You give an amount range and a date range, and the date range can be at most 75 days (200 for cheques). 11 Keep windows tight, or you get false matches.

Step 3: Compare amounts, then sort the breaks

A matched pair can still disagree. Compare gross, fee and net separately. In Adyen's report, the commission should be the difference between the gross and net amounts. For some acquirers it is split into markup, scheme fee and interchange columns instead. 7 Your ledger should record the fee as its own entry, so the net is never a surprise.

Common break types:

  • Missing on your side. The provider has a payment your ledger never recorded. A lost webhook is a common cause.
  • Missing on their side. You recorded a payment the provider does not show.
  • Amount or currency mismatch. Same id, different numbers.
  • Duplicate. The same id appears twice on one side. A retry without an idempotency key is a common cause.
  • Timing. The item will appear, but in the next file. Stripe groups a payout by its estimated arrival date, not by the date your bank posts it. Report data can also be ready after the money arrives. 4
  • Fees and other provider entries. Disputes and failed payouts show up as their own balance transactions. 6
  • FX. Adyen's report has an exchange rate column. It is 1 when you process and settle in the same currency. 7

Finally, check the statement against itself. The opening balance plus all entries must equal the closing balance. 9 If it does not, something is wrong. The file may be incomplete, or your parser may have read it wrongly. Do not reconcile against it.

Step 4: Work the break queue

Put every break in a queue with a type, an owner and an age. Many breaks follow known patterns, so write auto-fix rules for them. A timing break can wait one cycle. A missing fee can post a fee entry. Everything else goes to a person.

Stripe's Ledger team tracks "Aging Balances" for problems that persist over time. Its tooling lets people move a problem to the right owner. 12 Stripe also checks that every id in a source system has a matching ledger event. 12

The fix is always a new ledger entry: an adjustment or a reversal, linked to the break. You never edit or delete history. Money you cannot explain yet sits in a suspense account with an owner, not in revenue.

Section 4 of 8

Trade-offs

OptionCatches problemsCostUse it when
Daily batch recon on final filesYes , but up to a day late.Low. Simple jobs on files that do not change.Always. This is the base layer.
Near real-time recon on webhooks and intraday dataYes Within minutes.Higher. Data is pending and may change, so you get more false breaks.High volume, instant payouts, or tight cash.
Exact id matchingYes Very few false matches.You must store provider ids on day one.Card and provider payments.
Amount and date window matchingPartly. Can match the wrong item.Needs tuning and manual review.Bank transfers with no shared id.
Manual payoutsOnly if you do the work.Stripe cannot tell you which transactions a manual payout covers. 5Rarely. Prefer automatic payouts if you can.

Simple rule: reconcile every day on final data, match on stored ids, and treat any break older than its window as an incident.

Real-time recon helps, but it does not replace the daily run, because final statements still arrive once a day. Circle, for example, delivers one camt.053 file per UTC day, by 06:00 UTC the next day. 9 Stripe sends a reporting.report_type.updated webhook when new report data is ready. 4 Use that event to start the job, not a fixed clock.

Section 5 of 8

At work: how a senior uses this

  • In a design review, ask: "Which provider id do we store on this row, and when?" If the answer is "we look it up later", ask for the id to be stored when the row is created.
  • Ask: "What are the three sides here, and who owns each one?" A missing side is a missing control.
  • Write the expected window for each break type in the code: timing breaks may wait one cycle, missing payments must not.
  • Alert on the count and value of breaks older than their window, per currency. Also alert when an expected file does not arrive.
  • Require a second person to approve manual adjustments above a set amount. Log who approved each one.
  • After any bug fix that touched money, run the full recon again. Old breaks should close, and no new ones should open.
Section 6 of 8

With AI

What to ask the agent

"Write a parser for this Stripe itemised payout reconciliation CSV. Convert amounts from major units to integer minor units using each row's currency. Add tests for a zero-decimal currency."

"Given these two tables, ledger_entries and provider_report_lines, write SQL that lists rows found on only one side, rows with the same id but different amounts, and ids that appear twice."

"Design a break queue table with type, owner, age, status and a link to the fixing ledger entry. Explain how a break is closed."

What to check yourself

  • Amounts are integers in minor units after parsing. No floats.
  • The matcher uses exact ids before any fuzzy rule. Fuzzy windows are small and logged.
  • Duplicates are found, not silently merged.
  • Fixes create new ledger entries. The agent did not write an UPDATE on old entries.
  • Timezones and cut-off times match the provider's and bank's files.
  • A missing or empty file raises an alert. It must not count as "zero breaks".
Section 7 of 8

Check yourself

1. Your ledger shows a payment of ₹500. The provider's report shows the same payment id with ₹500 gross, ₹10 fee and ₹490 net. Is this a break?

Show answer

No, if your ledger also records the ₹10 fee. Compare gross with gross and fee with fee. Providers pay out the net amount. A fee is not a break if you record it as its own entry and compare each part.

2. A payment succeeded at 23:50 on 31 March. It is missing from the provider's report for 31 March. What is the most likely first step?

Show answer

Mark it as a timing break and check the next day's report before you act. Reports and statements have cut-off times. A late payment often appears in the next file. Escalate only if it is still missing after the expected window.

3. The bank deposit matches the payout total, but your ledger expected less. What does that tell you?

Show answer

Your ledger is missing or misstating something the provider included. Reconciliation compares every pair of sides. The provider and bank agree with each other, so the gap is on your side.

4. Last week a fee was booked as ₹20 instead of ₹26. How do you fix the ledger?

Show answer

Post a new adjusting entry for ₹6, linked to the break and the old entry. Ledger history is never edited. A new, linked entry fixes the balance and keeps the record of what happened.

5. Which number is the best early warning that reconciliation is failing?

Show answer

The count and value of open breaks older than their expected window. New breaks are normal. Breaks that stay open past their window mean money is missing, late or wrong, and nobody has explained it.

Your progress is saved only in this browser. Export it to keep it safe.

Was this clear?
Report a mistake (opens GitHub in a new tab)
Section 8 of 8

Go deeper

Show 12 sources and related lessons
  1. Consumer Financial Protection Bureau, complaint against Synapse Financial Technologies, Inc. (U.S. Bankruptcy Court, C.D. Cal., filed 21 August 2025) (opens in a new tab)
    The regulator's allegations against a fintech middle layer whose records, it says, did not match its partner banks', and the harm to consumers it describes. Settled in September 2025 without admission.
  2. Stipulated Final Judgment and Order, CFPB v. Synapse Financial Technologies, Inc. (U.S. Bankruptcy Court, C.D. Cal., entered 12 September 2025) (opens in a new tab)
    The settlement order. It was agreed “without adjudication of any issue of fact or law”, and the trustee neither admits nor denies the allegations.
  3. Consumer Financial Protection Bureau, enforcement action page: Synapse Financial Technologies, Inc. (opens in a new tab)
    The regulator's summary of the case, its allegations and the date the court entered the order.
  4. Stripe documentation, “Payout reconciliation report” (opens in a new tab)
    Match each bank deposit with the payments, refunds, disputes and fees inside it. Lists every report column.
  5. Stripe documentation, “Payout reconciliation” (API guide) (opens in a new tab)
    List the balance transactions of one payout with the API, and why manual payouts are your job to reconcile.
  6. Stripe documentation, “Balance transaction types” (opens in a new tab)
    Every kind of money movement in a Stripe balance, including disputes, payout failures and currency conversion.
  7. Adyen documentation, “Settlement details report” (opens in a new tab)
    Adyen's per-batch report, with its references, record types, gross and net amounts, fee columns and exchange rate.
  8. Adyen documentation, “Business account statement” (CAMT.053) (opens in a new tab)
    A real ISO 20022 camt.053 statement, field by field, with booked balances, booking dates and value dates.
  9. Circle developer documentation, “CAMT.053 statements” (opens in a new tab)
    One statement file per UTC day, and the opening-plus-entries-equals-closing check.
  10. Modern Treasury, “What are BAI2 files?” (2021) (opens in a new tab)
    The bank statement file format used by many US banks, and how often banks send it.
  11. Modern Treasury API reference, “Expected Payments” (opens in a new tab)
    Matching an incoming payment you expect against bank data, with amount and date ranges.
  12. Ilya Ganelin, “Ledger: Stripe's system for tracking and validating money movement”, Stripe (2024) (opens in a new tab)
    How Stripe finds money that did not finish its journey, tracks ageing balances and alerts the right owner.

Case studies: Shopify: Ten habits for building payment systems that hold up · Stripe: Ledger: checking every money movement with double entry

Related: Money and double-entry ledgers · The payment lifecycle · Idempotency, retries and timeouts · Audit trails and immutability (coming soon) · Payment rails: UPI and card networks (coming soon)

Term

See full entry

Jump to a section

  1. 1What broke
  2. 2The idea in simple words
  3. 3How it works
  4. 4Trade-offs
  5. 5At work
  6. 6With AI
  7. 7Check yourself
  8. 8Go deeper