---
updatedAt: 2026-11-12T11:25:25.000Z
agentTools:
  projectIndex: https://docs.decentro.tech/llms.txt
---

# VerifyPay

Validate a UPI VPA via a penny drop

> 🙌 Important Note
>
> Please use only **Staging Credentials** on each API Reference page to test the APIs directly from our Documentation.

## API Endpoints

| Environment       | Endpoint                                                 |
| :---------------- | :------------------------------------------------------- |
| Staging / Sandbox | <https://in.staging.decentro.tech/v2/banking/verify_pay> |
| Production        | <https://in.decentro.tech/v2/banking/verify_pay>         |

This API enabled you to check if a particular UPI-ID (Virtual Payment Address) is [valid](https://docs.decentro.tech/docs/verifypay).

> 📘 Simulation Data
>
> Decentro provides the test data which will simulate various scenarios of the API when a transaction takes place.
>
> **Important:** Please refer to the Simulation Data guide [Click here](https://docs.decentro.tech/docs/simulation-data-payments#verifypay-v2---simulation-data)

## Response Keys

Below are the response keys propagated by Decentro in the response\_key parameter, which cover all the scenarios a platform can encounter.

| Error Code | Response Key                                  | Message                                                                                                                                                                                      |
| :--------- | :-------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| S00000     | success\_account\_details\_retrieved          | Account details retrieved successfully                                                                                                                                                       |
| S00000     | failure\_expired\_upi\_vpa                    | The UPI VPA has expired.                                                                                                                                                                     |
| S00000     | failure\_vpa\_restrictred                     | The customer has blocked trannsactions for this UPI ID.                                                                                                                                      |
| S00000     | failure\_account\_frozen                      | The account associated with this mobile number is blocked or frozen.                                                                                                                         |
| S00000     | failure\_dormant\_account                     | The account associated with this mobile number is Inactive or Dormant.                                                                                                                       |
| S00000     | failure\_account\_closed                      | The bank account mapped to the UPI VPA is closed.                                                                                                                                            |
| S00000     | failure\_no\_account\_mapped                  | There is no bank account  mapped with this UPI ID.                                                                                                                                           |
| S00000     | faiure\_invalid\_upi\_vpa                     | The beneficiary UPI VPA is invalid.                                                                                                                                                          |
| S00000     | failure\_invalid\_vpa                         | The beneficiary UPI VPA is invalid.                                                                                                                                                          |
| S00000     | failure\_invalid\_psp                         | The PSP powering the upi VPA is not active.                                                                                                                                                  |
| `  -`      | error\_invalid\_method                        | The method is not allowed for the requested URL.                                                                                                                                             |
| E00008     | (Not Applicable)                              | Authentication failed. Please use valid Client ID and Client Secret.                                                                                                                         |
| E00009     | error\_malformed\_request                     | Malformed request detected.                                                                                                                                                                  |
| E00030     | error\_unauthorized\_module                   | Authentication failed for accessing the module                                                                                                                                               |
| E00009     | error\_unsanitized\_values                    | Unsanitized values detected for key(s): reference\_id. Kindly sanitize the corresponding values by removing special characters such as . @ # $ % ^ & \* ! ; : ' " \~ \` ? = + ) ( and retry. |
| E00009     | error\_empty\_reference\_id                   | Request reference ID cannot be null or empty. Hint: reference\_id (string)                                                                                                                   |
| E00019     | error\_duplicate\_reference\_id               | Duplicate Request Reference ID                                                                                                                                                               |
| E00009     | error\_invalid\_reference\_id\_length         | Request reference ID is not valid. Hint: reference\_id should be restricted to 2 to 100 chars                                                                                                |
| E00009     | error\_upi\_vpa\_insufficient\_string\_length | Parameter upi\_vpa should be at least 4 characters long after trimming whitespace. Hint: upi\_vpa (string)                                                                                   |
| E00009     | error\_upi\_vpa\_missing\_or\_null            | Parameter upi\_vpa cannot be missing/null. Hint: upi\_vpa (string)                                                                                                                           |
| E00000     | error\_decentro\_error                        | Internal Server Error. Kindly retry the transaction after sometime.                                                                                                                          |
| E00002     | error\_validation\_blocked                    | Transaction not permitted by the beneficiary bank.                                                                                                                                           |
| E00002     | error\_validation\_blocked                    | The request could not be completed due to a risk exception by the remitter bank. Kindly retry the transaction after sometime.                                                                |
| E00002     | error\_validation\_blocked                    | Transaction not permitted for this account type (OD/CC/PPI)                                                                                                                                  |
| E00002     | error\_validation\_blocked                    | The customer has not set the MPIN, configured it incorrectly, or has a temporary block as they have exceeded the number of retries. Kindly retry the transaction after sometime.             |
| E00003     | error\_beneficiary\_bank\_offline             | The request could not be completed due to a error with the beneficiary bank. Kindly retry the transaction after sometime.                                                                    |
| E00004     | error\_validation\_blocked                    | The request could not be completed as it was rejected by the remitting bank.                                                                                                                 |
| E00004     | error\_validation\_blocked                    | The request could not be completed as it was rejected by the beneficiary bank.                                                                                                               |
| E00005     | error\_frequency\_limit\_breached             | The tranasction could not be completed due to a breach of transaction frequency limits set by the custoemr or their bank. Kindly retry the transaction after sometime.                       |
| E00006     | error\_network\_timeout\_rejection            | The transaction request could not be completed due to high response time from NPCI. Kindly retry the transaction after sometime.                                                             |
| E00007     | error\_techinical\_failure                    | The transaction failed due to a technical failure at NPCI. Kindly retry the transaction after sometime.                                                                                      |
| E00008     | error\_beneficiary\_bank\_not\_supported      | The request could not be completed due to the beneficiary bank has not enabled this transaction type                                                                                         |
| E00012     | error\_provider\_error                        | Unexpected response received from provider. Kindly retry the transaction after sometime.                                                                                                     |

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "decentro-staging",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://in.staging.decentro.tech"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/v2/banking/verify_pay": {
      "post": {
        "summary": "VerifyPay",
        "description": "Validate a UPI VPA via a penny drop",
        "operationId": "verify_pay",
        "parameters": [
          {
            "name": "client_id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "client_secret",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "module_secret",
            "in": "header",
            "description": "Use the accounts module secret",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "reference_id",
                  "upi_vpa"
                ],
                "properties": {
                  "reference_id": {
                    "type": "string",
                    "description": "A unique ID assigned by you for this transaction"
                  },
                  "upi_vpa": {
                    "type": "string",
                    "description": "UPI-ID (Virtual Payment Address) to be validated",
                    "default": "test@upi"
                  }
                }
              },
              "examples": {
                "Success: Valid UPI VPA": {
                  "value": {
                    "reference_id": "6dbc569f-5b4d-4b40-b148-07fc57b14c41",
                    "upi_vpa": "test1@upi"
                  }
                },
                "Success: Invalid UPI VPA": {
                  "value": {
                    "reference_id": "6dbc569f-5b4d-4b40-b148-07fc57b14c41",
                    "upi_vpa": "vpa_invalid@upi"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Success - Unmasked Account Number": {
                    "value": "{\n    \"decentroTxnId\": \"AD65CDAEA492468CB146CB299E5B13B8\",\n    \"status\": \"SUCCESS\",\n    \"responseCode\": \"S00000\",\n    \"message\": \"Account details retrieved successfully\",\n    \"data\": {\n        \"upiVpa\": \"test2@ybl\",\n        \"nameAsPerBank\": \"test\",\n        \"accountNumber\": \"613000350102\",\n        \"ifsc\": \"ALB12D\",\n        \"bankReferenceNumber\": \"435100089698\",\n        \"npciTransactionId\": \"SUR19C944F467E440BA882910DFB760022F\"\n    },\n    \"responseKey\": \"success_account_details_retrieved\"\n}"
                  },
                  "Success: Invalid UPI handle": {
                    "value": "{\n    \"decentroTxnId\": \"84ABE8F21F8F4F1E8E62F403A261BC52\",\n    \"status\": \"SUCCESS\",\n    \"responseCode\": \"S00000\",\n    \"message\": \"The beneficiary UPI VPA is invalid.\",\n    \"responseKey\": \"failure_invalid_vpa\"\n}"
                  },
                  "Success - Masked Account Number": {
                    "value": "{\n    \"decentroTxnId\": \"AD65CDAEA492468CB146CB299E5B13B8\",\n    \"status\": \"SUCCESS\",\n    \"responseCode\": \"S00000\",\n    \"message\": \"Account details retrieved successfully\",\n    \"data\": {\n        \"upiVpa\": \"test2@ybl\",\n        \"nameAsPerBank\": \"test\",\n        \"accountNumber\": \"XXXXXXXXXXXX\",\n        \"ifsc\": \"ALB12D\",\n        \"bankReferenceNumber\": \"435100089698\",\n        \"npciTransactionId\": \"SUR19C944F467E440BA882910DFB760022F\"\n    },\n    \"responseKey\": \"success_account_details_retrieved\"\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "title": "Success - Unmasked Account Number",
                      "type": "object",
                      "properties": {
                        "decentroTxnId": {
                          "type": "string",
                          "example": "AD65CDAEA492468CB146CB299E5B13B8"
                        },
                        "status": {
                          "type": "string",
                          "example": "SUCCESS"
                        },
                        "responseCode": {
                          "type": "string",
                          "example": "S00000"
                        },
                        "message": {
                          "type": "string",
                          "example": "Account details retrieved successfully"
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "upiVpa": {
                              "type": "string",
                              "example": "test2@ybl"
                            },
                            "nameAsPerBank": {
                              "type": "string",
                              "example": "test"
                            },
                            "accountNumber": {
                              "type": "string",
                              "example": "613000350102"
                            },
                            "ifsc": {
                              "type": "string",
                              "example": "ALB12D"
                            },
                            "bankReferenceNumber": {
                              "type": "string",
                              "example": "435100089698"
                            },
                            "npciTransactionId": {
                              "type": "string",
                              "example": "SUR19C944F467E440BA882910DFB760022F"
                            }
                          }
                        },
                        "responseKey": {
                          "type": "string",
                          "example": "success_account_details_retrieved"
                        }
                      }
                    },
                    {
                      "title": "Success: Invalid UPI handle",
                      "type": "object",
                      "properties": {
                        "decentroTxnId": {
                          "type": "string",
                          "example": "84ABE8F21F8F4F1E8E62F403A261BC52"
                        },
                        "status": {
                          "type": "string",
                          "example": "SUCCESS"
                        },
                        "responseCode": {
                          "type": "string",
                          "example": "S00000"
                        },
                        "message": {
                          "type": "string",
                          "example": "The beneficiary UPI VPA is invalid."
                        },
                        "responseKey": {
                          "type": "string",
                          "example": "failure_invalid_vpa"
                        }
                      }
                    },
                    {
                      "title": "Success - Masked Account Number",
                      "type": "object",
                      "properties": {
                        "decentroTxnId": {
                          "type": "string",
                          "example": "AD65CDAEA492468CB146CB299E5B13B8"
                        },
                        "status": {
                          "type": "string",
                          "example": "SUCCESS"
                        },
                        "responseCode": {
                          "type": "string",
                          "example": "S00000"
                        },
                        "message": {
                          "type": "string",
                          "example": "Account details retrieved successfully"
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "upiVpa": {
                              "type": "string",
                              "example": "test2@ybl"
                            },
                            "nameAsPerBank": {
                              "type": "string",
                              "example": "test"
                            },
                            "accountNumber": {
                              "type": "string",
                              "example": "XXXXXXXXXXXX"
                            },
                            "ifsc": {
                              "type": "string",
                              "example": "ALB12D"
                            },
                            "bankReferenceNumber": {
                              "type": "string",
                              "example": "435100089698"
                            },
                            "npciTransactionId": {
                              "type": "string",
                              "example": "SUR19C944F467E440BA882910DFB760022F"
                            }
                          }
                        },
                        "responseKey": {
                          "type": "string",
                          "example": "success_account_details_retrieved"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Failure: Bad/Missing/Invalid Inputs": {
                    "value": "{\n    \"decentroTxnId\": \"2FEED7D9ACC84F03990E2F6536B0A7DD\",\n    \"status\": \"FAILURE\",\n    \"responseCode\": \"E00009\",\n    \"message\": \"Malformed request detected.\",\n    \"responseKey\": \"error_malformed_request\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "decentroTxnId": {
                      "type": "string",
                      "example": "2FEED7D9ACC84F03990E2F6536B0A7DD"
                    },
                    "status": {
                      "type": "string",
                      "example": "FAILURE"
                    },
                    "responseCode": {
                      "type": "string",
                      "example": "E00009"
                    },
                    "message": {
                      "type": "string",
                      "example": "Malformed request detected."
                    },
                    "responseKey": {
                      "type": "string",
                      "example": "error_malformed_request"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "422",
            "content": {
              "application/json": {
                "examples": {
                  "Failure: Provider Downtime": {
                    "value": "{\n    \"decentroTxnId\": \"F631EC900A3F4C88BA4C4383F0FB35BA\",\n    \"status\": \"FAILURE\",\n    \"responseCode\": \"E00012\",\n    \"message\": \"Provider is going through a downtime. Please try again after sometime\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "decentroTxnId": {
                      "type": "string",
                      "example": "F631EC900A3F4C88BA4C4383F0FB35BA"
                    },
                    "status": {
                      "type": "string",
                      "example": "FAILURE"
                    },
                    "responseCode": {
                      "type": "string",
                      "example": "E00012"
                    },
                    "message": {
                      "type": "string",
                      "example": "Provider is going through a downtime. Please try again after sometime"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```