---
title: Phone KYC - Phone to Alternate Phone API
slug: api-marketplace/phone-kyc-phone-to-alternate-phone-api
createdAt: 2024-03-06T17:25:21.751Z
---

## Introduction:

The Phone to Alternate Phone API facilitates clients in retrieving their users' alternate phone number details. By consuming a customer's Phone Number and Name, this API provides comprehensive information about the user's alternate phone numbers.

### Key Features

- **Alternate Phone Number Retrieval**: The API retrieves alternate phone numbers associated with the user based on inputs such as Phone Number and Name.

### Applications

- **Pre-Filling Use Cases**: This API seamlessly integrates into pre-filling use cases, offering streamlined retrieval of alternate phone number details for various processes.

### Conclusion

In summary, the Phone to Alternate Phone API offers a convenient solution for clients to access their users' alternate phone number details using Phone Number and Name inputs. Its seamless application across pre-filling use cases enhances efficiency in phone number verification processes.

## Sample cURL:

:::CodeblockTabs
preproduction

```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/phonekyc/alternate-phone-number' \
--header 'Content-Type: application/json' \
--header 'Authorization: <auth token>' \
--data '{
    "phoneNumber": "9996889976",
    "firstName": "DARSHAN",
    "lastName": "GORDHAN",
    "pan": "ACOPY8003F"
}'
```

production

```curl
curl --location 'https://api.signzy.app/api/v3/phonekyc/alternate-phone-number' \
--header 'Content-Type: application/json' \
--header 'Authorization: <auth token>' \
--data '{
    "phoneNumber": "9996889976",
    "firstName": "DARSHAN",
    "lastName": "GORDHAN",
    "pan": "ACOPY8003F"
}'
```
:::

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

```json
{
    "response": {
        "alternatePhone": [
            {
                "serialNo": 1,
                "phoneNumber": "07206467571"
            },
            {
                "serialNo": 2,
                "phoneNumber": "9996889976"
            },
            {
                "serialNo": 3,
                "phoneNumber": "9996889976"
            },
            {
                "serialNo": 4,
                "phoneNumber": "9831028518"
            },
            {
                "serialNo": 5,
                "phoneNumber": "07206467571"
            },
            {
                "serialNo": 6,
                "phoneNumber": "03322908334"
            }
        ],
        "email": [
            {
                "serialNo": 1,
                "email": "DARSHAN.GORDHAN01@GMAIL.COM"
            }
        ],
        "personalInfo": {
            "name": "DARSHAN GORDHAN "
        }
    }
}
```

## Output Parameters:

| **Key**                             | **Type** | **Description**                                 |
| ----------------------------------- | -------- | ----------------------------------------------- |
| response                            | Object   | The main object contains response data.         |
| response.alternatePhone             | Array    | List of Phone Numbers associated with the user. |
| response.alternatePhone.serialNo    | Number   | Serial No of the alternate phone number         |
| response.alternatePhone.phoneNumber | String   | Alternate Phone Number                          |
| response.email                      | Array    | List of emails associated with the user         |
| response.email.serialNo             | Number   | Serial No of the email                          |
| response.email.email                | String   | Email of the User                               |
| response.personalInfo               | Object   | Object containing personal information.         |
| response.personalInfo.name          | String   | The name of the individual.                     |

## Status Codes:

:::CodeblockTabs
200 OK

```json
{
    "response": {
        "alternatePhone": [
            {
                "serialNo": 1,
                "phoneNumber": "07206467571"
            },
            {
                "serialNo": 2,
                "phoneNumber": "9996889976"
            },
            {
                "serialNo": 3,
                "phoneNumber": "9996889976"
            },
            {
                "serialNo": 4,
                "phoneNumber": "9831028518"
            },
            {
                "serialNo": 5,
                "phoneNumber": "07206467571"
            },
            {
                "serialNo": 6,
                "phoneNumber": "03322908334"
            }
        ],
        "email": [
            {
                "serialNo": 1,
                "email": "DARSHAN.GORDHAN01@GMAIL.COM"
            }
        ],
        "personalInfo": {
            "name": "DARSHAN GORDHAN "
        }
    }
}
```

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
    }
}
```
:::

