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.
/payments/validate/vpa
Copycurl -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"
}'
Copy{
"vpa": "gauravkumar@exampleupi",
"success": true,
"customer_name": "Gaurav Kumar"
}
Request Parameter🔗
vpamandatorystringThe virtual payment address (VPA) you want to validate. For example,gauravkumar@exampleupi.
Response Parameters🔗
vpastringThe virtual payment address (VPA) sent as the request attribute. In this case,gauravkumar@exampleupi.successbooleanIndicates whether the VPA exists. Possible values:true- The VPA exists.false- The VPA does not exist.
customer_namestringThe name linked to the VPA. For example,Gaurav Kumar. Appears only when the value ofsuccessistrue.
×
ON THIS PAGE