> ## Documentation Index
> Fetch the complete documentation index at: https://www.cashfree.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# UPI Error Codes and Failure Handling

> Search every UPI error code Cashfree maps, understand where a failure comes from, and turn raw bank codes into clear messages for your customers.

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 fromA 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](https://www.cashfree.com/docs/payments/manage/payment-methods/upi-transaction-limits.md#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](https://www.cashfree.com/docs/payments/subscription/upi-autopay.md).## Error details in the API responseFor 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:| Field | Description |
| :- | :- |
| `error_code` | Normalised error code, for example `TRANSACTION_DECLINED`. |
| `error_description` | Normalised description of the failure. |
| `error_reason` | Normalised reason, for example `auth_declined`. |
| `error_source` | Where the failure originated, for example `customer`. |
| `error_code_raw` | Raw error code from the bank or the UPI network. Look this up in the [table of UPI error codes](#upi-error-code-reference). |
| `error_description_raw` | Raw error description from the bank or the UPI network. |
| `error_subcode_raw` | Raw error subcode, when the bank provides one. When `error_code_raw` is a generic code, such as `U30`, this field holds the specific reason. |> [!NOTE]
>
> 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](#upi-error-code-reference) 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:```json Error details theme={"dark"}
{
  "error_details": {
    "error_code": "TRANSACTION_DECLINED",
    "error_description": "issuer bank or payment service provider declined the transaction",
    "error_reason": "auth_declined",
    "error_source": "customer",
    "error_code_raw": "ZM",
    "error_description_raw": "INVALID / INCORRECT MPIN",
    "error_subcode_raw": ""
  }
}
```For the full payload, see [Payment webhooks](https://www.cashfree.com/docs/api-reference/payments/latest/payments/webhooks.md).## Customer-facing error messagesNever 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:| Stage | Audience | Example |
| :- | :- | :- |
| Raw bank or network code | Your logs and reconciliation | `ZM`, `INVALID / INCORRECT MPIN` |
| Normalised Cashfree error | Your server-side logic and analytics | `error_code: TRANSACTION_DECLINED`, `error_reason: auth_declined` |
| Customer message | Your checkout page, app, SMS, or email | "The UPI PIN you entered is incorrect. Try again with the correct PIN." |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 referenceThe following table lists the UPI and gateway error codes that Cashfree maps. Search across all columns, or filter by category.

\<table><thead><tr><th scope="col">Error code</th>
              \<th scope="col">Category</th>
              \<th scope="col">Reason</th>
              \<th scope="col">Description</th></tr></thead>
          \<tbody /></table>


      

Previous

          
Page  of 
          
          
Next

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).> [accordion] View all UPI error codes in one table
>
> The following table lists all 152 UPI error codes without search or pagination:
>
> | Code | Category | Reason | Description |
> | :- | :- | :- | :- |
> | `U07` | Gateway Error | Invalid Format | Gateway infrastructure error detected. |
> | `U10` | Gateway Error | Invalid Format | Gateway infrastructure error detected. |
> | `U12` | Gateway Error | Currency Mismatch | Gateway infrastructure error detected. |
> | `U15` | Gateway Error | Encryption Error | Gateway infrastructure error detected. |
> | `U18` | Transaction Declined | Authorisation Not Acknowledged | Customer could not be authenticated for the transaction. |
> | `U36` | Gateway Error | Response Error | Gateway infrastructure error detected. |
> | `SP` | Transaction Declined | Invalid ATM PIN | Issuer bank or payment service provider declined the transaction. |
> | `U02` | Transaction Declined | Transaction Amount Limit | Customer has exceeded the withdrawal amount limit. |
> | `U04` | Gateway Error | Invalid Transaction | Transaction was invalid. |
> | `U06` | Gateway Error | Invalid Transaction | Transaction was invalid. |
> | `U08` | Network Error | Bank Offline | The request session timed out. Retry after some time. |
> | `U24` | Transaction Declined | Auth Timeout | Issuer bank or payment service provider declined the transaction. |
> | `OC` | Transaction Declined | Credit Failed | Issuer bank or payment service provider declined the transaction. |
> | `RB` | Network Error | Credit Reversal Timeout | A network infrastructure error occurred. |
> | `RN` | Payment Instrument Blocked | Attempts Exceeded | The network blocked the customer's payment instrument. |
> | `RR` | Network Error | Debit Reversal Timeout | A network infrastructure error occurred. |
> | `U01` | Gateway Error | Duplicate Transaction | Gateway infrastructure error detected. |
> | `U20` | Transaction Declined | Auth Timeout | Issuer bank or payment service provider declined the transaction. |
> | `NC` | Transaction Declined | Credit Failed | Issuer bank or payment service provider declined the transaction. |
> | `U29` | Transaction Declined | Debit Failed | Issuer bank or payment service provider declined the transaction. |
> | `AJ` | Transaction Declined | Inactive Card | Issuer bank or payment service provider declined the transaction. |
> | `BT` | Network Error | Acquirer Bank Offline | A network infrastructure error occurred. |
> | `U05` | Gateway Error | Invalid Format | Gateway infrastructure error detected. |
> | `U32` | Transaction Declined | Credit Failed | Issuer bank or payment service provider declined the transaction. |
> | `U34` | Transaction Declined | Transaction Reverted | Issuer bank or payment service provider declined the transaction. |
> | `U38` | Gateway Error | Response Error | Gateway infrastructure error detected. |
> | `LD` | Transaction Declined | Debit Failed | Issuer bank or payment service provider declined the transaction. |
> | `ZX` | Transaction Declined | Account Inactive Customer | Issuer bank or payment service provider declined the transaction. |
> | `XJ` | Transaction Declined | Unknown Error | Issuer bank or payment service provider declined the transaction. |
> | `U88` | Network Error | Network Timeout | A network infrastructure error occurred. |
> | `S0` | Transaction Declined | PSP Decline Spam | Payment service provider declined the transaction. |
> | `XN` | Transaction Declined | No Card Customer | Issuer bank or payment service provider declined the transaction. |
> | `XT` | Transaction Declined | Cutoff Time | Issuer bank or payment service provider declined the transaction. |
> | `XY` | Network Error | Bank Offline | The request session timed out. Retry after some time. |
> | `YE` | Transaction Declined | Account Blocked or Frozen | Issuer bank or payment service provider declined the transaction. |
> | `Z6` | Transaction Declined | PIN Try Exceeded | Allowed number of PIN retries exceeded. |
> | `M5` | Payment Instrument Blocked | Account Closed | The network blocked the customer's payment instrument. |
> | `400` | Transaction Declined | Invalid Phone Number | The phone number entered for this transaction is invalid. |
> | `403` | Transaction Declined | Unauthorised User | The customer is not authorised to perform this action. Reach out to the issuer bank. |
> | `L05` | Network Error | Unknown Network Error | A network infrastructure error occurred. |
> | `NA` | Transaction Declined | Unknown Error | Issuer bank or payment service provider declined the transaction. |
> | `U48` | Transaction Cancelled | Customer Inactive | The customer cancelled the transaction or didn't attempt it. |
> | `VK` | Transaction Declined | Transaction Amount Limit | Customer has exceeded the withdrawal amount limit. |
> | `R02` | Validation Failure | Invalid VPA | Customer's payment instrument was not set up properly. |
> | `U78` | Technical Failure | Credit Failed | Beneficiary bank is not available. |
> | `U85` | Network Error | Network Timeout | A network infrastructure error occurred. |
> | `51` | Transaction Declined | Insufficient Funds | The customer's account doesn't have sufficient balance. |
> | `XL` | Transaction Declined | Expired Card | The card has expired, or the customer entered an incorrect expiry date. |
> | `XR` | Transaction Declined | Restricted by Bank | Issuer bank or payment service provider declined the transaction. |
> | `YD` | Transaction Declined | Payment Not Allowed | Payment to this beneficiary is declined. |
> | `57` | Transaction Declined | Account Holder Restricted | The customer's bank has restricted the customer's account for this transaction. |
> | `S1` | Transaction Declined | Fraud Detected | Issuer bank or payment service provider declined the transaction. |
> | `500` | Network Error | Bank Offline | The request session timed out. Retry after some time. |
> | `404` | Validation Failure | Invalid Google Pay User | The customer is not a valid Google Pay user. Register with the correct phone number. |
> | `CF22` | Network Error | Bank Offline | The request session timed out. Retry after some time. |
> | `U53` | Transaction Declined | Remitter Bank Unavailable | The transaction failed because the PSP did not receive confirmation of the debit. Ask the customer to retry. |
> | `T03` | Validation Failure | Invalid Parameter | The transaction note must be alphanumeric and 1 to 50 characters long. |
> | `U22` | Transaction Declined | Auth Declined | Issuer bank or payment service provider declined the transaction. |
> | `U26` | Transaction Declined | PSP Declined | Issuer bank or payment service provider declined the transaction. |
> | `U31` | Transaction Declined | Transaction Not Permitted | TPV payment was made using a non-registered bank account. Remitter bank declined the transaction. |
> | `U14` | Gateway Error | Encryption Error | Encryption error at NPCI. |
> | `TM` | Merchant Blocked | Merchant Blocked | The customer has blocked the merchant. |
> | `L04` | Transaction Not Initiated | Invalid Format | Transaction was not initiated with the service provider. |
> | `94` | Gateway Error | Duplicate Transaction | This is a duplicate transaction. |
> | `ZG` | Transaction Declined | VPA Resolution Failed | Issuer bank or payment service provider declined the transaction. |
> | `CF07` | Transaction Declined | Bad Request | The request the client made is incorrect or corrupt, and the server can't understand it. |
> | `XQ` | Transaction Declined | Payment Not Allowed | Payment to this beneficiary is declined. |
> | `YF` | Transaction Declined | Account Blocked Merchant | Issuer bank or payment service provider declined the transaction. |
> | `XI` | Validation Failure | Invalid Account | Customer's payment instrument was not set up properly. |
> | `91` | Network Error | Network Timeout | Transaction failed due to host timeout. |
> | `FL` | Transaction Declined | Transaction Amount Limit | Customer has exceeded the withdrawal amount limit. |
> | `HS` | Network Error | Bank Offline | The request session timed out. Retry after some time. |
> | `IR` | Network Error | Bank Offline | The request session timed out. Retry after some time. |
> | `U69` | Customer Cancelled | Request Expired | Collect request expired. |
> | `5009` | Transaction Failed | Technical Error | Transaction failed because of a technical error. Retry, or contact your bank. |
> | `1` | Transaction Declined | PSP Decline Throttle | Payment service provider declined the transaction. |
> | `U28` | Transaction Declined | Remitter Bank Unavailable | The remitter bank or TPAP is currently unavailable. Ask the customer to retry after some time. |
> | `CF29` | Technical Failure | Credentials Error | Transaction failed due to issues with bank credentials. |
> | `SA` | Transaction Declined | Payment Not Allowed | The customer's account type is not eligible to make this payment. |
> | `ZA` | Customer Auth Failure | Customer Decline | The customer declined or cancelled this transaction. |
> | `ZM` | Transaction Declined | Invalid PIN | The customer entered an invalid PIN. Ask the customer to try again with the correct PIN. |
> | `B3` | Transaction Declined | Restricted Account | TPV payment was made using a non-registered bank account. Payment was made using a restricted account as per bank policy (for example, a minor account or a proprietor account). |
> | `CF23` | Technical Failure | Remitter Bank Unavailable | Resource that you are trying to reach is currently unavailable. Retry after some time. |
> | `ZH` | Transaction Declined | Invalid VPA | The customer entered an incorrect UPI ID. |
> | `U81` | Network Error | Bank Offline | The request session timed out. Retry after some time. |
> | `FAILURE` | Transaction Declined | Unknown Error | Issuer bank or payment service provider declined the transaction. |
> | `U30` | Transaction Declined | Debit Failed | The remitter (customer's) bank declined the transaction. Ask the customer to try again or check with their bank. |
> | `U16` | Transaction Declined | Risk Threshold Exceeded | Issuer bank or payment service provider declined the transaction. |
> | `U67` | Transaction Declined | Customer's Bank Unavailable (Debit Timeout) | The remitter bank took too long to respond. |
> | `Z9` | Transaction Declined | Insufficient Funds | Insufficient funds in the customer's account. Ask the customer to retry after adding sufficient funds. |
> | `Z8` | Transaction Declined | Per Transaction Limit Exceeded | The transaction amount exceeded the limit set by the customer's bank. Ask the customer to verify this with their bank. |
> | `U90` | Transaction Declined | Customer's Bank Unavailable (Slow Response) | The remitter bank responded too slowly. Ask the customer to retry after some time. |
> | `U91` | Transaction Declined | Beneficiary Bank Unavailable (Slow Response) | The beneficiary bank responded too slowly. Ask the customer to retry after some time. |
> | `UT` | Transaction Declined | Customer's Bank Unavailable (Timeout) | Remitter bank is not available. |
> | `U19` | Transaction Declined | Authorisation Declined | Issuer bank or payment service provider declined the transaction. |
> | `HS3` | Transaction Declined | Debit Failed | Issuer bank or payment service provider declined the transaction. |
> | `CF02` | Technical Failure | API Timeout | The bank API timed out. |
> | `M16` | Transaction Declined | Risk Decline | The NPCI risk model declined the transaction. |
> | `XV` | Transaction Declined | Compliance Violation | TPV payment was made using a non-registered bank account. Remitter bank declined the transaction due to a compliance violation. |
> | `ZU` | Transaction Declined | Transaction Limit Exceeded | The transaction failed because it exceeded a limit set by the customer's bank. Ask the customer to check with their bank. |
> | `DT` | Transaction Declined | Bank Decline | The account number is invalid, or the beneficiary bank has no record of it. |
> | `ZI` | Transaction Declined | Debit Failed | The beneficiary risk score indicates suspected fraud. |
> | `U21` | Transaction Declined | Authorisation Not Found | Customer could not be authenticated for the transaction. |
> | `U23` | Transaction Declined | Auth Timeout | Issuer bank or payment service provider declined the transaction. |
> | `U25` | Transaction Declined | UPI Service Layer Error | Issuer bank or payment service provider declined the transaction. |
> | `U27` | Transaction Declined | PSP Unresponsive | Issuer bank or payment service provider declined the transaction. |
> | `U37` | Gateway Error | Response Error | Gateway infrastructure error detected. |
> | `U11` | Gateway Error | Credentials Missing | Gateway infrastructure error detected. |
> | `U13` | Network Error | External Error | A network infrastructure error occurred. |
> | `ND` | Transaction Declined | Debit Failed | Issuer bank or payment service provider declined the transaction. |
> | `OD` | Transaction Declined | Debit Failed | Issuer bank or payment service provider declined the transaction. |
> | `RM` | Transaction Declined | Invalid MPIN | Issuer bank or payment service provider declined the transaction. |
> | `RP` | Network Error | Debit Reversal Timeout | A network infrastructure error occurred. |
> | `U68` | Transaction Declined | Credit Failed | Issuer bank or payment service provider declined the transaction. |
> | `ZE` | Transaction Declined | PSP Declined | Transaction not permitted to the customer's UPI ID (VPA) by the PSP. |
> | `ZD` | Transaction Declined | Debit Failed | The remitter (customer's) bank declined the transaction. Ask the customer to check with their bank before retrying. |
> | `XU` | Transaction Declined | Cutoff Time | Issuer bank or payment service provider declined the transaction. |
> | `U89` | Transaction Declined | Bank Decline Throttle | Issuer bank or payment service provider declined the transaction. |
> | `FP` | Transaction Declined | Transaction Amount Limit | Customer has exceeded the withdrawal amount limit. |
> | `54` | Validation Failure | Card Expired | The UPI ID associated with the debit card has expired. |
> | `Z7` | Transaction Declined | Debit Limit Exceeded | The transaction exceeds the frequency limit set by the remitting bank. |
> | `UP` | Transaction Declined | PSP Timeout | Received timeout response from payment service provider. |
> | `Null Error Code` | Transaction Declined | Debit Failed | The payment failed without an error code. |
> | `U35` | Gateway Error | Response Error | Gateway infrastructure error detected. |
> | `B2` | Payment Instrument Inactive | Multiple Names Linked | Customer's payment instrument is inactive. |
> | `YC` | Transaction Declined | Debit Failed | Issuer bank or payment service provider declined the transaction. |
> | `XP` | Transaction Declined | Debit Failed | The issuer bank or payment service provider declined the transaction because it isn't permitted for the customer. |
> | `5007` | Network Error | Invalid VPA | The customer entered an incorrect VPA. |
> | `5008` | Payment Instrument Blocked | PSP Not Registered | Customer's payment instrument was blocked by the network. |
> | `5010` | Technical Failure | Technical Decline | Transaction failed because of a technical error. Retry, or contact your bank. |
> | `CF11` | Transaction Failed | Technical Error | An error occurred while decrypting the payment information. Try again. |
> | `5087` | Technical Failure | Account Number Missing | Payer account number and payer IFSC are missing. Enter these details. |
> | `CF15` | Technical Failure | Invalid Credentials | Credential error between Cashfree and the bank. |
> | `XX` | Transaction Declined | Invalid Details | The transaction failed because of invalid details in the payment. Verify the details and retry. |
> | `UM1` | Transaction Declined | Customer Decline | The customer's UPI app declined the mandate request. |
> | `UN8` | Transaction Declined | Customer Decline | The customer's UPI app is not registered for this payment. |
> | `UM9` | Transaction Declined | Debit Failed | The bank or UPI app declined the mandate setup request. Retry or use a different UPI app. |
> | `UM0` | Transaction Declined | Debit Failed | The bank or UPI app declined the mandate setup request. Retry or use a different UPI app. |
> | `NO` | Transaction Declined | Debit Failed | The remitter (customer's) bank declined the transaction. Ask the customer to check with their bank before retrying. |
> | `K1` | Transaction Declined | Suspected Fraud | The remitter bank declined the transaction because of a high risk score or suspected fraud. |
> | `U92` | Transaction Declined | Remitter Bank Unavailable | The remitter bank or TPAP is currently unavailable. Retry after some time. |
> | `UX` | Transaction Declined | Invalid VPA | The UPI virtual payment address (VPA) has expired or is no longer valid. Ask the customer to retry with a valid VPA. |
> | `V` | Transaction Declined | Transaction Details Missing | Some of the details related to the transaction are missing in the request. |
> | `409` | Validation Failure | Duplicate Transaction | Duplicate transaction ID found. |
> | `S99` | Transaction Declined | Debit Failed | The remitter (customer's) bank declined the transaction. Ask the customer to try again or check with their bank. |
> | `8010` | Network Error | Bank Offline | The request session timed out. Retry after some time. |
> | `86` | Transaction Declined | Debit Failed | The transaction failed due to an internal error at the remitter's bank or server. |
> | `V03` | Transaction Declined | Invalid Credentials | Transaction failed due to invalid or missing UPI credentials. Check the UPI credentials and try again. |
> | `92` | Customer Auth Failure | Collect Request Expired | The collect request expired. The customer did not approve or complete the payment within the permitted time frame. |
> | `503` | Network Error | Bank Offline | The request session timed out. Retry after some time. |
> | `M2` | Validation Failure | Limit Exceeded | The customer has exceeded the amount limit. |
> | `S3` | Transaction Declined | Fraud Detected | Issuer bank or payment service provider declined the transaction. |## Common failure scenariosThe following scenarios cause failures that customers often don't understand.> [accordion] A payment fails within 24 hours of a UPI account change
>
> 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](https://www.cashfree.com/docs/payments/manage/payment-methods/upi-transaction-limits.md#new-device-cap).> [accordion] A TPV payment fails
>
> 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](https://www.cashfree.com/docs/payments/features/tpv.md).> [accordion] A payment fails during a bank or app outage
>
> Check [Downtimes](https://www.cashfree.com/docs/payments/manage/downtimes.md) for current bank and UPI app health, and suggest another UPI app or payment method while the outage lasts.Related topics<ul>
  <li>[Payment Webhooks API](https://www.cashfree.com/docs/api-reference/payments/latest/payments/webhooks.md)</li>
  <li>[Get Payments for an Order API](https://www.cashfree.com/docs/api-reference/payments/latest/payments/get-payments-for-an-order.md)</li>
  <li>[Downtimes](https://www.cashfree.com/docs/payments/manage/downtimes.md)</li>
</ul>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.