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

# Validate UPI VPA

This API allows merchants to validate Individual as well as merchant VPAs and fetch their details.

> 🙌 Important Note
>
> Please use only Staging Credentials on each API Reference page to test the APIs directly from our Documentation.
>
> This service is not available as as stand alone service. This service is only available to clients initiating collect requests via our payment aggregation stack.

## API Endpoints

| Environment | Endpoint                                                     |
| :---------- | :----------------------------------------------------------- |
| Staging     | <https://staging.api.decentro.tech/v3/payments/vpa/validate> |
| Production  | <https://api.decentro.tech/v3/payments/vpa/validate>         |

> 📘 Simulation Data
>
> Decentro provides the test data which will simulate various scenarios of the API when a transaction takes place.
>
> Note: This test data is only valid in the Staging environment. Please use a valid client id and client secret. Kindly pass the UPI\_ID value, listed in the simulation data section, in the request payload to check the various response payloads for this API.

## Simulation Data

Steps to use this data:

1. Take the UPI ID from values shared below depending on the scenario to be tested.
2. Trigger the validate VPA API with that UPI ID with the required type.
3. API response will state the validation of the VPA (valid or invalid)
4. The information about the UPI ID depends on the the type param passed in the request payload.

| UPI\_ID                 | Status  | Test case           |
| ----------------------- | ------- | ------------------- |
| charles.babbage\@okhdfc | VALID   | When VPA is valid   |
| alan.turing\@oksbi      | INVALID | When VPA is invalid |

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "decfin-staging",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://staging.api.decentro.tech"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/v3/payments/vpa/validate": {
      "post": {
        "summary": "Validate UPI VPA",
        "description": "This API allows merchants to validate Individual as well as merchant VPAs and fetch their details.",
        "operationId": "validate-vpa-1",
        "parameters": [
          {
            "name": "client_id",
            "in": "header",
            "description": "Decentro assigned client_id during on boarding.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "client_secret",
            "in": "header",
            "description": "Decentro assigned client_secret during on boarding.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "reference_id",
                  "consumer_urn",
                  "upi_id"
                ],
                "properties": {
                  "reference_id": {
                    "type": "string",
                    "description": "A unique ID assigned by clients for every API request."
                  },
                  "consumer_urn": {
                    "type": "string",
                    "description": "A unique identifier assigned to client's by Decentro during On boarding."
                  },
                  "upi_id": {
                    "type": "string",
                    "description": "The VPA of the entity which needs to be validated."
                  },
                  "type": {
                    "type": "string",
                    "description": "Possible values: BASIC, ADVANCE"
                  }
                }
              },
              "examples": {
                "Success: Basic validate (Individual handle)": {
                  "value": {
                    "reference_id": "0000-0000-0001",
                    "consumer_urn": "B15CDC6B4xxxxxxxxx5A74F1E96A239",
                    "upi_id": "valid@upi",
                    "type": "BASIC"
                  }
                },
                "Success: Invalid upi id": {
                  "value": {
                    "reference_id": "0000-0000-0002",
                    "consumer_urn": "B15CDC6B4xxxxxxxxx5A74F1E96A239",
                    "upi_id": "invalid@upi",
                    "type": "BASIC"
                  }
                },
                "Failed: Bad/missing/invalid input": {
                  "value": {
                    "reference_id": "0000-0000-0002",
                    "consumer_urn": "B15CDC6B4xxxxxxxxx5A74F1E96A239",
                    "upi_id": "invalid_upi_format",
                    "type": "BASIC"
                  }
                },
                "Success: Basic validate (Merchant handle)": {
                  "value": {
                    "reference_id": "0000-0000-0002",
                    "consumer_urn": "B15CDC6B4xxxxxxxxx5A74F1E96A239",
                    "upi_id": "merchant@upi",
                    "type": "BASIC"
                  }
                },
                "Success: Advance validate (Individual handle)": {
                  "value": {
                    "reference_id": "0000-0000-0001",
                    "consumer_urn": "B15CDC6B4xxxxxxxxx5A74F1E96A239",
                    "upi_id": "valid@upi",
                    "type": "BASIC"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Success: Basic validate (Individual handle)": {
                    "value": "{\n    \"decentro_txn_id\": \"5F7D63DEBE5F43AF88A3657E89F303E8\",\n    \"api_status\": \"SUCCESS\",\n    \"message\": \"UPI-ID (Virtual Payment Address) validation processed successfully\",\n    \"data\": {\n        \"upi_id\": \"abc@ybl\",\n        \"vpa_status\": \"VALID\",\n        \"vpa_status_description\": \"UPI ID is valid\",\n        \"name\": \"sample name\"\n    },\n    \"response_key\": \"success_UPI_id_valid\"\n}"
                  },
                  "Success: Invalid upi id": {
                    "value": "{\n    \"decentro_txn_id\": \"593414A460014C18A4B42132FB210A6C\",\n    \"api_status\": \"SUCCESS\",\n    \"message\": \"UPI-ID (Virtual Payment Address) validation processed successfully\",\n    \"data\": {\n        \"vpa_status\": \"INVALID\",\n        \"vpa_status_description\": \"The PSP is not registered for the given VPA.\"\n    },\n    \"response_key\": \"success_UPI_id_invalid\"\n}"
                  },
                  "Success: Basic validate (Merchant handle)": {
                    "value": "{\n    \"decentro_txn_id\": \"ED2DA15E4A264F7598587375DD01CCD3\",\n    \"api_status\": \"SUCCESS\",\n    \"message\": \"UPI-ID (Virtual Payment Address) validation processed successfully\",\n    \"data\": {\n        \"upi_id\": \"merchant@upi\n        \"vpa_status\": \"VALID\",\n        \"vpa_status_description\": \"UPI ID is valid\",\n        \"name\": \"merchant name Limited\"\n    },\n    \"response_key\": \"success_UPI_id_valid\"\n}"
                  },
                  "Success: Advance validate (Individual handle)": {
                    "value": "{\n    \"decentro_txn_id\": \"BE949EEF565348BCAF49406E1A85DBAE\",\n    \"api_status\": \"SUCCESS\",\n    \"message\": \"UPI-ID (Virtual Payment Address) validation processed successfully\",\n    \"data\": {\n        \"upi_id\": \"valid@ybl\",\n        \"vpa_status\": \"VALID\",\n        \"vpa_status_description\": \"UPI ID is valid\",\n        \"name\": \"sample name\",\n        \"account_ifsc\": \"ICIC0000036\",\n        \"account_type\": \"SAVINGS\",\n        \"merchant_code\": \"0000\"\n    },\n    \"response_key\": \"success_UPI_id_valid\"\n}"
                  },
                  "Success: Advance validate (Merchant handle)": {
                    "value": "{\n    \"decentro_txn_id\": \"46F310E8D932401C825982E06D68D56A\",\n    \"api_status\": \"SUCCESS\",\n    \"message\": \"UPI-ID (Virtual Payment Address) validation processed successfully\",\n    \"data\": {\n        \"upi_id\": \"merchant@upi\",\n        \"vpa_status\": \"VALID\",\n        \"vpa_status_description\": \"UPI ID is valid\",\n        \"name\": \"merchant name Tech Private Limited\",\n        \"account_ifsc\": \"YESB0000045\",\n        \"account_type\": \"CURRENT\"\n    },\n    \"response_key\": \"success_UPI_id_valid\"\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "title": "Success: Basic validate (Individual handle)",
                      "type": "object",
                      "properties": {
                        "decentro_txn_id": {
                          "type": "string",
                          "example": "5F7D63DEBE5F43AF88A3657E89F303E8"
                        },
                        "api_status": {
                          "type": "string",
                          "example": "SUCCESS"
                        },
                        "message": {
                          "type": "string",
                          "example": "UPI-ID (Virtual Payment Address) validation processed successfully"
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "upi_id": {
                              "type": "string",
                              "example": "abc@ybl"
                            },
                            "vpa_status": {
                              "type": "string",
                              "example": "VALID"
                            },
                            "vpa_status_description": {
                              "type": "string",
                              "example": "UPI ID is valid"
                            },
                            "name": {
                              "type": "string",
                              "example": "sample name"
                            }
                          }
                        },
                        "response_key": {
                          "type": "string",
                          "example": "success_UPI_id_valid"
                        }
                      }
                    },
                    {
                      "title": "Success: Invalid upi id",
                      "type": "object",
                      "properties": {
                        "decentro_txn_id": {
                          "type": "string",
                          "example": "593414A460014C18A4B42132FB210A6C"
                        },
                        "api_status": {
                          "type": "string",
                          "example": "SUCCESS"
                        },
                        "message": {
                          "type": "string",
                          "example": "UPI-ID (Virtual Payment Address) validation processed successfully"
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "vpa_status": {
                              "type": "string",
                              "example": "INVALID"
                            },
                            "vpa_status_description": {
                              "type": "string",
                              "example": "The PSP is not registered for the given VPA."
                            }
                          }
                        },
                        "response_key": {
                          "type": "string",
                          "example": "success_UPI_id_invalid"
                        }
                      }
                    },
                    {
                      "title": "Success: Advance validate (Individual handle)",
                      "type": "object",
                      "properties": {
                        "decentro_txn_id": {
                          "type": "string",
                          "example": "BE949EEF565348BCAF49406E1A85DBAE"
                        },
                        "api_status": {
                          "type": "string",
                          "example": "SUCCESS"
                        },
                        "message": {
                          "type": "string",
                          "example": "UPI-ID (Virtual Payment Address) validation processed successfully"
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "upi_id": {
                              "type": "string",
                              "example": "valid@ybl"
                            },
                            "vpa_status": {
                              "type": "string",
                              "example": "VALID"
                            },
                            "vpa_status_description": {
                              "type": "string",
                              "example": "UPI ID is valid"
                            },
                            "name": {
                              "type": "string",
                              "example": "sample name"
                            },
                            "account_ifsc": {
                              "type": "string",
                              "example": "ICIC0000036"
                            },
                            "account_type": {
                              "type": "string",
                              "example": "SAVINGS"
                            },
                            "merchant_code": {
                              "type": "string",
                              "example": "0000"
                            }
                          }
                        },
                        "response_key": {
                          "type": "string",
                          "example": "success_UPI_id_valid"
                        }
                      }
                    },
                    {
                      "title": "Success: Advance validate (Merchant handle)",
                      "type": "object",
                      "properties": {
                        "decentro_txn_id": {
                          "type": "string",
                          "example": "46F310E8D932401C825982E06D68D56A"
                        },
                        "api_status": {
                          "type": "string",
                          "example": "SUCCESS"
                        },
                        "message": {
                          "type": "string",
                          "example": "UPI-ID (Virtual Payment Address) validation processed successfully"
                        },
                        "data": {
                          "type": "object",
                          "properties": {
                            "upi_id": {
                              "type": "string",
                              "example": "merchant@upi"
                            },
                            "vpa_status": {
                              "type": "string",
                              "example": "VALID"
                            },
                            "vpa_status_description": {
                              "type": "string",
                              "example": "UPI ID is valid"
                            },
                            "name": {
                              "type": "string",
                              "example": "merchant name Tech Private Limited"
                            },
                            "account_ifsc": {
                              "type": "string",
                              "example": "YESB0000045"
                            },
                            "account_type": {
                              "type": "string",
                              "example": "CURRENT"
                            }
                          }
                        },
                        "response_key": {
                          "type": "string",
                          "example": "success_UPI_id_valid"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Failed: Bad/missing/invalid input": {
                    "value": "{\n    \"decentro_txn_id\": \"84FB80F16BC04A938BDF06EF1AB7AA66\",\n    \"api_status\": \"FAILURE\",\n    \"message\": \"UPI-ID (Virtual Payment Address) is not in valid format. Please try again with valid UPI-ID\",\n    \"response_key\": \"error_invalid_UPI_id_format\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "decentro_txn_id": {
                      "type": "string",
                      "example": "84FB80F16BC04A938BDF06EF1AB7AA66"
                    },
                    "api_status": {
                      "type": "string",
                      "example": "FAILURE"
                    },
                    "message": {
                      "type": "string",
                      "example": "UPI-ID (Virtual Payment Address) is not in valid format. Please try again with valid UPI-ID"
                    },
                    "response_key": {
                      "type": "string",
                      "example": "error_invalid_UPI_id_format"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```