UPI Address Validate API


This api is used to validate UPI VPA address.

EnvironmentHttp MethodAPI
SandboxPOSThttps://api-preprod.phonepe.com/apis/pg-sandbox/v2/validate/upi
ProductionPOSThttps://api.phonepe.com/apis/pg/v2/validate/upi
Request Headers
Header NameHeader Value
Content-Typeapplication/json
AuthorizationO-Bearer <merchant-auth-token>
Request Parameters
Parameter NameData TypeDescriptionMandatory (Yes/No)Constraints
typeStringType of UPI Payment AddressYesValues allowed = [VPA]
vpaStringVPA of user to validateYesMax Length = 255
Request Payload
{
    "type": "VPA",
    "vpa": "abc@ybl"
}
Response Headers
Header Name
Header Value
Content-Type
application/json
Sample Response for Case 1: VPA is Valid
{
    "valid": true,
    "name": "<Name of User>"
}
Sample Response for Case 2: Invalid VPA
{    
    "valid": false
}
Response Field
Field NameData TypeDescription
validBooleantrue → UPI address is valid.
false → UPI address is not valid.
nameStringName of the user.
Is this article helpful?