RefinePoint

Blog · · 6 min read

Four-way reconciliation for online businesses: orders, gateway, bank, ledger

Trace every online order through the payment gateway, the bank credit and the ledger entry, with a clearing account that proves the chain is complete.

An online business has four records of the same money. The store or order system says what customers bought. The payment gateway says what it collected and settled. The bank says what arrived. The ledger says what the accountants booked. Most teams reconcile one pair, usually gateway to bank, and assume the rest. That catches a missing settlement, but not an order that was shipped and never paid, a refund the gateway made that nobody booked, or a settlement that reached the bank but was posted to the wrong ledger. A four-way reconciliation links all four, so every order can be traced to a rupee in the books. This post sets out how to build one.

The chain

Think of it as three links, each with its own key.

Link From To Key Amounts
1 Order Gateway payment Order number (or the gateway's order ID stored on the order) Order value against the payment, close but not always equal
2 Gateway payments Bank credit Settlement ID or UTR Sum of net payments in a settlement equals the bank credit
3 Bank credit Ledger entry Settlement ID or UTR in the voucher narration Exact

The middle link is many-to-one: hundreds of payments make up one settlement, and one settlement is one bank credit. The other two are usually one-to-one.

Prepare each side

Orders

Export from Shopify, WooCommerce or your own order system: order number, order date, payment method, order value, status. Leave out cash-on-delivery orders; they are paid through the courier's remittance, which is a reconciliation of its own. Keep cancelled orders that were paid, because they should have a refund on the gateway side.

Gateway

Use the gateway's settlement reconciliation report rather than a list of payments. For Razorpay that is the report listing each payment, refund and adjustment with its settlement ID and settlement UTR; for Stripe, the balance transactions with the payout each one was included in. Each line needs the order reference, the settlement reference and the net amount (after fees and tax). Refunds are negative lines.

Bank

The statement for the collection account, with the UTR or settlement reference extracted from the narration where needed. Keep only credits from the gateway, or keep all lines and expect the rest to remain unmatched.

Ledger

The entries that booked each settlement, from Tally, Zoho Books or SAP. The practical way to make this link reliable is a clearing account, described below.

Use a gateway clearing account

The cleanest bookkeeping for gateway collections uses an intermediate ledger, often called "Razorpay clearing" or "Gateway receivable".

  1. When an order is invoiced: debit the gateway clearing account, credit sales and output GST.
  2. When the settlement reaches the bank: debit bank with the net amount, debit payment gateway charges with the fees, debit input GST with the tax on fees, and credit the clearing account with the total of the three. Put the settlement ID or UTR in the voucher narration.
  3. When a refund goes out through the gateway: debit sales returns or the customer, credit the clearing account.

If everything is in order, the clearing account's balance at any date equals the orders paid but not yet settled, which with a T+2 cycle is roughly the last two working days of sales. A balance that keeps growing, or a debit balance a month old, means a link in the chain is broken. The four-way reconciliation tells you which one.

A worked example

Illustrative records for three days of orders on a store collecting through one gateway.

Link 1: orders to gateway. 412 orders worth ₹6,18,400. 411 of them match a captured payment. Three need a closer look:

Order Value (₹) What happened
ORD-104455 2,499 Payment authorised, never captured; order shipped anyway
ORD-104471 1,850 Customer paid twice; second payment refunded, order matched to the first
ORD-104502 3,200 Order cancelled after payment; refund of ₹3,200 issued on the gateway

ORD-104471 matched its first payment; the second payment and its refund sit on the gateway side and cancel each other. ORD-104502 matched its payment, and the refund is a separate negative line. ORD-104455 is the only order with no payment, and it is the real problem: goods worth ₹2,499 shipped without payment. Without link 1, this would never surface, because the gateway and bank agree perfectly.

Link 2: gateway to bank. The captured payments, less refunds, fees and GST on fees, were settled in three settlements.

Settlement Net (₹) Bank credit (₹) Result
setl_illustrative01 1,96,212.40 1,96,212.40 Matched on UTR
setl_illustrative02 2,04,830.15 2,04,830.15 Matched on UTR
setl_illustrative03 1,92,118.60 not yet In transit, settles after the cut-off

Link 3: bank to ledger. Both bank credits should have a voucher with the same UTR in the narration. One does; the other was booked by the accountant on the correct date and amount but without the UTR, so it matches on amount and date instead, which is acceptable but worth fixing in the posting process.

Between them, the three links leave four open items: one unpaid shipped order (recover from the customer or write off), one settlement in transit (should clear in two days), and two refunds to verify in the books.

Totals that should agree

Alongside the line-by-line links, check two totals every period.

  • Gateway settled total against bank credits from the gateway. For settled items, these must agree to within a rupee. If they do not, a settlement is missing from one side or a bank credit was misread.
  • Orders total against gateway captured total, after removing cash-on-delivery and adding back refunds. A gap here is either uncaptured payments or orders created outside the store.

Frequency and ownership

Run links 1 and 2 daily if your volume is in hundreds of orders a day; weekly at the least. Link 3 can follow the books' posting rhythm. Give each link an owner: link 1 usually belongs to the e-commerce or operations team, because the fix is in the order system; link 2 to treasury; link 3 to accounts. A shared list of open items, with ageing, keeps all three honest.

Watch out for duplicates on the order side too. The same order number exported twice, or an order recreated after a payment failure, will show up as an order with no payment and can hide a real one.

How RefinePoint does it

RefinePoint's built-in Online payments (four-way) template has four sides, Orders, Gateway settlements, Bank statement and Ledger. It links them in five passes: order to gateway payment on the order number (with the amount compared within 3%, so a difference shows rather than blocking the pair), gateway payments to the bank credit on the settlement ID or UTR (several payments to one credit, up to twelve, within ₹1), gateway batches to bank by total for larger groups, bank to ledger on the settlement ID with the exact amount, and bank to ledger by exact amount within two days. A record that is missing from one of the four sides is shown as not in that side, so a partly traced order is visible as such. Its checks flag duplicate orders, compare gateway and bank totals within ₹1 and age the open items. For a three-sided version without the ledger, the Payment gateway settlements template matches orders to the settlement report and each batch to its bank credit within a percentage, to allow for fees. Gateway data can come from RefinePoint's Razorpay, Stripe, Cashfree or Shopify connectors, or from files.

To trace a week of your own orders, request a demo at refinepoint.com or start free at app.refinepoint.com. For the gateway-to-bank link on its own, see reconciling Razorpay and Stripe settlements to the bank.

Sources

Filed under Payment gateways, Ecommerce

Reconcile it in RefinePoint

Templates for bank, vendor, GST, payroll, card and payment reconciliations. Upload two files and see the matches, the differences and why.

Request a demoStart free