Skip to main content
Phone Pe Business Logo

UPI Address Validate API

Use this API to validate whether the UPI address (VPA) or UPI number provided by the customer is valid and ready to accept payments.

⚠️ Required Headers for Payment Initiation!

You must include all required HTTP headers in your payment initiation request. Omitting these headers will result in payment errors. For a complete list of mandatory headers, please refer to: HTTP HEADERS

EnvironmentHTTP MethodAPI
SandboxPOSThttps://api-preprod.phonepe.com/apis/pg-sandbox/v2/validate/upi
ProductionPOSThttps://api.phonepe.com/apis/pg/v2/validate/upi

⚠️ Setup Required to Avoid Errors!

Before initiating a payment, install the PhonePe Test App and configure the payment template. Skipping this step may result in HTTP 500 errors.

Request Headers
Header NameHeader Value
Content-Typeapplication/json
AuthorizationO-Bearer <partner-auth-token>
X-MERCHANT-IDMID
Request Parameters
Parameter NameData TypeMandatoryDescriptionConstraints
typeStringYesType of UPI Payment Address.Values allowed:
• VPA
• UPI_NUMBER
vpaStringConditionalVPA of user to validate.Max Length = 255
Pass only if “type” = “VPA”
upiNumberStringConditionalUPI Number of user to validate.Pass only if “type” = “UPI_NUMBER”
Sample Request with VPA
{
    "type": "VPA",
    "vpa": "success@ybl"
}
Sample Request with UPI Number
{
    "type": "UPI_NUMBER",
    "upiNumber": "XXXXXXXXXX"
}
Sample Response for Case 1: VPA is Valid
{
    "valid": true,
    "name": "<Name of User>"
}
Sample Response for Case 2: Invalid VPA
{
    "valid": false
}
Field NameData TypeDescription
validBoolean• true → UPI address is valid.
• false → UPI address is not valid.
nameStringName of the user.
Is this article helpful?