---
title: Validate VPA
description: This API is for validating VPA – Virtual Private Address i.e UPI id of a customer for UPI payments online.
---

# 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.

## post

```
https://kraken.airpay.co.in/airpay/api/vpa_validate.php
```

## Header

| Field | Type | Description |
| --- | --- | --- |
| Content-Type | String | application/json |

## Parameter

| Field | Type | Description |
| --- | --- | --- |
| private_key | Alphanumeric | Private Key (length 10-200) (required)<br>private_key = hash('sha256', secret.'@'.username.':|:'.password) |
| merchant_id | Number | Merchant Id (length 1-20) (required) |
| checksum | String | Checksum (length 10-200) (required)<br>date = YYYY-MM-DD<br>alldata = merchant_id.private_key.vpa<br>Key generated by : key = hash('SHA256',username."~:~".password)<br>checksum generated by : checksum = hash('SHA256', key.'@'.alldata.date('Y-m-d')) |
| vpa | String | Virtual Payment Address (required) |
## Request-Example

```
{
    "merchant_id": "11111",
    "private_key": "71a4efaf21c79864ec154babfc494f45fd1f65a570805084965d5b29486f1dfe",
    "checksum": "92c617a556982a8d124ff2b7ce9eae3e",
    "vpa": "test@oksbi"
}
```

## Success 200

| Field | Type | Description |
| --- | --- | --- |
| status | Number | Status Code |
| vpaName | String | VPA Name |
| message | String | Status Message |
## For Success:

```
    HTTP/1.1 200 OK
     {
	        "status" : "200",
	        "vpaName" : "JACOB TARUN KOSHY",
	        "message" : "Success",
     }
```
## For Failure
```
    HTTP/1.1 200 OK
     {
	        "status" : "400",
	        "message" : "failure message",
     }
```