Two systems, one truth: connecting payments and the ledger
Payment reconciliation across Stripe or Razorpay, the bank and your ERP: why payouts rarely match one invoice, and how to trace a deposit to the journal.
Supreet Gupta, Co-founder
· Updated · 3 min read

On this page
Payment reconciliation across a processor, the bank and the ERP comes down to one question no single system answers: which invoice a deposit paid. Stripe or Razorpay knows a charge succeeded, the bank knows cash landed net of fees, and the ERP holds the books. The billing layer in the middle links each deposit to its invoice and journal entry.
That gap is where a surprising amount of manual reconciliation work quietly lives. It's the cash step that contract-to-cash software is meant to close.
Which system is the source of truth for what
Each system is authoritative for one thing, and none of them is authoritative for the link between a deposit and an invoice:
| System | Authoritative for | Relies on others for |
|---|---|---|
| Stripe / Razorpay | Charge succeeded; customer paid on hosted page | Which open invoice a batch payout covers |
| Bank statement | Cash landed | Why payer name ≠ customer legal name |
| ERP / GL | Books of record | Contract interpretation, rating, proration |
| Sonic (middle) | Invoice sent; schedule and rate truth; match and journal trail | Card processing (Stripe, Razorpay) and the books of record (your ERP) |
Sonic's job is to keep the billing documents consistent from contract to invoice to match to journal-ready entries. It connects your processor, your bank and your ERP, so every deposit traces to the invoice it pays.
Reconciling Stripe and Razorpay payouts to invoices
With Stripe or Razorpay connected, you can add a pay-now link to invoice emails. The customer pays, and the processor's webhook marks the invoice paid. That's correct for AR status and stops Watchtower on that invoice. Stripe and Razorpay payment links on invoices covers the setup.
Deposits still arrive net of fees, often batched across many charges, so the amount in the bank rarely equals one invoice total. Bank reconciliation matches payouts to invoices with a variance for fees and FX, instead of a naive one-to-one deposit search.
Test webhooks in sandbox before go-live. Missing webhook configuration is the classic "money arrived, invoice still open" failure.
Matching bank deposits when the payer name differs
Payer matching compares the amount, the reference, and the billed party's name plus contacts:
- Subscription workspace: the customer catalog
- Shipment workspace: the shipper catalog and shipper contacts
A payment labelled with a personal name in the bank feed may still match a company account when the contacts line up. An exact string match on the payer name alone creates an unmatched pile that grows every week.
Work the unmatched queue daily during close. An unmatched deposit means you may chase someone who already paid. Unmatched invoices mean the books say cash arrived when it didn't. The Monday morning reconciliation problem shows how that queue builds up.
Sending journal entries to your ERP or accounting system
The ERP wants debits equal credits, dated correctly, traceable to source documents. If billing hands it a number without a path back to the invoice or shipment, every audit becomes archaeology.
Sonic builds journal entries from invoices, credit notes, adjustments, forfeits and true-ups, with links back to the sources. Export a CSV or sync them to your ERP or accounting system through an integration. Your controller owns account mapping and period sign-off.
Revenue recognition in Sonic applies the methods you configure and keeps the trail. It doesn't replace policy judgement or the posting controls in your ERP. Reading the revenue waterfall and journal shows what that trail looks like.
How to test payment reconciliation end to end
The test that matters is a walk from the bank to the books. The honest measure isn't whether the API call succeeded.
Can a controller start from a bank statement line, walk to the invoice it paid, and walk from there to the journal entry it posted, without opening three tools and asking ops what happened in March?
If not, you have two systems and two truths.
Watch out for: treating paid as reconciled
- Card paid ≠ bank matched. Both matter for different questions.
- Partial payments need split logic, not forced match to the largest invoice.
- GST on Razorpay receipts must agree with invoice tax lines for Indian customers reclaiming credit.
- Freight uses shipper identity in bank rec and collections, never the customer catalog.
- Do not let the ERP become where proration is "fixed." Fix the schedule or adjustment document upstream.

Written by
Supreet Gupta
Co-founder, Sonic AI · LinkedIn
Supreet is a Cofounder at Sonic AI. Before starting Sonic, Supreet was a Product Manager at SaaS Labs (Sequoia funded Series B startup) where he worked with enterprises in US and Europe to deliver communication solutions. He completed his bachelors from IIT Bombay.


