UPI VPA Verification API
Checks that a UPI ID exists and is active, and returns the name registered against it with a match score. It also tells you if the VPA belongs to a merchant.
- Source
- NPCI UPI network through a partner bank
- Turnaround
- Real time, usually under a few seconds
- Endpoint
- POST /v1/upi/verify
- Who can use it
- Any business with the VPA holder's consent, for payouts, refunds and onboarding.
Overview
Customers mistype UPI IDs all the time, and a payout to the wrong VPA is hard to recover. This API checks the UPI ID on the NPCI network and returns the registered name, so you can show it back to the user ('Paying RAVI KUMAR, is that you?') before any money moves.
Good to know
It confirms the VPA and its name today. It does not tell you which bank account sits behind it, and VPAs can be unlinked later.
What you get
- Name before money movesShow the registered name for the user to confirm, the same way UPI apps do.
- Merchant VPAs flaggedKnow when a VPA belongs to a merchant, which matters when you expect a personal account.
- Name match scoreCompare the UPI name with your KYC name and keep a score for your records.
- Works with any handleBank handles and app handles (okaxis, ybl, paytm and so on) are all checked the same way.
Request
POST https://api.ampletrails.com/v1/upi/verify
| Field | Type | Status | Description |
|---|---|---|---|
vpa | string | Required | UPI ID to verify |
name | string | Optional | Name to match against the UPI-registered name |
consent | string | Required | Y when the UPI ID holder has consented |
Response
Fields inside data. Every response also carries status, request_id and, on errors, message. See error codes.
| Field | Meaning | Example |
|---|---|---|
vpa_valid | Whether the UPI ID exists and is active | true |
name_at_psp | Name registered against the UPI ID | RAVI KUMAR |
name_match | Whether the supplied name matches | true |
name_match_score | Similarity score from 0 to 100 | 91 |
psp | UPI app or bank handle that issued the VPA | okbank |
is_merchant | Whether the VPA belongs to a merchant | false |
Example
curl -X POST https://api.ampletrails.com/v1/upi/verify \
-H "Authorization: Bearer $AMPLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"vpa": "ravi@okbank", "name": "Ravi Kumar", "consent": "Y"}'import os, requests
resp = requests.post(
"https://api.ampletrails.com/v1/upi/verify",
headers={"Authorization": f"Bearer {os.environ['AMPLE_API_KEY']}"},
json={
"vpa": "ravi@okbank",
"name": "Ravi Kumar",
"consent": "Y"
},
timeout=30,
)
resp.raise_for_status()
print(resp.json()["data"])const resp = await fetch("https://api.ampletrails.com/v1/upi/verify", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AMPLE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"vpa": "ravi@okbank",
"name": "Ravi Kumar",
"consent": "Y"
}),
});
const { data } = await resp.json();$ch = curl_init("https://api.ampletrails.com/v1/upi/verify");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("AMPLE_API_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode(["vpa" => "ravi@okbank", "name" => "Ravi Kumar", "consent" => "Y"]),
]);
$data = json_decode(curl_exec($ch), true)["data"];{
"status": "success",
"request_id": "req_7f3a9c21e4",
"data": {
"vpa_valid": true,
"name_at_psp": "RAVI KUMAR",
"name_match": true,
"name_match_score": 91,
"psp": "okbank",
"is_merchant": false
}
}Example data. The exact field list for your account comes with your sandbox documentation.
Use cases
Refunds
Confirm the refund VPA belongs to the customer before you send money back.
Gig and creator payouts
Verify the UPI ID a delivery partner or creator gives you before their first weekly payout.
Cash-back and rewards
Stop reward payouts going to a handful of VPAs shared across many accounts.
Questions about this API
Does this send any money?
No. It is a lookup on the NPCI network. Nothing is debited or credited.
Why is the name sometimes shorter than the KYC name?
UPI shows the name from the linked bank account, which may use initials. Use the match score, not an exact match.
Can a VPA be valid today and fail tomorrow?
Yes. People delete UPI IDs, change apps and unlink accounts. Check again before large or infrequent payouts.
Do you need the customer's consent?
Yes. Collect it as part of your payout or refund flow and send consent: Y with the request.
Try the UPI VPA Verification API
Sandbox keys, the full field reference and a Postman collection, usually within a working day.