Payment Reconciliation Software: Automating Matching Across Multiple Payment Gateways
How to build payment reconciliation software for several gateways: settlement data, matching rules, fees and GST, refunds, chargebacks and exceptions.
How do you automate payment reconciliation?
Pull data from every source (orders or invoices, payment provider transactions and payouts, bank feeds and the ledger), match each layer with clear rules (exact references first, then amounts and dates within tolerances, including many-to-one matches), record fees, refunds, chargebacks and GST explicitly, post summarised entries to the accounting system, and route anything unmatched to an exceptions queue with evidence. Good reconciliation explains every payment between the sale and the bank, however many gateways it passed through.
This guide is for finance, operations and engineering teams in ecommerce, SaaS and service businesses. For connecting accounting systems, see accounting software integration.
Key takeaways
- Reconcile in layers: order, transaction, payout, bank, ledger.
- Use provider references and payout reports, not just amounts.
- Record fees gross; do not net them off revenue.
- Handle refunds, chargebacks and timing explicitly.
- Send exceptions to people with evidence attached.
- Keep an audit trail of every match and adjustment.
The reconciliation chain
| Layer | Matched to | Typical keys |
|---|---|---|
| Order or invoice | Provider transaction | Order ID or invoice number in payment metadata |
| Provider transaction | Payout | Payout ID and balance transaction reports |
| Payout | Bank deposit | Payout amount, date, statement reference |
| All of the above | Ledger | Sales, fees, refunds, chargebacks, clearing accounts |
Why several gateways make it harder
Many businesses add gateways over time: one for cards, another with better UPI or wallet success rates, PayPal for international buyers, a buy-now-pay-later provider, and a lending or EMI partner. Each brings its own identifiers, report formats, fee and tax lines, refund behaviour and settlement timing. Reconciling them one by one in spreadsheets stops scaling quickly.
Gateways expose settlement data differently. These examples come from each provider's documentation, checked in November 2026:
| Provider | Settlement data available | Key to the bank |
|---|---|---|
| Stripe | Balance transactions filterable by payout, with fee details; a payout reconciliation report; a webhook when a payout's transactions are ready | Payout ID and amount |
| Razorpay | Settlement reconciliation API listing payments, refunds, transfers and adjustments with fee and tax; settlement webhooks | UTR (bank reference) on each settlement |
| Cashfree | Settlement reconciliation API filterable by settlement ID, UTR or date, with separate vendor (split) reconciliation | UTR |
| PayPal | Daily reports by SFTP; PayPal now recommends its balance reconciliation report for most merchants, with transaction event codes for refunds and chargebacks | Transfer to bank |
One normalised data model
The core of reconciliation software is a common model that every gateway's data is translated into, so matching rules are written once.
| Entity | Holds |
|---|---|
| Expected payment | What should have been paid: order, invoice, subscription charge or loan instalment, with amount, currency and due date |
| Gateway transaction | Each payment, refund, chargeback, fee, tax and adjustment as reported by the provider, with the provider's IDs and the raw record kept |
| Settlement or payout | Each batch the provider paid out, with its reference (payout ID, settlement ID or UTR), gross, fees, tax and net |
| Bank line | Each credit and debit on the bank statement, from bank feeds or statement files |
| Match | Links between the records above, with the rule that matched them, who approved it and when |
| Exception | Anything unmatched or mismatched, with a reason code, owner and resolution |
Architecture
- Connectors per source that pull from APIs, receive webhooks or read report files on a schedule, keep the raw data, and can safely re-run without creating duplicates
- A normalisation step that maps each provider's fields, currencies, time zones and sign conventions into the common model
- A rules-based matching engine that runs exact matches first, then tolerance and many-to-one matches, and records which rule produced each match
- An exceptions workspace where finance staff see evidence side by side, resolve items and leave notes
- Ledger posting of summarised journals (sales, fees, taxes, refunds, chargebacks) to the accounting system or ERP through clearing accounts
- Monitoring that alerts when a source stops sending data or match rates drop, before month-end finds it
Matching rules
- Exact: shared reference such as order ID or payout ID.
- Tolerance: amount and date within agreed limits when references are missing.
- Many-to-one: one payout covering many transactions; one bank deposit covering several payouts.
- Partial: part payments and split tenders.
- Timing: settlement lags, weekends and public holidays.
- Use provider payout reconciliation reports where available; for example Stripe documents how to reconcile payouts to transactions.
Fees, refunds, chargebacks and GST
Record sales gross and provider fees as expenses, using a clearing account for money held by the provider. Refunds reverse sales and may arrive in different payouts from the original sale. Chargebacks need their own status and evidence workflow. Apply the correct GST treatment to sales, refunds and fees, and confirm it with your accountant. In accounting software, bank reconciliation then matches the payout deposit against the clearing account.
Notes for Indian businesses
Indian payment gateways generally charge GST at 18% on their fees rather than on the payment amount, so fee and tax lines need separate treatment when posting to the ledger. Under the RBI's Payment Aggregator Directions (September 2025), non-bank aggregators hold merchant funds in escrow, and settlement timing to merchants follows the agreement between the aggregator and the merchant, so read your contracts rather than assuming a fixed cycle.
UPI's multiple daily settlement cycles are interbank settlements between banks, not the timing of your payout from a gateway. Reconcile against the gateway's settlement references (usually the UTR) and your bank statement, not against UPI cycle times. Businesses collecting loan repayments through eNACH and UPI AutoPay mandates have an extra layer: matching each debit to an instalment in the loan ledger; see digital lending platform development.
Build, buy or combine
| Option | Fits when |
|---|---|
| Provider-to-accounting app | One provider, simple sales, moderate volume |
| Reconciliation software | Several providers and banks, standard patterns |
| Custom automation | Marketplace splits, many channels, complex refunds, high volume, or unusual ledgers |
Hypothetical example: an online retailer with three payment methods
This example is hypothetical. A retailer took cards through one provider, a wallet through another and buy now pay later through a third. Month-end took days. It built a job that pulled orders, provider transactions and payout reports daily, matched them by order ID and payout ID, posted summary journals with sales, fees and refunds to Xero through a clearing account per provider, and left only bank deposits for Xero's reconciliation screen. Unmatched items went to a queue with reason codes, reviewed daily.
Common mistakes
- Netting fees off revenue.
- Matching on amount alone.
- Ignoring refunds that settle in later payouts.
- No clearing accounts for money held by providers.
- Exceptions handled in spreadsheets without an audit trail.
Related guides
- Payment gateway integration in Australia for provider choice and surcharge rules.
- Payment failure handling for failed and disputed payments.
- Marketplace payment architecture for split payouts.
- API integration reliability for idempotent data pulls.
Conclusion
Payment reconciliation automation works when it follows the money through every layer, uses references rather than guesswork, treats fees, refunds and GST explicitly, and gives people a clear exceptions queue. Start with your highest-volume provider and expand. For UK pay-by-bank payments and their status handling, see open banking integration in the UK.
Month-end taking too long?
ZSpace Labs is an India-based, remote-first technology studio working with Australian and international businesses on payment and accounting integrations and finance workflow automation. We are not accountants, but if it would help to map your reconciliation, we are happy to talk it through.
Common questions.
Confirming that every payment you expected was received, every amount deposited in the bank is explained, and the accounting ledger matches both. For online businesses it usually means matching orders or invoices to payment provider transactions, transactions to payouts, payouts to bank deposits, and everything to the ledger.
Payment providers usually deposit net amounts in batches: many transactions minus fees, refunds, chargebacks and adjustments, settled days later. Reconciliation has to break each payout back into its components.
Record provider fees as expenses with the correct GST treatment, rather than netting them off sales, so revenue and GST on sales are reported correctly. Check the GST treatment of each provider's fees with your accountant.
Partly. Xero, MYOB and others reconcile bank feeds against ledger entries and some payment providers offer integrations. Custom automation helps when you have several providers or channels, high volumes, marketplace splits or complex refunds that the standard integrations do not explain.
Each gateway uses its own identifiers, report formats, fee structures and settlement timing. One may settle daily with a bank reference number, another in weekly payouts with its own payout ID, and a third through a daily settlement file. Reconciliation software has to normalise all of them into one model before it can match anything.
Buy when you use common gateways and your accounting is standard; many reconciliation products cover that well. Build, or extend, when you have marketplace splits, lending or wallet flows, unusual ledgers, very high volumes or gateways and banks the products don't support.
They go to an exceptions queue with the evidence attached and a reason code, for a person to resolve. Track how many exceptions arise and why, and fix the causes, such as missing references or timing rules.