Wallets, marketplaces with seller payouts, prepaid credits, loyalty points, lending books and ERPs all need a ledger. Many start with a 'balance' column that is updated in place. It works until a retry posts the same payment twice, two requests update the same balance at once, or someone edits a past transaction to fix a mistake. Then the balance drifts, and nobody can say why.

Orivia Technologies builds double-entry ledgers: the posting engine at the heart of a financial product, designed so that the books balance by construction and every number can be traced to the entries that made it.

The principles we build on

  • Every movement is a balanced entry. Debits equal credits, written in one database transaction, or not at all.
  • Entries are never edited. Mistakes are corrected with reversing or adjusting entries, so the history stays intact.
  • Balances come from entries. Balances can be cached for speed, but they can always be rebuilt from the entries, and we test that they match.
  • Retries cannot double-post. Every posting request carries an idempotency key, so a timeout and retry give one entry, not two.
  • Closed periods stay closed. Posting into a locked period is blocked; late items go into the open period with a reference.
  • Currencies are explicit. Amounts are stored with their currency and exact precision, and conversions record the rate used.

What we deliver

  • A chart of accounts model that fits your product: customer wallets, seller payables, fees, tax, suspense and clearing accounts.
  • A posting API that takes business events (payment received, order refunded, payout sent) and turns each into the right balanced entries.
  • Reversal and adjustment flows, with approval for anything manual.
  • Balance, statement and trial balance APIs and reports.
  • Automated checks that run every day: all entries sum to zero, balances rebuild from entries, no entry posted into a closed period.
  • An audit trail of who or what posted each entry, and from which source event.

Proof from our own work

Our early-access GST ERP, Ledgerline, is built on these rules. Sales invoices, receipts, credit notes, goods receipts, supplier invoices, supplier payments, purchase returns and stock adjustments each post a balanced double-entry journal automatically. Posting into a closed fiscal period is blocked. Posted invoices cannot be edited; corrections go through credit notes. Document numbers are gapless, the stock ledger is append-only, and the backend produces a trial balance, profit and loss and balance sheet from the journals. The backend runs on FastAPI, PostgreSQL and Redis Streams; the user interface is still a prototype on demo data. The data model, the event flow and the gaps we still have are in how we built a ledger where every number traces to its source.

In scope and not in scope

In scope: ledger design, posting engines, reporting, reconciliation hooks and migration of existing balances with proof that they match. Not in scope: holding customer money, or advising on whether your product needs a licence from the RBI or another regulator. Your legal advisers decide that; we build the system to fit the answer.

Questions to ask any vendor

  • If the same request is sent twice, how many entries are created?
  • Can every balance be rebuilt from the entries, and is that tested?
  • How is a mistake corrected, and does the original entry survive?
  • What stops a posting into last month after it is closed?

Custom builds start from ₹8 lakh per project. After launch, Run & Improve (hosting, support and small changes) is ₹1–2 lakh a month. Most engagements start with a paid Architecture Sprint: two weeks in which we read what exists, write down the architecture, the risks and the plan, and give you a fixed quote for the build.