A Razorpay merchant ends the month with two lists. What they sold, and what actually landed in the bank. Someone has to check every line. By hand, in a spreadsheet, about half the lines match at first glance.
I built Ledger Sentinel to do that check. It reconciles orders against settlements automatically. On the synthetic demo data, 80.3% of lines auto-match. The rest go to a human with a note attached.
The design rule I stuck to: deterministic first, AI last.
Matching is exact math. For each order I compute net_expected = amount - MDR - GST, then compare it to amount_settled with a tolerance of Rs 0.01. That tolerance matters. Three planted rounding cases auto-match because of it, where a plain == would have flagged them as exceptions. Floating point noise is not a business problem, so I do not treat it like one.
What does not match becomes an exception with a reason: expected_tds_withholding, late_authorization_flip, missing_settlement, missing_order.…