Skip to content
Sonic AI

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

Supreet Gupta, Co-founder

· Updated · 3 min read

A stack of coins joined by a blue line to an invoice card, showing a deposit matched to the invoice it paid.
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:

SystemAuthoritative forRelies on others for
Stripe / RazorpayCharge succeeded; customer paid on hosted pageWhich open invoice a batch payout covers
Bank statementCash landedWhy payer name ≠ customer legal name
ERP / GLBooks of recordContract interpretation, rating, proration
Sonic (middle)Invoice sent; schedule and rate truth; match and journal trailCard 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.
Supreet Gupta

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.

FAQ

Should payment processor fees be booked separately?

Yes. Book the invoice as paid in full and record the processor's fee as an expense, rather than treating the shortfall as a partial payment. The customer paid the whole invoice, and the fee is your cost of collecting it. Netting fees against the invoice leaves it looking short-paid and hides what collection costs you.

What is the difference between an invoice marked paid and a bank match?

A processor marks an invoice paid when the charge succeeds, which updates accounts receivable and stops reminders. A bank match comes later, when the payout lands in your account and is tied back to the invoices it covers. The first tells you the customer paid. The second tells you the cash actually arrived.

Why don't bank deposits match invoice amounts?

Deposits arrive net of processor fees, bundled across several charges, short of bank charges or in a different currency. A customer may also pay two invoices in one transfer, or only part of one. Matching on amount alone fails in each of these cases, which is why matching also uses the reference and the payer's name and contacts.

How does GST affect payment reconciliation in India?

Indian business customers claim input tax credit on the GST in your invoice, so the tax on any receipt or pay-now record has to agree with the invoice's tax lines. A mismatch can hold up their claim, and the query comes back to your AR team. US sales tax has no input credit of this kind, so the same check carries less weight there.

See Sonic run on one of your contracts.

A 30-minute call with the team, using your own contract.

Book a demo