---
title: UPI VPA fetch
slug: api-marketplace/upi-vpa-fetch
createdAt: 2024-01-12T16:28:16.397Z
---

## Introduction

The "UPI VPA Fetch" API provides a secure and efficient method for verifying the existence and authenticity of UPI (Unified Payments Interface) handles. By integrating this API, users can quickly confirm whether a specified UPI handle is valid and obtain the corresponding customer name as registered with the bank. This is particularly useful for businesses and financial institutions requiring accurate and real-time verification of UPI handles for transactions. The API ensures privacy and accuracy, utilizing a straightforward request format and returning concise, clear responses. Its reliable verification process is a key tool for enhancing trust and efficiency in digital transactions.

***

## API details

### Endpoint

:::CodeblockTabs
Production environment

```jsx
POST https://api.signzy.app/api/v3/bankAccountVerification/upiVerifications
```
:::

:::CodeblockTabs
UAT/Testing environment

```jsx
POST https://api-preproduction.signzy.app/api/v3/bankAccountVerification/upiVerifications
```
:::

***

### Request headers&#x20;

| Name          | Value            | Required  | Description                                                                                                |
| ------------- | ---------------- | --------- | ---------------------------------------------------------------------------------------------------------- |
| Content-Type  | application/json | Mandatory | The type of content that the request body contains.                                                        |
| Authorization | XXXXXXXXXXXXXXX  | Mandatory | An authentication token to authorize the request. Reach out to the Signzy support team to get one created. |

***

### Request body parameters

| Parameter | Data Type | Description                        |
| --------- | --------- | ---------------------------------- |
| vpa       | String    | VPA Id of consumer to be validated |
| name      | String    | Name of the consumer               |
| fuzzy     | Boolean   | Fuzzy matching indicator           |

```json
{
    "vpa": "divyanshsharma8974@okaxis",
    "name": "Divyansh Sharma",
    "fuzzy":  true
}
```

***

### Code samples

:::CodeblockTabs
```curl
curl --location 'https://api.signzy.app/api/v3/bankAccountVerification/upiVerifications' \
--header 'Content-Type: application/json' \
--header 'Authorization: <Token>' \
--data '{
    "vpa": "divyanshsharma8974@okaxis",
    "name": "Divyansh Sharma",
    "fuzzy": false
}'
```

```nodejs
const axios = require('axios');
let data = JSON.stringify({
  "vpa": "divyanshsharma8974@okaxis",
  "name": "Divyansh Sharma",
  "fuzzy": false
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://api.signzy.app/api/v3/bankAccountVerification/upiVerifications',
  headers: { 
    'Content-Type': 'application/json', 
    'Authorization': '<Token>'
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});

```

```python
import requests
import json

url = "https://api.signzy.app/api/v3/bankAccountVerification/upiVerifications"

payload = json.dumps({
  "vpa": "divyanshsharma8974@okaxis",
  "name": "Divyansh Sharma",
  "fuzzy": False
})
headers = {
  'Content-Type': 'application/json',
  'Authorization': '<Token>'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

```

```go
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api.signzy.app/api/v3/bankAccountVerification/upiVerifications"
  method := "POST"

  payload := strings.NewReader(`{
    "vpa": "divyanshsharma8974@okaxis",
    "name": "Divyansh Sharma",
    "fuzzy": false
}`)

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "<Token>")

  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
```
:::

***

### Response body parameters

| Parameter         | Data Type | Description          |
| ----------------- | --------- | -------------------- |
| result.nameAtBank | String    | Name at the bank     |
| result.verified   | String    | Verification status  |
| result.message    | String    | Verification message |

:::CodeblockTabs
200

```json
{
    "result": {
        "nameAtBank": "DIVYANSH SHARMA",
        "verified": "true",
        "message": "Verification completed with positive results"
    }
}
```

400

```json
// When empty string passed in vpa
{
    "error": {
        "statusCode": 400,
        "name": "Error",
        "message": "vpa is not allowed to be empty",
        "status": 400
    }
}

// When vpa is wrong
{
    "error": {
        "statusCode": 400,
        "name": "Error",
        "message": "VPA is invalid",
        "status": 400
    }
}

// When special characters are passed
{
    "error": {
        "statusCode": 400,
        "name": "Error",
        "message": "Invalid vpa",
        "status": 400
    }
}
```

401

```json
// When API key is not passed
{
    "message": "No API key found in request"
}

// when wrong API key is passed
{
    "message": "Invalid authentication credentials"
}
```

409

```json
{
    "error": {
        "statusCode": 409,
        "name": "Error",
        "message": "Upstream Down",
        "status": 409
    }
}
```
:::

***

**Contact Us for Any Assistance**

If you have any questions or need assistance, please reach out to our customer support team. You can contact us via email at <font color="#2166ae">**help\@signzy.com**</font>. We strive to provide prompt and reliable assistance, ensuring your queries are addressed effectively.

We value your feedback and are committed to making your experience smooth and enjoyable. Our team is dedicated to assisting you with any needs you may have. Thank you for choosing our services. We look forward to helping you!

