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.

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

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

Request Header
Header NameHeader Value
Content-Typeapplication/json
AuthorizationO-Bearer <access_token>
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”

Request Payload with VPA

headers
body params

Request Payload with UPI Number

headers
body params
Sample Response for Case 1: VPA is Valid
{
    "valid": true
}
Sample Response for Case 2: Invalid VPA
{
    "valid": false
}
Is this article helpful?