12 min read ·

Engineering

Falsehoods engineers believe about payment reconciliation

Some version of “we’ll just build it” comes up on a lot of our sales calls and the logic seems hard to argue with – at first.

You have a table of payments and a table of bank transactions. Join them on amount and date, flag whatever’s left over, ship it in a single Claude session (“Clone End Close, make no mistakes”). It sounds like a pretty straightforward data matching problem, so what could be so hard about it?

I don’t blame anyone for thinking like that. I certainly did before reconciliation became my daily job. Over the following six years it was just one of many assumptions I had about recon that didn’t stand up to contact with the messy reality of the job.

Engineers thinking about building a recon solution themselves imagine payments that match first time and building for that state is very straightforward. Everything else is where the complexity lives: the batched payouts, the truncated bank descriptions, the return that shows up two months later, the processor that moves your money without telling you.

So, in the tradition of classic “falsehoods programmers believe about X” lists like names and time zones, here’s ours for payment reconciliation. They run roughly in the order you’ll discover them, from “it’s just a join” to “this is an operations problem, not a code problem.”

Part 1

“It’s just a join”

Falsehood #1: Every payment shows up as a single bank transaction

If only. Once you have any kind of volume, processors will pay out in batches, and things get complex fast. One deposit can contain hundreds of customer payments, minus fees and refunds. One of End Close’s first customers, Sunbound, started here: nursing homes saw a lump sum land in their bank account and couldn’t tell which residents and services it covered.

312 payments land in the bank as one deposit.

Falsehood #2: Sure, but every deposit can be broken back down into the payments it covers

Not always. Stripe says it can’t tell which transactions are in an instant payout (and reconciliation falls on you), and manual payouts are just transfers with no link to specific payments.

Falsehood #3: Fine, it’s 1-to-many then

Three wires pay one invoice, one ACH transfer pays three invoices, partial captures and partial refunds split one order across several days.

A scenario I came across multiple times in a previous role was 1-to-many with ~50,000 payments that recon to 2 transactions, this is a classic knapsack problem and brute force means checking 250,000 possible splits. But compute isn’t even the real problem. Many different combinations can add up to the same total, so if you don’t capture the correct signal at origination an answer that sums correctly may still be the wrong one!

Falsehood #4: The amounts will match

There are several common cases where the amount on an invoice will not match the amount that hits your bank account. Processor fees are deducted before payout, foreign exchange fluctuations between the transaction date and payout change the number, and some processors will keep their fees even when you issue a refund e.g. Stripe’s processing fees from the original transaction aren’t returned when you make a refund, and depending on your deal with them may incur additional costs.

Falsehood #5: The dates will match

Almost never. Your payment processor, your bank and your own internal ledger will have slightly different dates for a transaction. A processor will have multiple dates associated with a single payment e.g. the date your balance was updated, the date the payout becomes available and the date fees were incurred.

As a result finance teams end up matching on amounts within fuzzy date windows.

Adding complexity is knowing when banks are open and closed e.g. in 2022 the Bank of England closed for the Queen’s funeral, which was declared an official bank holiday. Bank closures cause delays in settlement and are a deceptively hard problem to solve.

Banks also have cutoff times after which the payment won’t get transmitted until the following day, while different payment rails have different settlement times. Even your relationship with your bank might alter the dates e.g. pre-funding is something less established customers might be asked to do and will add a day to settlement.

One payment: a ledger date, two processor dates and a bank date.

Falsehood #6: If amount and date match, it’s the right transaction

A SaaS business might have thousands of identical $49.00 payments every day. Same amount, same date, but different customers. I worked with a customer that received 10,000 $10 payments every day. Some would silently fail at the bank leading to a lot of phone calls to sort it out.

Falsehood #7: A 99% match rate means you’re 99% done

A 99% match rate sounds like you are home free – how hard could it be to investigate and resolve the remaining 1% of exceptions? As anyone who has ever done manual reconciliation will attest, 99% of the work is in the 1% of exceptions.

99% of transactions automatically match, but 99% of the work is in those that didn’t.

Part 2

“The answer will be in the data”

Falsehood #8: Every payment can be matched on a unique ID

