Tech, ExplainedFintech
Part

UPI switch

The bank-side box every UPI request passes.

INSIDE: PAYMENT HUBHOW IT WORKS · PAYING ₹850 AT A CHEMIST IN DEHRADUNYou enter ₹850and your UPI PINin your UPI appNPCI sends adebit requestto your bank'sUPI switchThe switchchecks thePIN and asksthe core todebit ₹850The switchreplies to NPCI:debit doneNPCI sends acredit requestto the chemist'sbank's switchThe chemist'saccount iscredited and thesoundboxannounces ₹850ALSO TALKS TOUPI payment appUPI QR code and soundbox↗ IN-STORE PAYMENTSINSIDE: PAYMENT HUBHOW IT WORKS · PAYING ₹850AT A CHEMIST IN DEHRADUNYou enter ₹850 and yourUPI PIN in your UPI appNPCI sends a debitrequest to your bank'sUPI switchThe switch checks the PINand asks the core todebit ₹850The switch replies toNPCI: debit doneNPCI sends a creditrequest to the chemist'sbank's switchThe chemist's account iscredited and the soundboxannounces ₹850ALSO TALKS TOUPI payment appUPI QR code and soundbox↗ IN-STORE PAYMENTSINSIDE: PAYMENT HUB · PAYING ₹850 AT A CHEMISTIN DEHRADUNYou enter ₹850 and your UPI PIN in yourUPI app↓NPCI sends a debit request to your bank'sUPI switch↓The switch checks the PIN and asks thecore to debit ₹850↓The switch replies to NPCI: debit done↓NPCI sends a credit request to thechemist's bank's switch↓The chemist's account is credited and thesoundbox announces ₹850ALSO TALKS TOUPI payment appUPI QR code and soundbox↗ IN-STORE PAYMENTS
Inside the payment hub, the UPI switch takes NPCI's request for your ₹850 chemist's bill, checks your PIN and balance with the core, and the chemist's bank's switch credits the chemist.
opens a page inside this one a page in the same scene a page in another scene a concept page a label only, with no page

A UPI switch is the system inside a bank that receives every UPI payment request for that bank and answers it. Every bank that offers UPI needs one. Some banks build their own switch. Others use a switch that a software company builds and runs for them.

UPI connects hundreds of banks through NPCI, the organisation that runs UPI. NPCI does not hold anyone's money. It only passes requests between banks. Each bank's UPI switch is the point where those requests enter and leave the bank.

Imagine you pay a ₹850 medicine bill at a chemist's shop in Dehradun with your UPI payment app. The app sends your request to NPCI. NPCI sends a debit request to your bank's UPI switch. The switch checks your UPI PIN. It asks the bank's core banking system whether you have ₹850 in your account, and asks the core to debit it. Then it replies to NPCI that the debit is done. NPCI now sends a credit request to the chemist's bank. That bank's UPI switch tells its own core to credit ₹850 to the chemist's account. The soundbox on the counter then announces the payment. The whole exchange takes a few seconds.

The hard part is the number of payments. India makes hundreds of millions of UPI payments every day, and the number rises sharply during festival sales. A large bank's switch must answer thousands of requests every second, every hour of the day. If the switch is slow or stops working, payments fail. NPCI tracks how many payments each bank fails for technical reasons. So banks spend a lot of engineering effort on keeping their switch fast and always running.

The UPI switch is a part of the bank's payment hub. It also handles newer kinds of UPI payment. With a credit line on UPI, the switch takes the ₹850 from a credit line instead of from a savings account.

Tech, Explained is a part of ingrid.fyi. Every page explains one piece of technology in plain words.