# ATM didn't give cash but your account was debited: what actually happened (System Design Notes)

> The ATM withdrawal flow from acquirer to NPCI's NFS switch to your bank: why you're debited before the notes come out, what a lost reversal means, how...

Canonical: https://www.internhack.in/notes/atm-cash-not-dispensed
Last updated: 2026-11-03

By InternHack Team · 2026-11-03 · 11 min read · System Design

The ATM makes its counting noise, nothing comes out, and a second later your phone buzzes: **"₹5,000 debited"**. It feels like the bank ate your money. It didn't. The money was taken out of your account **before** the machine even tried to count the notes, and that order is the design.

In these notes we break a cash withdrawal down like a system design problem: who the actors are, the order in which things happen, what goes wrong when the notes jam, how the money comes back, and what RBI says you're owed if it doesn't come back in time. At the end there's a ready answer for interviews.

All facts come from RBI circulars and FAQs, NPCI data and circulars, and the sources listed below. NPCI's NFS message spec isn't public, so a few details are marked **unverified**.

## The order that surprises everyone: debit first, cash second

A withdrawal is a question and an answer, then an action:

1. The ATM asks your bank: **"Can I give this person ₹5,000?"**
2. Your bank checks the PIN and the balance, says **yes**, and **debits (or holds) your account at that moment**.
3. Only then does the ATM get the go-ahead to count notes from its cassettes and push them out.

In card-network language (ISO 8583), step 1 is a **0200** "request for funds" (processing code 01 = cash), and step 2 is the **0210** response, where response code **00** means approved. RBI's own wording for this incident, "Customer's account debited but cash not dispensed", tells you the debit happens at approval, before any note moves. (Whether NFS uses the single 0200 message or a 0100 + 0220 pair for ATMs is **unverified**; the spec isn't public.)

So the fast part (the online yes/no and the debit) happens in seconds. The proof that the notes didn't come out lives inside the ATM, and gets checked later. That gap is why "kat gaya, baad mein aaya" happens.

> **System design lesson:** The authorisation and the physical action (dispensing cash) are two separate steps. When the second one fails, you need a compensating action (a reversal) to undo the first.

## Sign up free to unlock the full notes

The rest of these notes needs a free InternHack account:

- The actors in the system
- The full flow, step by step
- When something fails
- What RBI says you're owed
- Real cases
- Numbers worth remembering
- The design question: should the order be reversed?
- How to answer this in an interview
- The reel's question: how many days should your refund take?

Sign up free: https://www.internhack.in/register?from=%2Fnotes%2Fatm-cash-not-dispensed

## Sources

- RBI circular RBI/2019-20/67, TAT harmonisation and customer compensation (20 Sep 2019): https://www.rbi.org.in/Scripts/NotificationUser.aspx?Id=11693
- RBI FAQ, ATM / White Label ATM (calendar days, who pays, complaints, fees): https://www.rbi.org.in/Scripts/FAQView.aspx?Id=75
- RBI on failed attempts not counted as free transactions (14 Aug 2019), via Business Standard: https://www.business-standard.com/amp/article/finance/rbi-asks-banks-not-to-count-failed-attempts-in-free-atm-transactions-119081401767_1.html
- RBI 27 May 2011 circular and its history, via Moneylife: https://www.moneylife.in/article/rbi-asks-banks-to-reimburse-failed-atm-transactions-in-7-days/16791.html
- RB-Integrated Ombudsman Scheme 2021, salient features: https://www.idfcfirstbank.com/content/dam/idfcfirstbank/pdf/ombudsman/Salient-Features-of-RB-Integrated-Ombudsman-Scheme-RBI-IOS-2021-English.pdf
- RBI Bulletin, Payment System Indicators (June 2026 data): https://www.rbi.org.in/scriptS/BS_ViewBulletin.aspx?Id=24427
- NPCI Retail Payments Statistics: https://www.npci.org.in/uploads/RETAIL_PAYMENTS_STATISTICS_1_xlsx_de91fc7ec0.pdf
- ISO 8583 message types (0200, 0210, 0420, 0430): https://en.wikipedia.org/wiki/ISO_8583
- National Financial Switch history: https://en.wikipedia.org/wiki/National_Financial_Switch
- NPCI NFS OC-424 (reconciliation, pro-active credit adjustments; snippet): https://npci.org.in/PDF/nfs/circular/2025-26/NFS-OC424-FY-24-25-Implementation-of-revised-fee-structure-of-NRP-&-PRD-process.pdf
- NPCI NFS OC-11 (EJ upload for disputes; snippet): https://www.npci.org.in/PDF/nfs/circular/2010-11/NFS-OC-11-Upload-of-JP-EJ-Copy-into-Online-Dispute-Management-System.pdf
- NPCI NFS OC-120 (debit adjustment window; snippet): https://npci.org.in/PDF/nfs/circular/2014-15/NFS%20_OC%20120%20(NFS%20-%20Revision%20of%20timeline%20for%20reising%20Debit%20Adjustment).pdf
- PIN blocks and HSM translation: https://eftlab.com/post/hsms-in-a-payment-industry
- Reconciling ATM electronic journals: https://www.inetco.com/resources/use-cases/reconciling-atm-electronic-journals/
- Surat case, ₹3.28 lakh after 9 years: https://www.etvbharat.com/en/state/gujarat-man-receives-over-rs-3-lakh-compensation-after-9-years-for-rs-10000-atm-error-enn26032004363
- Delhi case, ₹59,600: https://www.outlookmoney.com/news/rs-10000-debited-but-no-cash-from-atm-consumer-commission-orders-rs-59600-payout
- SBI ordered to refund ₹40,000 (NCDRC): https://moneylife.in/article/atm-fails-to-dispense-cash-sbi-ordered-to-refund-rs40000-with-interest/77301.html
- Bengaluru non-transferable card case: https://thebetterindia.com/162609/sbi-atm-malfunction-bengaluru-teacher-news
- Technical decline share (Dec 2021): https://www.business-standard.com/amp/article/economy-policy/insufficient-balance-wrong-pin-top-reasons-for-failed-digital-transactions-121122700487_1.html

NPCI's NFS specs aren't public, and some NFS circular wording comes from search snippets. Message-level details marked "unverified" above are standard industry practice, not confirmed NFS rules.

## Related

- [Home](https://www.internhack.in/)
- [Notes](https://www.internhack.in/notes)
