---
title: E-PAN Extraction API
slug: v2-apis/e-pan-extraction-api
description: Learn how to call the API for the E-PAN card service provided by the Income Tax Department in India. This document details the process of creating an identity object, conducting auto recognition and verification. Discover code examples and response parame
createdAt: 2022-09-25T21:17:00.000Z
---

## Introduction

E-PAN card is a digitally authenticated PAN Card implemented in e-format by Income Tax Department using Aadhar e-KYC.&#x20;

According to the Income Tax Department, the E-PAN service is only applicable to those applicants whose new PAN Card request has been submitted to proceed via NSDL, UTIITSL or Income Tax Department's e-filling website. E-PAN is only available to Indian Citizens and no NRI's can are applicable for the same.
E pan card is relevant to original or physical PAN Card.

## How to call the API

Before going for Auto reading, you first need to create an Identity object.

Here you have to pass direct url to the zip,xml or pdf file of E-PAN. With zip file or pdf you have to pass the password in the request body. In case of XML file password is not required.

:::hint{type="info"}
In case of XML file password is not required.
:::

## API Input Guidelines

- zip, pdf or xml File
- Protected password

## Step 1: Hit Identities API

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://preproduction.signzy.tech/api/v2/patrons/<Patron ID>/identities",
  "name": "Identity Request",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "kind": "required",
        "name": "Authorization",
        "type": "string",
        "children": [],
        "description": "Contains the id parameter returned from the login step"
      },
      {
        "kind": "required",
        "name": "Content-Type",
        "type": "string",
        "children": [],
        "description": "Application/JSON"
      }
    ],
    "bodyDataParameters": [
      {
        "kind": "required",
        "name": "type",
        "type": "string",
        "description": "Type of identity - PAN"
      },
      {
        "kind": "required",
        "name": "email",
        "type": "string",
        "children": [],
        "description": "e-mail ID"
      },
      {
        "kind": "required",
        "name": "callbackurl",
        "type": "string",
        "children": [],
        "description": "URL where response will be posted"
      },
      {
        "kind": "required",
        "name": "images",
        "type": "Array",
        "children": [],
        "description": "Front and back image of aadhaar"
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "AldhBKlzZNUpNGHj-FvO7",
        "code": "{\n    \"type\": \"individualPan\",\n    \"email\": \"ankur.rand@signzy.com\",\n    \"callbackUrl\": \"https://www.w3schools.com\",\n    \"images\": [],\n    \"accessToken\": \"<Access Token>\",\n    \"autoRecognition\": [],\n    \"verification\": [],\n    \"forgeryCheck\": [],\n    \"id\": \"<ID>\",\n    \"patronId\": \"<PatronID>\"\n}",
        "language": "200",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "AldhBKlzZNUpNGHj-FvO7"
  },
  "examples": {
    "languages": [
      {
        "id": "y2f_VZjz30OnY7EU_Y9xV",
        "code": "curl --location --request POST 'https://preproduction.signzy.tech/api/v2/patrons/<Patron ID>/identities' \\\n--header 'Authorization: <Auth Key>' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n    \"type\": \"individualPan\",\n    \"email\": \"<email Id>\",\n    \"callbackUrl\": \"https://www.w3schools.com\",\n    \"images\": [<images Url>]\n}'",
        "language": "curl",
        "customLabel": "Preproduction"
      },
      {
        "id": "3lgwurDnVIWovrF5B7-aj",
        "code": "curl --location --request POST 'https://signzy.tech/api/v2/patrons/<Patron ID>/identities' \\\r\n--header 'Authorization: <Auth Key>' \\\r\n--header 'Content-Type: application/json' \\\r\n--data-raw '{\r\n    \"type\": \"individualPan\",\r\n    \"email\": \"<email Id>\",\r\n    \"callbackUrl\": \"https://www.w3schools.com\",\r\n    \"images\": [<images Url>]\r\n}'",
        "language": "curl",
        "customLabel": "Production"
      }
    ],
    "selectedLanguageId": "3lgwurDnVIWovrF5B7-aj"
  },
  "description": "Creating Identity card object",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  }
}
```
:::

### Identity Response Parameters

| **Parameter Name** | **Data Type** | **Description**                         |
| ------------------ | ------------- | --------------------------------------- |
| accessToken        | String        | This is provided by identities API      |
| autoRecognition    | String        | Auto recognises face from aadhaar image |
| verification       | String        | Verification of the image               |
| forgeryCheck       | String        | Forgery check of the image              |
| id                 | String        | Contains the Identity object id         |
| patronId           | String        | Unique user ID of the user              |

***

## Step 2: Hit Snoops API and receives a response

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://preproduction.signzy.tech/api/v2/snoops",
  "name": "Snoop request",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "kind": "required",
        "name": "Content-Type",
        "type": "string",
        "children": [],
        "description": "Application/JSON"
      }
    ],
    "bodyDataParameters": [
      {
        "kind": "required",
        "name": "service",
        "type": "string",
        "description": "Type of Signzy service - “identity extraction"
      },
      {
        "kind": "required",
        "name": "itemId",
        "type": "string",
        "children": [],
        "description": "Contains the identity item id"
      },
      {
        "kind": "required",
        "name": "task",
        "type": "string",
        "children": [],
        "description": "E-PAN data extration"
      },
      {
        "kind": "required",
        "name": "essentials",
        "type": "Object",
        "children": [
          {
            "kind": "required",
            "name": "file",
            "type": "string",
            "description": "E-PAN of which data needs to be extracted"
          },
          {
            "kind": "required",
            "name": "password",
            "type": "string",
            "description": "Password of the input file"
          },
          {
            "kind": "required",
            "name": "type",
            "type": "string",
            "description": "Individual Pan"
          }
        ],
        "description": "Contains the essential output data"
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "DhbJ_vixnOkpCrZqji4t3",
        "code": "{\n    \"service\": \"Identity\",\n    \"itemId\": \"<Item ID>\",\n    \"accessToken\": \"<Access Token\",\n    \"task\": \"ePan\",\n    \"essentials\": {\n        \"file\": \"<E-PAN>\",\n        \"password\": \"<Password of E-PAN>\",\n        \"type\": \"individualPan\",\n        \"instance\": {}\n    },\n    \"accessToken\": \"<Access Token>\",\n    \"id\": \"<ID>\",\n    \"response\": {\n        \"result\": {\n            \"name\": \"<PAN Holders Name>\",\n            \"fatherName\": \"<Father's Name>\",\n            \"dob\": \"<D.O.B>\",\n            \"number\": \"<PAN Number>\",\n            \"gender\": \"MALE\",\n            \"timestamp\": \"12/02/2020 03:16:54\",\n            \"x509Data\": {\n                \"version\": 2,\n                \"subject\": {\n                    \"countryName\": \"\",\n                    \"organizationName\": \"\",\n                    \"organizationalUnitName\": \"\",\n                    \"postalCode\": \"\",\n                    \"stateOrProvinceName\": \"\",\n                    \"streetAddress\": \"MUMBAI\",\n                    \"houseIdentifier\": \"\",\n                    \"commonName\": \"DS NSDL E-GOVERNANCE INFRASTRUCTURE LIMITED 4\"\n                },\n                \"issuer\": {\n                    \"countryName\": \"\",\n                    \"organizationName\": \"\",\n                    \"organizationalUnitName\": \"\",\n                    \"commonName\": \"\"\n                },\n                \"serial\": \"\",\n                \"notBefore\": \"\",\n                \"notAfter\": \"\",\n                \"subjectHash\": \"\",\n                \"signatureAlgorithm\": \"<Signature Algo>\",\n                \"fingerPrint\": \"\",\n                \"publicKey\": {\n                    \"algorithm\": \"<Public Key Algo>\"\n                },\n                \"altNames\": [],\n                \"extensions\": {\n                    \"authorityKeyIdentifier\": \"\",\n                    \"subjectKeyIdentifier\": \"\",\n                    \"basicConstraints\": \"\",\n                    \"keyUsage\": \"\",\n                    \"subjectAlternativeName\": \"\",\n                    \"extendedKeyUsage\": \"\",\n                    \"certificatePolicies\": \"\",\n                    \"authorityInformationAccess\": \"\",\n                    \"cRLDistributionPoints\": \"\"\n                }\n            },\n            \"isValidEPANDSC\": true,\n            \"photo\": \"<URL Of Pan holders image>\"\n        }\n    }\n}",
        "language": "200",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "DhbJ_vixnOkpCrZqji4t3"
  },
  "examples": {
    "languages": [
      {
        "id": "IUyd0fXV16FzqwRomPH8e",
        "code": "curl --location --request POST 'https://preproduction.signzy.tech/api/v2/snoops' \\\n--header 'Content-Type: application/json;charset=UTF-8' \\\n--data-raw '{\n    \"service\": \"Identity\",\n    \"itemId\": \"<Item ID>\",\n    \"accessToken\": \"<Access Token\",\n    \"task\": \"ePan\",\n    \"essentials\": {\n        \"file\": \"<E-PAN>\",\n        \"password\": \"<Password of E-PAN>\",\n        \"type\": \"individualPan\"\n    }\n}'",
        "language": "curl",
        "customLabel": "Preproduction"
      },
      {
        "id": "9CLi6RUgVAK8trl7hoyF7",
        "code": "curl --location --request POST 'https://signzy.tech/api/v2/snoops' \\\r\n--header 'Content-Type: application/json;charset=UTF-8' \\\r\n--data-raw '{\r\n    \"service\": \"Identity\",\r\n    \"itemId\": \"<Item ID>\",\r\n    \"accessToken\": \"<Access Token\",\r\n    \"task\": \"ePan\",\r\n    \"essentials\": {\r\n        \"file\": \"<E-PAN>\",\r\n        \"password\": \"<Password of E-PAN>\",\r\n        \"type\": \"individualPan\"\r\n    }\r\n}'",
        "language": "curl",
        "customLabel": "Production"
      }
    ],
    "selectedLanguageId": "IUyd0fXV16FzqwRomPH8e"
  },
  "description": "Performing autoRecognition & verification",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  }
}
```
:::

