How to verify Virtual Payment Address (VPA) or UPI ID?

Using Zwitch Verification APIs, you can even verify your customer’s Virtual Payment Address (VPA) handle or UPI ID. To do so, you need to pass the following parameters in the request body:

  • vpa – VPA handle of your customer,
  • merchant_reference_id – A unique identifier for each verification request, and
  • name – You can include the name of the VPA handle user (This is optional)

This is how a sample request would look like:

curl --request POST \
     --url https://api.zwitch.io/v1/verifications/vpa \
     --header 'Accept: application/json' \
     --header 'Authorization: Bearer <access_key>:<secret_key>' \
     --header 'Content-Type: application/json' \
     --data '
{
     "vpa": "9675196666@upi",
     "merchant_reference_id": "9675196666"
}
'

Once it is successfully verified, you will get a similar response body:

{
	"id": "accver_sk010221834",
	"object":"vpa_verification",
	"status" : "verified_successfully",
	"vpa":"9675196666@upi",
	"is_sandbox": false
}
Discussion
have sample to test the upi validation?

4

1