ARR reconciliation: payment rails
On one synthetic company, a three-way match and a month-end cash close caught 10 of 10 processor-to-books faults written blind, against 0 of 10 for the billing checks, which do not read these records, at 0.3 false alarms a month (any alarm at 20 of 108 month ends); 4 of the 10 showed only as an account out of balance.
The billing checks never read the processor, the bank or the ledger, and none of the ten faults touched what they read. On 6 of the catches a record-level check also fired, naming a payout, charge, invoice or bank line; the other 4 showed only in the tie-out and left a person to search the journal (a split I defined after seeing the results). The blind author wrote no fault that moved every record in step, the one case only the three-way match sees, so this set does not test it. One synthetic company, one independent author, one run per fault.
| New checks, held out10 of 10faults written blind; a record-level check fired on 6, the tie-out alone on 4 (split defined after the results) | Billing checks, held out0 of 10they never read processor, bank or ledger records | False alarms a month0.36 clean companies, 108 month ends; any alarm at 20 of 108 month ends, the cash application rule alone firing at 19 | Self-test7 of 7built by the same hand as the checks; 1 of 8 declared faults found nothing to change |
Main limitation The clean ledger is posted by code from the same records the tie-out rebuilds, so on clean data it ties by construction; the tie-out is evidence only against a change to one side. The checks were run on the six clean companies to find code errors before they were frozen, so the zero cut-off and tie-out alarms partly reflect that debugging, and the blind author was handed the posting rules the tie-out restates. The processor, the bank and the ledger are synthetic, written by rules I chose. | |||
Held out: caught or missed, by check family
An independent author who never saw the checks wrote 10 faults between the card processor, the bank and the books, from the schemas, the posting rules and 20 sample rows of each table. Each fault was applied once to a copy of the clean records and scored at every month-end close from the month it entered: a check catches it when it flags something the clean company does not flag at the same close. The billing checks are everything the study had before: its frozen dbt tests and its checks against order forms, approvals, coupons and telemetry.
fireddid not fire
| Fault | Billing checks | Three-way match | Payout reconciliation | Cash application | Month-end cut-off | Ledger tie-out | Result |
|---|---|---|---|---|---|---|---|
| Two payouts imported twice into the bank and the books | did not fire | did not fire | fired | did not fire | did not fire | fired | caught |
| Three fee rows dropped from the settlement import | did not fire | did not fire | fired | did not fire | did not fire | did not fire | caught |
| Two capture notices lost after approval | did not fire | fired | did not fire | did not fire | did not fire | fired | caught |
| An identified contract payment left as unapplied cash | did not fire | did not fire | did not fire | fired | did not fire | fired | caught |
| A payout booked the day before it reached the bank, across a month end | did not fire | did not fire | did not fire | did not fire | fired | fired | caught |
| Currency rate inverted on two settlements | did not fire | did not fire | did not fire | did not fire | did not fire | fired | caught |
| A customer refund booked as a processing fee | did not fire | did not fire | did not fire | did not fire | did not fire | fired | caught |
| A dispute win booked as if the fee came back | did not fire | did not fire | did not fire | did not fire | did not fire | fired | caught |
| A manual journal netting a fee against billings | did not fire | did not fire | did not fire | did not fire | did not fire | fired | caught |
| Two payout amounts with their cents cut off | did not fire | did not fire | fired | did not fire | did not fire | fired | caught |
| Faults caught | 0 | 1 | 3 | 1 | 1 | 9 | 10 |
Show the data
| Fault | Checks | Ledger against the clean books | Author predicted (compared after the results) |
|---|---|---|---|
| Two payouts imported twice into the bank and the books | caught by the payout reconciliation and ledger tie-out | cash +US$4,202 and processor clearing −US$4,202 | caught |
| Three fee rows dropped from the settlement import | caught by the payout reconciliation | processor clearing +US$13.11 and processor fees −US$13.11 | caught |
| Two capture notices lost after approval | caught by the three-way match and ledger tie-out | receivables +US$920 and processor clearing −US$920 | caught |
| An identified contract payment left as unapplied cash | caught by the cash application and ledger tie-out | receivables +US$97.65 and unapplied cash −US$97.65 | caught |
| A payout booked the day before it reached the bank, across a month end | caught by the month-end cut-off and ledger tie-out | cash +US$4,005 and processor clearing −US$4,005 | caught |
| Currency rate inverted on two settlements | caught only by the ledger tie-out, as processor clearing and currency gains and losses out of balance; no record named | processor clearing +US$241.57 and currency gains and losses −US$241.57 | caught |
| A customer refund booked as a processing fee | caught only by the ledger tie-out, as refunds and processor fees out of balance; no record named | refunds −US$168.90 and processor fees +US$168.90 | caught |
| A dispute win booked as if the fee came back | caught only by the ledger tie-out, as processor clearing and dispute fees out of balance; no record named | processor clearing +US$17.50 and dispute fees −US$17.50 | caught |
| A manual journal netting a fee against billings | caught only by the ledger tie-out, as billings and processor fees out of balance; no record named | billings +US$2.43 and processor fees −US$2.43 | missed |
| Two payout amounts with their cents cut off | caught by the payout reconciliation and ledger tie-out | cash −US$1.63 and processor clearing +US$1.63 | caught |
Source: the payment-rails round's results; each fault run once on a fresh copy of the clean records.
What stayed unexplained
- Four of the catches were the tie-out alone: currency rate inverted on two settlements, a customer refund booked as a processing fee, a dispute win booked as if the fee came back and a manual journal netting a fee against billings. The tie-out says which account is off and by how much; it never says which entry. Finding it is still a search through the journal.
- Read after the results: the smallest of those, a manual journal netting a fee against billings, moved US$2.43. The tie-out allows US$1 an account, so the same journal for less than a dollar would have passed. Two payout amounts with their cents cut off moved cash by US$1.63, also close to that tolerance; the payout reconciliation caught it as well.
- The blind author never kept the processor, the bank and the ledger in agreement with each other. In the self-test, a charge captured twice in every record passed the tie-out and every other family; only the three-way match, which goes back to the invoice, saw it. This held-out set says nothing about that case.
- The billing checks caught 0 of 10 because none of the faults changed an invoice, a payment or any other record they read. That is by construction here, and it is the point: they cannot see what happens after billing.
What each check needs from a finance team
Each check is a join between records a finance team already receives. What it needs is access to those records with the keys intact, and a rule written down where the check applies one.
| Check | Compares | Needs | Held-out catches | False alarms a month |
|---|---|---|---|---|
| Three-way match | each card invoice against the processor's captures on it, and each capture against its settled charge in the settlement report | the processor's charge export with the invoice id on every charge, and its daily settlement report | 1 | 0.01 |
| Payout reconciliation | each payout against the sum of its settlement items (charges less fees, refunds and chargebacks) and against the bank deposit | the settlement report itemised per payout, and bank statements that carry the payout reference | 3 | 0 |
| Cash application | each customer transfer applied again by a written rule (the invoice it names, then an open invoice of the same amount, else unapplied) against where the ledger put it | bank statements with the payer and the remittance text, open invoices per customer, and the rule written down | 1 | 0.31 |
| Month-end cut-off | every entry from a record posting within five days of the month end, against the month its posting rule gives | posting rules that give each record a posting day, and the capture, settlement and bank arrival days | 1 | 0 |
| Ledger tie-out | each ledger account at the month end against the same balance rebuilt from the bank, the processor and billing | all of the records above, a rebuild per account, and a tolerance (US$1 an account here) | 9 | 0 |
What a close compares, on this company
- About 674 card invoices and 682 captures a month through the three-way match, 18 payouts against the bank, 55 customer transfers through the cash application rule, and 10 ledger accounts. All of it is joins; reading time goes only to what they flag.
- False alarms: 0.3 flags a month on the clean companies, with any alarm at 20 of 108 month ends. The cash application rule fired at 19 of those month ends and raised 34 of the 35: a customer quoted an earlier invoice that was still open, the rule applied the payment there, and the next payment then had nowhere to go. The three-way match raised 1, a second partial charge that landed after the close. The cut-off and the tie-out raised none, because the clean ledger is posted by the same rules they test and they were debugged on these same companies before they were frozen.
Limits
- One synthetic company and 5 more of the same generator for false alarms, one independent author, one run per fault, 10 held-out faults. A different author or a second run would write different faults.
- Read after the results: 10 of 10 sits at the ceiling. It says these faults each left one set of records out of step with another, which is what these checks compare; it does not say the checks catch everything.
- The processor, the bank and the ledger are written by rules I chose: the currencies, declines, partial approvals, settlement delays, fees, disputes and remittance errors are assumptions, not any provider's terms. A real settlement report, bank statement and ledger are messier (holidays, reserves, fee tiers, manual journals), so these false alarms are a floor.
- The split between catches where a record-level check also fired (6) and catches by the tie-out alone (4) was defined after the results. It counts which checks fired; it does not check that the flagged payout, charge, invoice or bank line is the record the fault changed.
- The self-test, 7 of 7, shows the checks work as designed, not that they generalise. One of its 8 declared faults, a refund never posted, found no refund in the month it named and is reported as not applied.
- I applied the specs. Readings of ambiguous phrases were written down before any check ran; the billing checks stayed frozen.
How it was built
The description of the ledger given to the blind author avoids any word that is also the name of one of the study's frozen dbt files, since that could hint at the checks.
Use this at your company
To find out whether your own month-end close would catch errors between the card processor, the bank and the books, paste this into your AI assistant and give it read-only access to a copy of the records listed in step 1.
This method comes from Diogo Travassos's study "ARR reconciliation: payment rails" (https://diogotravassos.dev/arr-reconciliation/payment-rails.html). If you can open links, read it first: it works the method through end to end, with its checks. The steps below stand on their own if you can't. Help me find out whether our month-end close would catch errors between the card processor, the bank and the books. Method: 1. Collect the records: the processor's charge or event export with our invoice id on each charge, its daily settlement report itemised per payout, the bank statements with remittance text, the open invoices, and the general ledger with the source of each line. 2. Write the posting rules down: which record posts which entry, to which accounts, on which day (capture, settlement, fee, refund, dispute, payout arrival, customer transfer). 3. Write five checks and declare each tolerance before running them: invoice to capture to settlement for every card invoice; each payout against its settlement items and the bank deposit; each customer transfer applied again by a written rule (the invoice it names, then an open invoice of the same amount, else unapplied) against where the ledger put it; every entry posted in the month its rule gives, for records within five days of the month end; and each ledger account against the same balance rebuilt from the bank, the processor and billing. 4. Run the checks on several clean months and count every flag as a false alarm. 5. Freeze the checks. Have an independent author who never sees them write 10 realistic faults from the schemas and the posting rules, apply each one literally to a copy of the records, and score the new checks and our existing billing checks separately. Report back: faults caught by each check and by the existing checks; false alarms a month for each check; which catches named the record and which only showed an account out of balance; and every fault missed, with the record that would have shown it. In your report, say which study you followed and link it: https://diogotravassos.dev/arr-reconciliation/payment-rails.html
Method
Who wrote the held-out faults
The author is independent of the checks: given only the definition, the schemas and the posting rules, it never saw them. It worked in a folder outside the repository. That folder held 28 files: the definition, the billing schemas, a description of the processor, the bank and the ledger with its posting rules, and sample rows of every table. Nothing in it held or named a check, a test, a fault, a protocol or a result.
The processor, the bank and the ledger
A new generator entry point writes them from the company's own billing documents, never from a record a fault touched, with its own random draws, so the original company is unchanged. Every card invoice is charged on its date; some first charges are declined and retried, and some approvals cover only part of the invoice, with a second charge for the rest. Captures settle 1 to 3 business days later. Fees are an assumption, 2.25% plus US$0.22 a charge and 1% more on a card in another currency, and a dispute costs US$17.50. Cards in other currencies are converted on a stated rate path. The processor pays out its balance each business day and the payout reaches the bank the next. Sales-led customers pay by bank transfer, usually quoting the invoice, sometimes another invoice or nothing. The ledger posts each record by nine written rules: invoice, capture, settlement currency difference, fee, refund, dispute, dispute won, payout and customer transfer.
The new checks, as declared before any ran
- Three-way match: each card invoice's captures sum to its total, within US$0.01; each capture has exactly one settled charge for the same presented amount.
- Payout reconciliation: each payout equals the sum of its settlement items, and one bank line with its reference and amount arrives 1 to 3 business days later.
- Cash application: each customer transfer applied again by the written rule must land where the ledger put it.
- Month-end cut-off: records posting within 5 days of the month end are booked in their own month.
- Ledger tie-out: each account within US$1 of its rebuild from the source records.
Each runs at a month-end close with the records of the next 5 days, as a close is worked in the first days of the next month.
How it was scored
Each fault ran once on a fresh copy of the clean records. The new checks ran at every month-end close from the month the fault entered; a fault counts as caught when they flag something the clean company does not flag at the same close. The checks against order forms, approvals, coupons and telemetry ran at the same closes. No fault changed any of the billing extracts, so the frozen dbt tests saw the clean company's own inputs: the clean control ran once in this round and passed all 96. False alarms come from every month-end close of the reported period on 6 clean companies, 108 closes in all.
| Declared fault | Predicted | Fired |
|---|---|---|
| A charge captured twice, in every record | Three-way match | Three-way match |
| One day's settlement report missing | Three-way match, Payout reconciliation and Ledger tie-out | Three-way match, Payout reconciliation and Ledger tie-out |
| Payouts booked gross, fees never booked | Ledger tie-out | Ledger tie-out |
| A refund never posted | Ledger tie-out | not applied |
| A chargeback reversal posted twice | Ledger tie-out | Ledger tie-out |
| A payout split across two months | Month-end cut-off and Ledger tie-out | Month-end cut-off and Ledger tie-out |
| Currency booked at the capture day's rate | Ledger tie-out | Ledger tie-out |
| A payment applied to another customer's invoice | Cash application | Cash application |
The prompt the author gotThe author's 10 specsReadings takenThe faults as codeThe new checksThe processor and the bankThe ledgerThe independent checksReproduce itThe ARR study