Validate VPA
UPI - Validate VPA
Section titled “UPI - Validate VPA”This API is for validating VPA – Virtual Private Address i.e UPI id of a customer for UPI payments online. If UPI id is not valid, then no payment can be done.
https://kraken.airpay.co.in/airpay/api/vpa_validate.phpHeader
Section titled “Header”| Field | Type | Description |
|---|---|---|
| Content-Type | String | application/json |
Parameter
Section titled “Parameter”| Field | Type | Description |
|---|---|---|
| private_key | Alphanumeric | Private Key (length 10-200) (required) private_key = hash(‘sha256’, secret.’@’.username.’: |
| merchant_id | Number | Merchant Id (length 1-20) (required) |
| checksum | String | Checksum (length 10-200) (required) date = YYYY-MM-DD alldata = merchant_id.private_key.vpa Key generated by : key = hash(‘SHA256’,username.” checksum generated by : checksum = hash(‘SHA256’, key.’@’.alldata.date(‘Y-m-d’)) |
| vpa | String | Virtual Payment Address (required) |
Request-Example
Section titled “Request-Example”{ "merchant_id": "11111", "private_key": "71a4efaf21c79864ec154babfc494f45fd1f65a570805084965d5b29486f1dfe", "checksum": "92c617a556982a8d124ff2b7ce9eae3e", "vpa": "test@oksbi"}Success 200
Section titled “Success 200”| Field | Type | Description |
|---|---|---|
| status | Number | Status Code |
| vpaName | String | VPA Name |
| message | String | Status Message |
For Success:
Section titled “For Success:” HTTP/1.1 200 OK { "status" : "200", "vpaName" : "JACOB TARUN KOSHY", "message" : "Success", }For Failure
Section titled “For Failure” HTTP/1.1 200 OK { "status" : "400", "message" : "failure message", }