### Response Parameters

| **Parameters Name**                   | **Data Type** | **Description**                                                        |
| ------------------------------------- | ------------- | ---------------------------------------------------------------------- |
| accessToken                           | String        |                                                                        |
| id                                    | String        |                                                                        |
| result.name                           | String        | Pan holders name                                                       |
| result.fatherName                     | String        | Father's name of E-PAN holder                                          |
| result.gender                         | String        | Gender of E-PAN holder                                                 |
| result.timestamp                      | String        | Date stamp of E-PAN                                                    |
| result.x509Data                       | String        | This parameter contains the information about the PAN service provider |
| result.x509Data.version               | Number        |                                                                        |
| result.x509Data.subject               | String        |                                                                        |
| result.x509Data.issuer                | String        |                                                                        |
| result.x509Data.serial                | String        |                                                                        |
| result.x509Data.notBefore             | String        |                                                                        |
| result.x509Data.notAfter              | String        |                                                                        |
| result.x509Data.Hash                  | String        |                                                                        |
| result.x509Data.signatureAlgorith     | String        | PAN holders signature algorithm                                        |
| result.x509Data.fingerPrint           | String        |                                                                        |
| result.x509Data.publicKey             | String        |                                                                        |
| result.x509Data.publicKey.algorith    | String        |                                                                        |
| result.x509Data.altNames              | String        |                                                                        |
| result.x509Data.extentions            | String        |                                                                        |
| extentions.authorityKeyIdentifier     | String        |                                                                        |
| extentions.subjectKeyIdentifier       | String        |                                                                        |
| extentions.basicConstraints           | String        |                                                                        |
| extentions.keyUsage                   | String        |                                                                        |
| extentions.subjectAlternativeName     | String        |                                                                        |
| extentions.extendedKeyUsage           | String        |                                                                        |
| extentions.certificatePolicies        | String        |                                                                        |
| extentions.authorityInformationAccess | String        |                                                                        |
| extentions.cRLDistributionPoints      | String        |                                                                        |
| isValidEPANDSC                        | Boolean       | Returns whether E-PAN is valid or not                                  |
| photo                                 | String        | URL of Pan holders image                                               |

###

:::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](#).
:::

