Virtual Payment Address (VPA) Validation

Learn how to validate a customer's virtual payment address used for making UPI collect payments.


In UPI collect flow, the customers enter Virtual Payment Address (VPA) to make the payment. You can confirm the validity of VPA by sending an API request to Razorpay.

POST
/payments/validate/vpa
curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \
-X POST https://api.razorpay.com/v1/payments/validate/vpa \
-H "Content-Type: application/json" \
-d '{
"vpa": "gauravkumar@exampleupi"
}'

vpa

mandatory

string The virtual payment address (VPA) you want to validate. For example, gauravkumar@exampleupi.

vpa

string The virtual payment address (VPA) sent as the request attribute. In this case, gauravkumar@exampleupi.

success

boolean Indicates whether the VPA exists. Possible values:

  • true - The VPA exists.
  • false - The VPA does not exist.

customer_name

string The name linked to the VPA. For example, Gaurav Kumar. Appears only when the value of success is true.