Verify UPI ID
POSThttps://api.trential.dev/verification/api/1.0/verifications/upi
Verify UPI ID
Request
- application/json
Body
upi string
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Valid UPI
- Invalid UPI
Schema
code integer
message string
data object
{
"code": 0,
"message": "string",
"data": {}
}
{
"code": 0,
"message": "Success",
"data": {
"accountExists": true,
"nameAtBank": "KXXXJ MXXXXA"
}
}
{
"code": 0,
"message": "Invalid VPA",
"data": {
"accountExists": false,
"status": "INVALID",
"reason": "Account does not exists"
}
}
Authorization: x-api-key
name: x-api-keytype: apiKeyin: header
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST 'https://api.trential.dev/verification/api/1.0/verifications/upi' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-api-key: <API_KEY_VALUE>' \
--data-raw '{
"upi": "someuser@okhdfc"
}'
ResponseClear