---
title: Phone KYC - Phone to Identity Cards
slug: api-marketplace/phone-kyc-phone-to-identity-cards
createdAt: 2024-03-06T17:25:21.751Z
---

## Introduction:

The Phone to Identity Cards API facilitates clients in retrieving their users' identity card details. By consuming a customer's Phone Number, PAN, and Name, this API provides comprehensive identity card information such as Passport, Driving License, and Voter ID.

### Key Features

- **Identity Card Retrieval**: The API retrieves various identity card details including Passport, Driving License, and Voter ID based on the user's Phone Number, PAN, and Name.

### Applications

- **Pre-Filling Use Cases**: This API seamlessly integrates into pre-filling use cases, offering efficient retrieval of identity card details for streamlined processes.

### Conclusion

In conclusion, the Phone to Identity Cards API offers a convenient solution for clients to access their users' identity card details using Phone Number, PAN, and Name inputs. Its seamless integration into pre-filling use cases enhances efficiency in various processes requiring identity card information.

## Sample cURL:

:::CodeblockTabs
preproduction

```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/phonekyc/phone-to-identitycards' \
--header 'Content-Type: application/json' \
--header 'Authorization: <auth token>' \
--data '{
    "phoneNumber": "9502444055",
    "pan": "BEVPD4804B",
    "firstName": "RAMBABU",
    "lastName": "DARA"
}'
```

production

```curl
curl --location 'https://api.signzy.app/api/v3/phonekyc/phone-to-identitycards' \
--header 'Content-Type: application/json' \
--header 'Authorization: <auth token>' \
--data '{
    "phoneNumber": "9502444055",
    "pan": "BEVPD4804B",
    "firstName": "RAMBABU",
    "lastName": "DARA"
}'
```
:::

## Input Parameters:

| **Parameter** | **Type** | **Description**                | **Mandatory/Optional** |
| ------------- | -------- | ------------------------------ | ---------------------- |
| phoneNumber   | String   | Phone Number of the Individual | Mandatory              |
| firstName     | String   | First Name of the Individual   | Mandatory              |
| lastName      | String   | Last Name of the Individual    | Optional               |
| pan           | String   | PAN Number of the Individual   | Optional               |



## Sample Response:

:::CodeblockTabs
Sample Response

```json
{
    "response": {
        "voterId": [
            {
                "serialNo": 1,
                "voterId": "AQW0271668"
            }
        ],
        "passport": [
            {
                "serialNo": 1,
                "passport": "XXXXXXXX"
            }
        ],
        "drivingLicense": [
            {
                "serialNo": 1,
                "drivingLicense": "AP23020150000859"
            }
        ],
        "name": "D RAMBABU "
    }
}
```
:::

## Output Parameters:

| **Key**                                    | **Type**         | **Description**                          |
| ------------------------------------------ | ---------------- | ---------------------------------------- |
| response                                   | Object           | The main object contains response data.  |
| response.name                              | Object           | Contains the full name of the individual |
| response.voterId                           | Array of Objects | Represents the List of Voter Ids         |
| response.voterId\[n].serialNo              | Number           | Serial No of the ID                      |
| response.voterId\[n].voterId               | String           | Voter ID Value                           |
| response.passport                          | Array of Objects | Represents the List of Passports         |
| response.passport\[n].serialNo             | Number           | Serial No of the ID                      |
| response.passport\[n].passport             | String           | Passport ID Value                        |
| response.drivingLicense                    | Array of Objects | Represents the List of Driving Licenses  |
| response.drivingLicense\[n].serialNo       | Number           | Serial No of the ID                      |
| response.drivingLicense\[n].drivingLicense | String           | Driving License ID Value                 |

## Status Codes:

:::CodeblockTabs
200 OK

```json
{
    "response": {
        "voterId": [
            {
                "serialNo": 1,
                "voterId": "AQW0271668"
            }
        ],
        "passport": [
            {
                "serialNo": 1,
                "passport": "XXXXXXXX"
            }
        ],
        "drivingLicense": [
            {
                "serialNo": 1,
                "drivingLicense": "AP23020150000859"
            }
        ],
        "name": "D RAMBABU "
    }
}
```

404

```json
{
    "error": {
        "reason": "ERROR",
        "status": 404,
        "message": "record not found",
        "type": "Not Found",
        "statusCode": 404,
        "name": "error"
    }
}
```

400

```json
{
    "error": {
        "reason": "VALIDATION_ERROR",
        "status": 400,
        "message": "\"phoneNumber\" is not allowed to be empty",
        "type": "Bad Request",
        "statusCode": 400,
        "name": "error"
    }
}
1. "\"phoneNumber\" is not allowed to be empty"
2. "\"firstName\" is not allowed to be empty"
3. "\"pan\" with value \"ADBDE12345\" fails to match the required pattern: /^[a-zA-Z]{5}[0-9]{4}[a-zA-Z]$/"
```

401

```json
{
    "message": "Invalid authentication credentials"
}
```

500

```json
{
    "error": {
        "name": "error",
        "message": "Internal Server Error",
        "status": 500,
        "reason": "ERROR",
        "type": "Internal Server Error",
        "statusCode": 500
    }
}
```
:::

