education

Handling UPI Reversals and Failed Transactions in Accounting Ledgers

How to account for UPI reversals, failed payments, deemed success timeouts, and customer refunds in Tally and ERP accounting ledgers with clean journal entries.

GS Gaurav Sharma Financial Controller & Forensic Accountant 2 min read
Handling UPI Reversals and Failed Transactions in Accounting Ledgers guide
upi failed transaction accounting entry upi reversal journal entry tally deemed success upi refund accounting fintech bookkeeping accounting reconciliation

In retail, e-commerce, and digital subscription services, transactions do not always flow smoothly from PENDING to SUCCESS. In the high-velocity world of UPI processing:

  • A customer’s account gets debited, but a network timeout leaves the merchant website showing “Payment Failed”.
  • A customer orders food or groceries, cancels 5 minutes later, and requires an immediate refund.
  • An overnight interbank clearing batch executes an automatic reversal under RBI Harmonisation of Turn Around Time (TAT) directions.

When junior accountants do not understand the underlying technical status codes of these payment exceptions, they create imbalanced bank reconciliation statements (BRS), artificial revenue inflation, and messy GST liabilities.

Here is an accounting handbook on handling UPI reversals, failed transactions, and refunds in Tally Prime, Zoho Books, and enterprise ERPs.


The Chaos of Failed & Reversed Digital Payments

When financial books do not cleanly track digital payment exceptions, errors compound quickly:

The Ledger Distortion Cycle:
Customer pays ₹2,500 ──► System generates Tax Invoice (Output GST logged)
                                │
Payment fails / auto-reversed ◄─┘ (Accountant forgets to issue Credit Note)
                                │
Result: Merchant pays GST on sales revenue that was never actually collected!

Maintaining clean books requires a suspense clearing ledger model rather than posting directly to revenue before settlement finality.


Understanding the Three Types of UPI Exceptions

To pass the correct accounting journal entry, you must first identify which of the three transaction failure states occurred:

┌──────────────────────────────────────────────────────────────────┐
│                   The 3 UPI Exception Scenarios                  │
├──────────────────────────────────────────────────────────────────┤
│                                                                  │
│  SCENARIO 1: Pure Technical Decline                              │
│  • Payer PIN wrong or bank server down.                          │
│  • Zero funds leave payer; zero funds hit merchant.             │
│  • Accounting Action: No entry required in financial books.      │
│                                                                  │
│  SCENARIO 2: System Deemed Success / Overnight Auto-Reversal      │
│  • Money debited from customer, held in interbank transit.       │
│  • Auto-reversal executed by NPCI switch in T+1 day batch.       │
│  • Accounting Action: Reconciled via Bank Clearing Suspense.     │
│                                                                  │
│  SCENARIO 3: Bona Fide Merchant Refund / Return                  │
│  • Order completed and settled into merchant account.            │
│  • Customer returns goods; merchant initiates programmatic refund│
│  • Accounting Action: Issue formal GST Credit Note + Payout.     │
│                                                                  │
└──────────────────────────────────────────────────────────────────┘

Exact Journal Entries for Tally Prime & Zoho Books

To keep bank statements perfectly aligned with sales ledgers, use an intermediate UPI Clearing Account:

Entry 1: When Order is Placed and Payment Confirmed

Debit:  UPI Clearing Account (Temporary Asset)     ₹ 1,180.00
Credit: Sales Revenue Account (Base Price)        ₹ 1,00,0.00
Credit: Output CGST Account (9%)                  ₹    90.00
Credit: Output SGST Account (9%)                  ₹    90.00
(Being sales order #1041 invoiced upon payment confirmation)

Entry 2: When Bank Statement Credits the Real-Time Settlement

Debit:  HDFC Bank Current Account                  ₹ 1,180.00
Credit: UPI Clearing Account (Temporary Asset)     ₹ 1,180.00
(Being settlement confirmed against Bank UTR: 609415892014)

Entry 3: When an Order is Cancelled and Customer Refunded

Step A: Pass Credit Note (Reverse Sales & Tax Liability)
Debit:  Sales Returns / Revenue Account            ₹ 1,000.00
Debit:  Output CGST Account (9%)                   ₹    90.00
Debit:  Output SGST Account (9%)                   ₹    90.00
Credit: Customer Ledger Account                    ₹ 1,180.00

Step B: Pass Payout / Refund Entry
Debit:  Customer Ledger Account                    ₹ 1,180.00
Credit: HDFC Bank Current Account                  ₹ 1,180.00
(Being automated refund issued to customer via Bank Payout API)

Handling GST Credit Notes & Tax Reversals

Under Section 34(1) of the Central Goods and Services Tax (CGST) Act, when goods supplied are returned or when the taxable value or tax charged in that invoice is found to exceed the taxable value, the registered person must issue a Credit Note.

Statutory Credit Note Requirements under GST:
├── Must reference the Original Tax Invoice Number and Date.
├── Must detail the original 12-Digit Bank UTR reference.
├── Must specify the exact HSN / SAC codes and reversed tax rates.
└── Must be reported in Table 9B of monthly GSTR-1 return.

Failing to link your credit notes to original invoice numbers prevents you from claiming back the output GST previously paid to the government.


Automated Refund Reconciliation with VyaparGateway

Manually verifying whether a refund reached the customer’s bank account or was reversed by the switch consumes excessive customer support time.

With VyaparGateway:

  • Automated Reverse Webhooks: When an automated refund is executed, VyaparGateway tracks the original UTR and logs the refund reference number.
  • Bi-Directional Ledger Sync: Accounting integrations in Tally and Zoho Books automatically generate corresponding Credit Notes and payment reversal vouchers.
  • Zero Reconciliation Leakage: Your month-end Bank Reconciliation Statement (BRS) matches your core banking statement down to the exact paisa.

Direct answers

Frequently asked questions

What is the correct journal entry for a failed UPI payment that debited the customer?
If money was debited from the customer but did not hit the merchant account, no entry is passed in the merchant's financial books. If money briefly hit the merchant bank account and was auto-reversed by the NPCI switch under T+1 rules, you pass a Contra/Reversal entry debiting the 'UPI Clearing Account' and crediting the 'Bank Account'.
What is a 'Deemed Success' transaction in UPI terminology?
A 'Deemed Success' status occurs when the customer's bank account was successfully debited, but network latency prevented the merchant's acquiring bank from sending a real-time confirmation. The NPCI switch auto-reconciles the transaction overnight.
Do you need to issue a GST Credit Note for an immediate UPI payment reversal?
If the sale was already finalized and a Tax Invoice was generated in your accounting system, you must issue an official GST Credit Note under Section 34 of the CGST Act to reverse the output tax liability. If the transaction failed at checkout before invoice issuance, no tax credit note is required.

Build your payment flow

Explore the API and browser-only merchant tools.

Create UPI checkout orders, verify signed events, or test the free calculators and generators without exposing credentials.