Skip to content
Book a call

Reconciling bank statements without a human in the middle

· 4-minute read · Romanian compliance · by Direct Softworks

Matching payments to invoices is not a hard problem until you look at what Romanian payment references actually contain, which is whatever the payer felt like typing.

Somebody in every company spends a morning a week with a bank statement on one screen and a list of unpaid invoices on the other, matching them by eye.

It is the most automatable task in most small businesses and it is almost never automated, for a reason that is not laziness: the first version is easy, the last twenty percent is genuinely hard, and stopping at eighty percent leaves you with the morning anyway.

Getting the statement in

Three routes, in descending order of how much you will enjoy them.

PSD2 open banking APIs. Romanian banks expose them. They are the right long-term answer and they are the most work to start: consent flows, certificates, per-bank quirks, re-consent every 90 days that somebody has to actually click.

MT940 or CAMT.053 files. The traditional formats, downloadable from most business banking portals. Structured, parseable, boring, reliable. This is where we usually start, because it takes a day and works for years.

CSV export. Available everywhere and different at every bank, sometimes different between two accounts at the same bank. Fine as a fallback. Never build only this, because the format changes without notice and nothing tells you except a parse failure at month end.

Whichever you pick, store the raw file. Not the parsed rows, the actual bytes. When a reconciliation is disputed in eighteen months, the original statement is the evidence, and a reprocessed version of it is not.

The matching, in the order the rules should fire

Exact reference. If your invoice numbers appear in the payment description, match on them. This handles most payments from other companies with organised accounts payable, which in practice is maybe half.

But be specific about what "appears" means. FCT-2026-0412 will arrive as FCT 2026 0412, fct20260412, Factura 412, and FCT-2026-0412 SI 0413 when somebody paid two at once. Strip separators, upper-case, then search. And search for all matches, not the first, because that last case is a payment covering two invoices and treating it as one is worse than not matching it.

Exact amount plus payer. No usable reference, but the amount matches exactly one outstanding invoice from a payer whose name resolves to that customer. Reasonably safe. The trap is when a customer has two invoices for the same amount, which happens more than you would think with recurring services. If there are two candidates, do not guess.

Amount plus date proximity. Weaker. Suggest, do not decide.

The remainder. Everything else goes to a human, and that is correct.

The rule that matters most

Never auto-match ambiguously.

The temptation, when a payment could be one of two invoices, is to pick the older one. It is right most of the time, and the times it is wrong produce a customer statement that says an invoice is paid when it is not, followed by a dunning email to somebody who paid, followed by a phone call.

One wrong automatic match costs more trust than fifty correct ones earn. Suggest with a confidence score, let a person confirm with one click, and keep the click. The goal is not zero human involvement. It is turning a morning into four minutes.

The Romanian specifics

Partial payments are normal. Somebody pays 4.000 against a 4.500 invoice because of a disputed line. Your model needs an invoice to have many payments and a payment to cover many invoices, from day one. Retrofitting a many-to-many onto a one-to-one is a migration and an unpleasant afternoon.

Payer names are not customer names. The bank shows the account holder, which is the legal name with a form of SRL you have not seen before, or occasionally an entirely different group entity. Match on the fiscal code where the format provides it, keep an alias table where it does not, and let a confirmed match teach the alias table for next time. That last part is what makes the system get better rather than staying at eighty percent forever.

Foreign currency. A payment in euro against an invoice in lei needs the BNR rate for the right date, and there will be a residue of a few lei from the difference between the invoicing rate and the settlement rate. That residue is a real accounting entry, not a rounding error to hide. Decide with your accountant where it goes before you write the code.

Bank fees arrive as separate lines, or as a reduction in the received amount for international transfers. An invoice paid in full can arrive as 4.985 against 5.000, and if your rule is "match on exact amount" it will never match. A tolerance is needed and it should be small, explicit, and logged when used.

What good looks like

Every morning, the statement is pulled, the obvious matches are made automatically, and a person sees a short list of suggestions and a shorter list of things nobody can explain. The second list is the interesting one, because it contains the actual anomalies: the double payment, the customer who has been underpaying by the same amount for four months, the transfer nobody recognises.

That is the real return, and it is not the saved morning. It is that somebody looks at the anomalies, which nobody was doing when the anomalies were buried in a wall of matching. The bookkeeping is the excuse; noticing is the point. Same as the data quality that compliance work forces on you, the obligation is not the value, but it pays for the thing that is.

More from the blog