---
title: Detailed Search by Establishment ID
slug: v2/detailed-search-by-establishment-id
description: Learn how to call the API to fetch comprehensive data about an establishment with this informative document. It covers the process of logging in, obtaining the necessary access token, and passing it in the authorization header. Find sample curl commands f
createdAt: 2023-06-09T06:57:55.000Z
---

## Introduction

The API returns detailed data about the establishment like establishmentName, validityStatus, establishmentStatus, pfPaymentDetails, etc.

## How to call the API

You are required to pass the access token recieved from the login call, as authorization header in the EPFO Detailed Establishment Number Based Search request along with establishmentId.

## API Input Guidelines

You will need to login before sending firm number request.

## Sample Curl

:::CodeblockTabs
Preproduction

```curl
curl --location --request POST 'https://preproduction.signzy.tech/api/v2/patrons/..your-patron-id../epfos' \
--header 'Content-Type: application/json' \
--header 'Authorization: ...Authorization token...' \
--data '
{
    "task":"detailedEstablishmentSearch",
    "essentials":{
        "establishmentId": "...establishmentId...",
        "employeeListMonths" : "...employeeListMonths..."
    }
}'
```

Production

```curl
curl --location --request POST 'https://signzy.tech/api/v2/patrons/...patronID.../epfos' \
--header 'Content-Type: application/json' \
--header 'Authorization: ...Authorization token...' \
--data '
{
    "task":"detailedEstablishmentSearch",
    "essentials":{
        "establishmentId": "...establishmentId...",
        "employeeListMonths" : "...employeeListMonths..."
    }
}'
```
:::

### Input Parameters &#x20;

| **PARAMETER NAME** | **DESCRIPTION**                                                                                                                          |
| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------- |
| Authorization      | Access Token for authentication and authorization                                                                                        |
| Content-Type       | Specifies the format of the data sent in the request body                                                                                |
| task               | The type of task to be performed.                                                                                                        |
| essentials         | Contains the essential input data like establishmentId and employeeListMonths.                                                           |
| establishmentId    | ID of the Establishment.                                                                                                                 |
| employeeListMonths | List of months for which information is required<br />**Format: MONTH/YEAR (MM/YYYY)**<br />**Note: Value can only be upto last 1 year** |

## Sample Response

:::CodeblockTabs
Response

```json
{

  "result": {
      "establishmentId": "...establishmentId...",
      "establishmentName": "...establishmentName...",
      "validityStatus": {
          "establishmentStatus": "...establishmentStatus...",
          "registrationStatusOnEcrPortal": "...registrationStatusOnEcrPortal...",
          "postCoverageStatus": "..postCoverageStatus.."
      },
      "establishmentStatus": {
          "exemptionStatus": "...exemptionStatus...",
          "workingStatus": "...workingStatus..",
          "coverageSection": "..coverageSection..",
          "actionableStatus": "...actionableStatus...",
          "dateOfCoverage": "...dateOfCoverage..."
      },
      "establishmentDetails": {
          "panStatus": "..panStatus...",
          "sectionApplicable": "...sectionApplicable...",
          "primaryBusinessActivity": "...primaryBusinessActivity..",
          "esicCode": "...esicCode...",
          "ownershipType": "...ownershipType...",
          "dateOfSetupOfEstablishment": "..dateOfSetupOfEstablishment..",
          "address": "...address...",
          "pincode": "...pincode...",
          "city": "...city...",
          "district": "...district...",
          "state": "...state...",
          "country": "...country...",
          "epfoOfficeName": "...epfoOfficeName...",
          "epfoOfficeAddress": "...epfoOfficeAddress...",
          "zone": "...zone...",
          "region": "...region...",
          "splitAddress": {
              "state": [
                  []
              ],
              "district": [],
              "city": [],
              "pincode": "...pincode...",
              "country": [
                  "IN",
                  "IND",
                  "INDIA"
              ],
              "addressLine": "...addressLine..."
          }
      },
      "pfPaymentDetails": [{
          "transactionId": "...transactionId...",
          "dateOfCredit": "...dateOfCredit...",
          "timeOfCredit": "...timeOfCredit...",
          "amount": "...amount...",
          "wageMonth": "...wageMonth...",
          "noOfEmployees": "...noOfEmployees...",
          "employeeNames": ["..employeeNames..."]
      }]
  }
}
```
:::

### Output Parameters

| **PARAMETER NAME**            | **DESCRIPTION**                                                                               |
| ----------------------------- | --------------------------------------------------------------------------------------------- |
| establishmentId               | Unique id of the establishment.                                                               |
| establishmentName             | Name of the establishment.                                                                    |
| validityStatus                | Contains details like establishmentStatus, registrationStatusOnEcrPortal, postCoverageStatus. |
| establishmentStatus           | status of the establishment                                                                   |
| registrationStatusOnEcrPortal | status of registration on ECR portal                                                          |
| postCoverageStatus            | status post coverage                                                                          |
| exemptionStatus               | exemptionStatus                                                                               |
| workingStatus                 | workingStatus                                                                                 |
| coverageSection               | coverageSection                                                                               |
| actionableStatus              | actionableStatus                                                                              |
| dateOfCoverage                | dateOfCoverage                                                                                |
| panStatus                     | panStatus                                                                                     |
| sectionApplicable             | section to which it is applicable                                                             |
| primaryBusinessActivity       | primary business activity of employee                                                         |
| esicCode                      | esicCode                                                                                      |
| ownershipType                 | type of ownership                                                                             |
| dateOfSetupOfEstablishment    | dateOfSetupOfEstablishment                                                                    |
| address                       | address                                                                                       |
| pincode                       | pincode                                                                                       |
| city                          | city                                                                                          |
| district                      | district                                                                                      |
| state                         | state                                                                                         |
| country                       | country                                                                                       |
| epfoOfficeName                | name of EPFO office                                                                           |
| epfoOfficeAddress             | address of EPFO office                                                                        |
| zone                          | zone                                                                                          |
| region                        | region                                                                                        |
| splitAddress                  | splitAddress                                                                                  |
| state                         | state                                                                                         |
| district                      | district                                                                                      |
| city                          | city                                                                                          |
| pincode                       | pincode                                                                                       |
| country                       | country                                                                                       |
| addressLine                   | addressLine                                                                                   |
| pfPaymentDetails              | pfPaymentDetails                                                                              |
| transactionId                 | ID of the transaction                                                                         |
| dateOfCredit                  | dateOfCredit                                                                                  |
| timeOfCredit                  | timeOfCredit                                                                                  |
| amount                        | amount                                                                                        |
| wageMonth                     | wageMonth                                                                                     |
| noOfEmployees                 | number of employees                                                                           |
| employeeNames                 | array containing list of employees                                                            |

## Status Codes

| CODE | MESSAGE                 |
| ---- | ----------------------- |
| 200  | OK                      |
| 404  | Establishment not found |
| 400  | Establishment not found |

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

