---
title: PAN to Insurance
slug: api-marketplace/pan-to-insurance
createdAt: 2024-03-15T08:40:51.807Z
---

# <u>Introduction:</u>

PAN to insurance API helps in finding the details of the insurance agent associated with the PAN number, it provides the insurer name, date of birth, insurer type, insurer and other details on the insurance.&#x20;

### <u>Use Cases:</u>

1. **Proof of Identity:&#x20;**&#x50;AN serves as a nationally accepted proof of identity in India. This makes it useful for various applications, including passport applications, voter ID registrations, and driving license applications.

***Coverage :- 10%***

### <u>Sample curl:</u>

:::CodeblockTabs
Pre - prod curl

```json
curl --location 'https://api-preproduction.signzy.app/api/v3/global-api/PanToInsuranceDetails' \
--header 'Content-Type: application/json' \
--header 'Authorization: <auth-token>' \
--data '{
    "panNumber":"<pan>"
}'
```

Prod curl

```json
curl --location 'https://api.signzy.app/api/v3/global-api/PanToInsuranceDetails' \
--header 'Content-Type: application/json' \
--header 'Authorization: <Auth-Token>' \
--data '{
    "panNumber":"BUXPB0807N"
}'
```
:::

### <u>Response:</u>

:::CodeblockTabs
200-Response

```json
{
    "result": [
        {
            "agentName": "<agentName>",
            "dateOfBirth": "<date of Birth>",
            "insurerType": "<insurerType>",
            "insurer": "<insurer>",
            "agencyCode": "<agencyCode>",
            "dateOfAppointment": "<dateOfAppointment>",
            "statusOfAgency": "<statusOfAgency>",
            "statusChangeDate": "<statusChangeDate>",
            "licenseNoIfAnyPreviouslyHeld": "<licenseNoIfAnyPreviouslyHeld>"
        }
    ]
}
```

404

```json
{
    "error": {
        "name": "error",
        "message": "PAN details are not found in the system ",
        "reason": "Data not found in source",
        "type": "Data not found",
        "statusCode": "404"
    }
}
```
:::

### <u>Input mapping:</u>

| **Input** | **Required** | **Data Type** | **Description**   |
| --------- | ------------ | ------------- | ----------------- |
| pan       | Yes          | string        | pan of the person |

### <u>Output mapping:</u>

| Parameter                    | Description                           | Data Type |
| ---------------------------- | ------------------------------------- | --------- |
| agentName                    | Name of the agent                     | String    |
| dateOfBirth                  | Date of birth of the agent            | Date      |
| insurerType                  | Type of the insurer                   | String    |
| insurer                      | Name of the insurer                   | String    |
| agencyCode                   | Code assigned to the agency           | String    |
| dateOfAppointment            | Date when the agent was appointed     | Date      |
| statusOfAgency               | Current status of the agency          | String    |
| statusChangeDate             | Date when the status was last changed | Date      |
| licenseNoIfAnyPreviouslyHeld | Previous license number if applicable | String    |

### <u>Status Code:</u>

| Status Code | Message        | Description                         |
| ----------- | -------------- | ----------------------------------- |
| 200         | Success        | The request is served successfully  |
| 400         | Bad Request    | The inputs are invalid              |
| 404         | Data Not Found | Data not found in the source        |
| 409         | Upstream Error | Error in getting data from Upstream |

### <u>Error Code Responses:</u>

:::CodeblockTabs
404 (Not Found)

```json
{
    "error": {
        "name": "error",
        "message": "Not Found",
        "reason": "Could not find PAN associated with given name and number (Either phone or name is wrong or both).",
        "type": "Not Found",
        "statusCode": 404,
        "status": 404
    }
}
```

400 (Bad Request)

```json
{
    "error": {
        "name": "error",
        "message": "Bad Request",
        "reason": "mobileNumber is required",
        "type": "Bad Request",
        "status": 400,
        "statusCode": 400
    }
}
```

409 (Upstream Error)

```json
{
    "error": {
        "name": "error",
        "message": "Error in fetching data from Upstream",
        "status": "409",
        "reason": "Upstream Error",
        "type": "Conflict",
        "statusCode": "409"
    }
}
```
:::

### <u>Error </u><u>Response Parameters:</u>

| Parameter        | Description                       |
| ---------------- | --------------------------------- |
| error            | This parameter contains the error |
| error.name       | The name of the error             |
| error.message    | The error message                 |
| error.statusCode | Request Status code from Signzy   |
| error.status     | Request Status from Signzy        |
| error.reason     | Reason for error                  |
| error.type       | Type of the error                 |



:::hint{type="info"}
### Getting help

Please feel free to contact us if you have any questions, require clarification, or have ideas for how to make the documents or any of our services better.

You can reach out to us at [help@signzy.com](#). 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!
:::

