Your billing system says a customer paid. Your finance team cannot find the corresponding amount in the bank. That does not automatically mean the payment failed: a gateway may settle later, combine transactions, deduct fees or process a refund. The product needs to show which event each amount represents.
Razorpay's settlement reporting documentation describes the reports used to inspect settlements. A SaaS team should design reconciliation around the provider's actual export fields and its own invoice model, rather than matching only by customer name and date.
Keep invoice, payment and settlement identities separate
Store your invoice ID and customer ID alongside the gateway order and payment IDs. A subscription renewal can create a new invoice even when the customer and plan remain the same. One bank settlement can contain many successful payments. Model those relationships explicitly.
A webhook is useful for quickly recording payment events. Verify its signature, make processing idempotent and store the original event ID. It is an event notification, not proof that the net amount has reached the bank account. The gateway settlement report remains a separate input.
Match the records in stages
First match gateway payments to invoices using IDs and expected amount. Next match settled transactions to the settlement report. Finally compare the settlement total and date with the bank credit. Show gross amount, fees, tax or adjustments where supplied, refunds and net settlement as distinct columns. Do not force an unmatched line into a "paid" state merely to make totals agree.
Useful exception categories include missing invoice, duplicate webhook, partial payment, refunded payment, expected settlement not yet received, and bank credit with no matching report. Give finance staff a note and resolution field for each exception. Preserve the original imported file or its audit reference so a correction can be traced.
Start with a daily review, not a full accounting system
For a small SaaS company, a daily import plus an exception queue can be enough. Test a renewal on month-end, a late settlement, a partial refund and a webhook delivered twice. Protect customer payment data with limited access; never store card details that the gateway handles.
If your team is manually joining invoice exports to bank statements, describe the data sources at adityazen. I can help design the reconciliation layer and the review screen before anyone builds another billing dashboard.





