---
title: PAN Simple
slug: api-marketplace/pan-simple
description: Learn how to retrieve a person's Date of Birth (DOB) by using the PAN to DOB API. This API is essential for various applications like identity verification, financial services, user onboarding, and fraud prevention. Easily input a Permanent Account Number
createdAt: 2023-08-08T15:13:50.833Z
---

## Introduction

The PAN Simple API provides an efficient solution for quickly accessing essential details linked to a PAN (Permanent Account Number). By simply inputting a PAN number, users can retrieve comprehensive information including the full name, date of birth, and PAN status. Ideal for businesses and individuals needing fast access to PAN-related data, this API streamlines the process of identity verification and data validation with utmost ease and accuracy.&#x20;

***

## API details

### Endpoint

:::CodeblockTabs
Production environment

```jsx
POST https://api.signzy.app/api/v3/pan/simple
```
:::

:::CodeblockTabs
UAT/Testing environment

```jsx
POST https://api-preproduction.signzy.app/api/v3/pan/simple
```
:::

***

### 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  |
| --------- | --------- | --------------------------------------------------------------------------------- | --------- |
| panNumber | String    | The PAN (Permanent Account Number) of the individual to retrieve information for. | Mandatory |

```json
{
    "panNumber": "XXXXX0000X"
}
```

***

### Code samples

:::CodeblockTabs
```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/pan/simple' \
--header 'Content-Type: application/json' \
--header 'Authorization: <your-access-token>' \
--data '{
    "panNumber": "XXXXX0000X"
}'
```

```nodejs
var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://api-preproduction.signzy.app/api/v3/pan/simple',
  'headers': {
    'Content-Type': 'application/json',
    'Authorization': '<your-access-token>'
  },
  body: JSON.stringify({
    "panNumber": "XXXXX0000X"
  })

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

```

```python
import requests
import json

url = "https://api-preproduction.signzy.app/api/v3/pan/simple"

payload = json.dumps({
  "panNumber": "XXXXX0000X"
})
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-preproduction.signzy.app/api/v3/pan/simple"
  method := "POST"

  payload := strings.NewReader(`{`+"
"+`
    "panNumber": "XXXXX0000X"`+"
"+`
}`)

  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.name       | String    | The name on the PAN card.                                                                                                                                                                                                                                                                                                                                                                                  |
| result.firstName  | String    | The first name of the PAN card holder.<br />(Will be blank for non-Individual PANs)                                                                                                                                                                                                                                                                                                                        |
| result.middleName | String    | The middle name of the PAN card holder.<br />(Will be blank for non-Individual PANs)                                                                                                                                                                                                                                                                                                                       |
| result.lastName   | String    | The last name of the PAN card holder.<br />(Will be blank for non-Individual PANs)                                                                                                                                                                                                                                                                                                                         |
| result.dob        | String    | The date of birth of the PAN card holder in format **YYYY-MM-DD**.<br />If the DoB/DoI is invalid in the source, it'll be blank.                                                                                                                                                                                                                                                                           |
| result.panStatus  | String    | The PAN card status.<br />The possible values are:<br />VALID<br />FAKE<br />DEACTIVATED<br />DELETED<br />INVALID<br />AMALGAMATION<br />ACQUISITION<br />DEATH<br />DISSOLUTION<br />LIQUIDATED<br />MERGER<br />PARTITION<br />SPLIT<br />UNDER LIQUIDATION<br />INOPERATIVE<br />If **panStatus** is not **VALID**, You will not be able to retrieve the name and DOB. The name and DOB will be empty. |

:::CodeblockTabs
200

```json
// In case of individual pan
{
    "result": {
        "name": "JOHN DOE",
        "firstName": "JOHN",
        "middleName": "",
        "lastName": "DOE",
        "panStatus": "VALID",
        "dob": "2000-01-01"
    }
}
// In case of business pan 
{
    "result": {
        "name": "RELIANCE INDUSTRIES LIMITED",
        "firstName": "",
        "middleName": "",
        "lastName": "RELIANCE INDUSTRIES LIMITED",
        "panStatus": "VALID",
        "dob": "1973-05-08"
    }
}
```

400

```json
// When pan number is passed as empty string.
{
    "error": {
        "statusCode": 400,
        "status": "Bad Request",
        "message": "panNumber is not allowed to be an empty string",
        "id": "2b9a4056-1479-4337-bb1b-7eab35611dc7"
    }
}
// When invalid pan number is passed.
{
    "error": {
        "statusCode": 400,
        "status": "Bad Request",
        "message": "Invalid panNumber",
        "id": "7ef619cd-349c-4be9-915f-c511ad82ff62"
    }
}
```

401

```json
// When API provided is wrong.
{
    "message": "Invalid authentication credentials"
}
// When API key is not provided in headers.
{
    "message": "No API key found in request"
}
```

404

```json
{
    "result": {
        "name": "",
        "firstName": "",
        "middleName": "",
        "lastName": "",
        "panStatus": "INVALID",
        "dob": ""
    }
}
```

409

```json
{
    "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!

