---
title: Mobile to UPI details
slug: api-marketplace/mobile-to-upi-details
createdAt: 2023-11-02T11:46:52.780Z
---

## Introduction

Mobile to UPI details API enables you to retrieve the UPI ID and the account holder's name associated with a mobile number. This API is perfectly suited for businesses and financial institutions looking to simplify their payment procedures, confirm customer information, and improve transactional efficiency.

***

## API details

### Endpoint

:::CodeblockTabs
Production environment

```jsx
POST https://api.signzy.app/api/v3/bankaccountverification/getUpiInfo
```
:::

:::CodeblockTabs
UAT/Testing environment

```jsx
POST https://api-preproduction.signzy.app/api/v3/bankaccountverification/getUpiInfo
```
:::

***

### 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**         | **Required** |
| ------------- | ------------- | ----------------------- | ------------ |
| mobileNumber  | String        | 10-Digit mobile number. | Mandatory    |

```json
{
    "mobileNumber": "0000000000"
}
```

***

### Code samples

:::CodeblockTabs
```curl
curl --location 'https://api.signzy.app/api/v3/bankaccountverification/getUpiInfo' \
--header 'Content-Type: application/json' \
--header 'Authorization: <Your access token>' \
--data '{
    "mobileNumber": "0000000000"
}'
```

```nodejs
var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://api.signzy.app/api/v3/bankaccountverification/getUpiInfo',
  'headers': {
    'Content-Type': 'application/json',
    'Authorization': '<Your access token>'
  },
  body: JSON.stringify({
    "mobileNumber": "0000000000"
  })

};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

```

```python
import requests
import json

url = "https://api.signzy.app/api/v3/bankaccountverification/getUpiInfo"

payload = json.dumps({
  "mobileNumber": "0000000000"
})
headers = {
  'Content-Type': 'application/json',
  'Authorization': '<Your access 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/getUpiInfo"
  method := "POST"

  payload := strings.NewReader(`{
    "mobileNumber": "0000000000"
}`)

  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", "<Your access 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               | Object        | Contains the result of the task.                                                                                                |
| result.accountStatus | String        | Indicates the current status of the account.<br />The possible values are:<br />VALID,<br />INVALID,<br />UNABLE\_TO\_VALIDATE. |
| result.upiId         | String        | The UPI ID associated with the mobile number.                                                                                   |
| result.nameAtBank    | String        | Account holder's name as registered with the bank.                                                                              |

:::CodeblockTabs
200

```json
// When mobileNumber is linked with UPI ID
{
    "result": {
        "accountStatus": "VALID",
        "upiId": "joesample0000@upi",
        "nameAtBank": "JOE SAMPLE "
    }
}

// When no UPI ID is linked to the Mobile Number
{
    "result": {
        "message": "No UPI ID found linked to the Mobile Number"
    }
}
```

400

```json
// When mobileNumber parameter is not passed
{
    "statusCode": 400,
    "status": "Bad Request",
    "message": "Required mobileNumber"
}
// When mobileNumber is passed empty
{
    "statusCode": 400,
    "status": "Bad Request",
    "message": "mobileNumber is invalid"
}

// When wrong mobile number is passed
{
    "statusCode": 400,
    "status": "Bad Request",
    "message": "mobileNumber is invalid"
}

// When number is not passed as a string
{
    "statusCode": 400,
    "status": "Bad Request",
    "message": "mobileNumber must be a string"
}

```

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
// When upstream is down
{
    "error": {
        "reason": "Error From Upstream",
        "status": 409,
        "message": "Upstream Down",
        "type": "Conflict",
        "statusCode": 409,
        "name": "error"
    }
}
```
:::

***

**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!

