Skip to main content
When a UPI payment fails, Cashfree returns a standard set of error details in the API response and the payment webhook. This page explains where failures come from, how to read the error details, and what each raw UPI error code means.

Where UPI failures come from

A UPI failure usually belongs to one of the following groups:
  • Customer and account errors: The customer enters a wrong PIN, lacks funds, or exceeds a limit. The customer can often fix these.
  • Bank and network errors: The customer’s bank or the UPI network is slow or unavailable. These are usually temporary.
  • Compliance and policy blocks: A rule stops the payment, such as a Third Party Validation (TPV) mismatch, a flow blocked for your category, or the new-device cap.
  • Mandate errors: A recurring debit fails because the mandate is paused, revoked, or missing a pre-debit notification. For details, see UPI AutoPay.

Error details in the API response

For a failed payment, Cashfree returns an error_details object. It contains a normalised error, identical across banks, and the raw code from the bank or the UPI network. The following table describes each field:
Some raw codes, such as U30 (debit failed), are generic and don’t explain why the payment failed. In these cases, the specific reason is in error_subcode_raw. For example, U30 with the subcode Z9 means the customer has insufficient funds, and U30 with the subcode YE means the customer’s account is blocked or frozen. When error_subcode_raw has a value, look up the subcode in the table of UPI error codes instead of the generic code.
The following example shows the error_details object for a payment that failed because the customer entered a wrong UPI PIN:
Error details
For the full payload, see Payment webhooks.

Customer-facing error messages

Never show a raw code such as ZM or U30 to your customer. Raw codes aren’t meaningful to customers. Translate each failure in three stages, and show only the last stage to the customer: Use the category and description of each code to decide whether to ask the customer to try again, use another account, or contact their bank.

UPI error code reference

The following table lists the UPI and gateway error codes that Cashfree maps. Search across all columns, or filter by category. The codes 0 and 2 aren’t listed in this table because they don’t map to a specific failure reason. If you receive either code in error_code_raw, check error_subcode_raw for the reason. The table uses the following abbreviations: NPCI (National Payments Corporation of India), PSP (payment service provider), TPAP (third-party application provider, such as a UPI app), MPIN (UPI PIN), and IFSC (Indian Financial System Code).
The following table lists all 152 UPI error codes without search or pagination:

Common failure scenarios

The following scenarios cause failures that customers often don’t understand.
The customer may have registered for UPI, changed their phone, reinstalled their UPI app, or reset their UPI PIN in the last 24 hours. During this window, UPI caps each payment at ₹5,000 and the customer’s total payments at ₹5,000, so a smaller payment can also fail if earlier payments have used up the limit. The decline can arrive even when the customer has enough funds. Offer a payment method other than UPI. For details, see New-device cap.
For merchants with Third Party Validation (TPV), the customer’s bank declines a payment made from an account other than the one you registered for the customer. Ask the customer to pay from the registered account. For details, see Third Party Validation.
Check Downtimes for current bank and UPI app health, and suggest another UPI app or payment method while the outage lasts.