---
title: Basic Search by Establishment ID
slug: v2/basic-search-by-establishment-id
description: Learn how to use the establishments API, which provides essential information on establishments. Follow the input guidelines and find sample Curl commands to make successful API calls. Understand the required access token and how to pass it as an authoriz
createdAt: 2023-06-09T06:57:55.000Z
---

## Introduction

The API returns the basic data about the establishment like establishmentName, validityStatus, establishmentStatus, 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 Basic Establishment Number/Name 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":"basicEstablishmentSearch",
    "essentials":{
        "establishmentId": "...establishmentId..."
    }
}'
```

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":"basicEstablishmentSearch",
    "essentials":{
        "establishmentId": "...establishmentId..."
    }
}'
```
:::

### 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                         |
| establishmentId    | establishmentId<br />ID of the Establishment.             |

## 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..."
          }
      }
  }
}
```
:::

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

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