Every system that a payment passes through has its own ID. Yours (which could be invoice #, transaction number, customer account), the processor’s, the network’s, the bank’s trace number. None of these are shared end to end.

Falsehood #9: Your ID passes through to the bank statement

This is almost never the case. Consider ACH, the most popular form of B2B payment in the US with about 40% of transactions, by number of transactions. It gives you 10 characters for the entry description and 22 for the receiver’s name. The rich metadata you had at origination invariably gets dropped along the way.

Your invoice and PO numbers don’t fit, so the bank shows a generic label instead.

Falsehood #10: Bank descriptions are consistent

Some banks charge for advanced reporting which includes more data to match on. But I’ve seen this get turned off due to a contract negotiation (where the customer is looking to shave off some costs), or simply at random – both lead to broken recon.

If your bank updates their core systems, which is not as rare as you might think, it can meaningfully change the descriptions, leading to failed matches. The same counterparty appears differently across banks, rails and months. Truncation just makes it worse and transaction descriptions will reliably mangle special characters and diacritics.

Even if you don’t think any of this will happen at your bank, you are still ultimately making assumptions about the stability of a system you have zero control over.

Same payer, same bank. After a core upgrade, the description changes.

Falsehood #11: Counterparties will provide the data you need

You are often reliant on your counterparty to include information with their payment to reconcile correctly. In my previous role at Modern Treasury, we had a customer who escrowed real estate payments. The counterparties were told to include the street address in the payment description to enable recon. The address 123 Main Street could show up in so many ways:

  • 123 Main Street
  • 123 Main St.
  • 123 Main St
  • 123 Main

So even if all the data does flow through you still have a problem.

Falsehood #12: Banks give you data in a standard format

You’ll see BAI2 files, CSV exports, portal downloads and PDFs, sometimes from the same bank. When something’s missing, you email them, because banks don’t have tickets, they have email. Banks also use something called “secure email” which is email – but worse in every way.

Falsehood #13: The bank will tell me when something goes wrong

I’ve seen zero signal from banks in relation to sanctions holds, fraud checks, teller miskeys and outright payment failures (payment failed, batch failed, file failed). It’s on you to detect an issue has occurred and call or email them.

Falsehood #14: You have one bank account to reconcile

If you’re laboring under that misapprehension I’d have to assume you’re just thinking about your company’s financial infrastructure for the first time. Businesses that are involved in money movement will run multiple payment rails and methods, probably operate FBO accounts for their clients and may even have parallel fiat and crypto ledgers. The days of a single ACH account are a distant memory. (Each bank is unique in almost every way so adding a new bank means you will have to build a ton of custom handlers.)

Falsehood #15: I can just choose a processor and bank with “perfect” data

Nice idea. But not possible in practice because you will need different processors for different regions, rails, products, and multiple banking partners for redundancy as you grow. The reality is never as simple as choosing Column and Airwallex.

Falsehood #16: Reconciling Stripe means reconciling your payments

If you work in tech, it’s easy to assume that everyone uses Stripe for their payments. But the reality is that most companies use more than one processor, bank and rail. Stripe is just one input of many.

Part 3

“My provider will tell me what happened”

Falsehood #17: The balance the processor shows is your money

Part of it can be held in reserve, and the reserve amount can change several times a day. A review of the Stripe Connect Reserves FAQ illustrates how complex reserves can get.

Falsehood #18: My processors send webhooks

Re-read #15. You cannot rely on every partner you work with to send webhooks. The bank at the end of the chain is more likely to give you a BAI2 file than an event.

Falsehood #19: Fine, I’ll mandate modern vendors with webhooks

Even still, some money movements aren’t sent as webhooks or necessary metadata for matching only appears in historical exports. The record of what happened is the balance history, the settlement report and your bank statement, so those are what you have to reconcile against.

Falsehood #20: Fine, I’ll mandate modern vendors with good webhooks

You’re relying on the assumption that webhooks arrive once, and in order. Stripe tells you to track event IDs because duplicate deliveries happen, doesn’t guarantee delivery order and says not to use the created timestamp for ordering (given it is only second level precision). For recon that means a payment counted twice, or a refund that arrives before the charge it reverses.

The refund lands first, and the charge lands twice.

Falsehood #21: Money only leaves your account when you send it

You are not the only entity that can take money from your account. There are instances where a payment processor or other partner can debit your account e.g. to cover a negative balance or fund a reserve.

I was recently talking to an engineering team building a payments gateway who had started building their own recon system from scratch, without a dedicated finance resource working with them. They described an iterative, manual setup process for the ledger because account structures kept changing as they learned how each payment processor behaved. In one instance a processor debited money from their account to cover capital requirements. But the processor put it in a new account that the team did not have visibility of.

Falsehood #22: My processor sends webhooks for everything

There was no webhook event for the edge case in #21. Money movements you hadn’t anticipated are almost impossible to spot in high volume scenarios unless you have accurate reconciliation.

Falsehood #23: Fine, but their docs surely cover all of this

That same team checked their partner’s documentation next, it certainly wasn’t covered and they were left scratching their heads.

Part 4

“Settled means settled”

Falsehood #24: “Succeeded” means final

Just because a payment has succeeded, doesn’t mean it’s final. Since COVID returns and disputes have ballooned but trickle in on unpredictable timelines. Most ACH returns will show up within 2 banking days, but unauthorized consumer debits can come back up to 60 calendar days later.

Falsehood #25: Fine, it’s final after 60 days?

I’m afraid not. Credit card disputes can run up to about 120 days on the major networks. Visa “not received” disputes can stretch to 540 days after purchase. When it comes to Federal government payments, just assume Uncle Sam always gets paid e.g. Treasury can claw back benefit payments made after a recipient’s death going back six years, and further if the account still holds the money.

Falsehood #26: A return will be obvious when it happens

Thanks to those multiple bank accounts, payment rails and processors, returns – even large ones – are easier to miss than you would think. At End Close we spoke to one prospect who had $400,000 in returns that it hadn’t noticed and the issue ended up in litigation.

Falsehood #27: A refund is the exact inverse of the payment

Fees aren’t returned, refunds can be partial, and refunds can fail. The ledger entry and the cash movement are not mirror images.

Falsehood #28: Disputes are rare enough to ignore

Contested card transactions have risen sharply since COVID, partly because consumers treat disputes as an easier return route. Disputed card volume grew by 50% from 2019 - 2022 and stood at $9.8 billion in 2024.

Part 5

“We’ll build it in a sprint”

Falsehood #29: Recon is a data matching problem

See Falsehoods 1-28 above. If every payment reconciled easily, we wouldn’t have started End Close.

Falsehood #30: Building a matching engine is the hard part

On the contrary, matching is largely a solved problem, although there are many nuances to building an accurate and efficient engine (like ensuring you have all the data to begin with). The real challenge is that building the engine surfaces the exceptions backlog which is where your ops team will spend all their time.

Falsehood #31: Exceptions can be handled by a script

Each exception means someone reconstructing “the story of a payment” from several systems. You need to pull in all the chapters, thread it together and decide what to do next. That’s not something you can write a script for.

One exception, pieced together by a person from five places.

Falsehood #32: Fine, exceptions can be handled by an engineer

Exception handling involves tasks like calling or emailing a bank to find the missing “chapter”. That’s operations work, and it arrives daily: in my previous role, where we reconciled $1 trillion in payments annually, that meant at least 100 new tickets every morning.

Falsehood #33: Sounds like we should just point an LLM at it

Matching millions of transactions is a job for rules and math, not model reasoning. You’re not going to be able to recon at that scale on your Claude Pro plan. AI outputs also don’t give you an audit trail, which is why you need to have a deterministic rules engine at the core of your recon solution.

Even if all of that wasn’t the case, it’s not simply a case of “pointing” your LLM of choice at your data warehouse. Building and maintaining the data pipelines so you get clean, normalized data is its own hard engineering problem.

Falsehood #34: Once it’s built, it stays built

Assuming you can muster the necessary resources to build a good in-house recon solution, maintenance is going to get deprioritized for customer work. As mentioned several times above, new partners and rails mean new data formats and pipelines need to be supported continually. As a result, in six months your dream recon system is going to need a lot of TLC.

Falsehood #35: Recon is finance’s problem

After seven years working on recon, I’ve learned that tracking a payment and all its associated data from origination is the only way to tell the full story of a payment. Finance may be on the hook to make sure money has moved as expected, but the fix is often sitting on the engineering side of the house. Engineering has to keep the metadata that finance later needs to match and investigate. Very often finance doesn’t even know what metadata might be available but is not being piped into their systems.

Part 6

Eternal falsehoods

Falsehood #36: This list is complete

If you’ve read this far, you’ll have noticed that very few of these are matching problems. Matching is the easy part. 99% of the work lives in the 1% that doesn’t match: rebuilding the story of each payment from systems you don’t control, then chasing the missing chapter from a bank that only does email. That’s the part that turns a sprint to build an in house solution into a team that needs to be managed and supported.

What other falsehoods would you include?

My time immersed in recon has also taught me that I haven’t seen everything. What gotchas have you encountered that aren’t on our list? Send them over to us and we’ll publish the best in an update.