Ledgerline

For Indian payment gateways

Close the books.
Show the work.

Ledgerline walks every rupee from invoice to payment to settlement to the line on your bank statement. Four deterministic passes do the matching, an independent verifier re-checks the arithmetic, and anything that won't tie out arrives as a typed exception with its evidence attached.

Run7f3c9a21CompleteSample
Match rate (auto)

94.2%

Assist rate

4.1%

Open exceptions

17

Rupees at risk

₹2,48,310

VERIFIER OKP2 stl_0442 · 38 payments
Records1,400Value traced₹4.12 CrWall clock1.13 sFalse matches0
Razorpay

Built for the Razorpay BuildathonTRACK 04 · AI Finance Controllerby Gadarla Ritesh

01 · THE CHAIN

Four sources, one story per rupee.

Reconciliation breaks where the sources disagree. Keeping all four in one chain gives a break an address instead of a hunt.

Invoice

1,400

raised in the ledger

1,362 TIED38 UNMATCHED
Payment

1,362

captured by the gateway

1,344 TIED18 UNSETTLED
Settlement

120

batches paid out

118 TIED2 NO BANK LINE
Bank line

118

credits on the statement

02 · THE ENGINE

Deterministic first. Assisted only where it has to be.

Each pass is arithmetic you could check by hand. A model is brought in to triage what is left over, never to decide that two records match.

P1

Bank → settlement

Ties a bank credit to a settlement on amount and UTR. No fuzz, no tolerance: the two either agree or they don't.

P2

Payout recompute

Rebuilds a settlement's payout from its own batch of payments, in integer paise. Float never touches an amount.

P3

Invoice → payment

Links an invoice to a payment through an exact reference, so the chain runs end to end rather than in fragments.

P4

Split payments

Solves a bounded subset-sum when one credit covers many invoices, the case that costs a finance team its afternoon.

The verifier

Whatever proposes a match, a pass or a model, the same independent check re-derives the arithmetic in integer paise before anything is written. A proposal that fails becomes a typed exception carrying the check it failed.

proposal   stl_0451 ← 32 pay
recompute  ₹3,98,760.00
declared   ₹4,40,660.00
verdict    FAILED → exception

03 · THE GUARANTEE

Nothing is matched on trust

Every proposed match, deterministic or assisted, is re-checked by an independent verifier before it is recorded. A proposal that fails its check becomes a typed exception, not a match.

Degradation is visible, not silent

If assisted triage hits a rate limit or returns something malformed, the run still finishes: it reports assist rate zero, flags itself degraded, and files every affected item as an exception.

The same input gives the same output

Runs are seeded and hashed. Re-run a seed and size and you get the same output hash, which is what makes a reconciliation defensible after the fact.

START HERE

Your first run takes one file set.

Upload your ledger, gateway, settlement and bank files, or generate a synthetic corpus with a known truth file and score against it.

LEDGERLINEPrecision and recall render only against a corpus with a truth file.ENGINE v0.12