---
title: Search by Firm
slug: api-marketplace/search-by-firm
description: Learn how to search for Institute of Cost Accountants of India (ICWAI) records using the API. This document provides step-by-step guidelines, input parameters, and a sample response. Discover the list of output parameters and status codes. For inquiries o
createdAt: 2023-05-19T06:34:44.000Z
---

## Introduction

This API allows users to search for Institute of Cost Accountants of India (ICWAI) records for a specific patron ID and firm number.

***

## API details

### Endpoint

:::CodeblockTabs
Production Endpoint

```none
https://api.signzy.app/api/v3/icwai/firms
```
:::

:::CodeblockTabs
Pre production Endpoint

```none
https://api-preproduction.signzy.app/api/v3/icwai/firms
```
:::

***

### Request Headers

| **Name&#x20;** | **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 &#x20;

| **Parameter** | **Data Type** | **Description**                                                                              | **Required** |
| ------------- | ------------- | -------------------------------------------------------------------------------------------- | ------------ |
| firmNumber    | String        | firm Number isunique identification number assigned to a firm registered with the Institute. | Mandatory    |

```json
{
    "firmNumber": "000000"
}
```

***

### Code samples

:::CodeblockTabs
curl

```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/icwai/firms' \
--header 'Content-Type: application/json' \
--header 'Authorization: <auth token>' \
--data '{
    "firmNumber":"000000"
}'
```

```go
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api-preproduction.signzy.app/api/v3/icwai/firms"
  method := "POST"

  payload := strings.NewReader(`{
    "firmNumber":"000000"
}`)

  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", "<auth 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))
}
```

```python
import requests
import json

url = "https://api-preproduction.signzy.app/api/v3/icwai/firms"

payload = json.dumps({
  "firmNumber": "000000"
})
headers = {
  'Content-Type': 'application/json',
  'Authorization': '<auth token>'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

```

```nodejs
const axios = require('axios');
let data = JSON.stringify({
  "firmNumber": "000000"
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://api-preproduction.signzy.app/api/v3/icwai/firms',
  headers: { 
    'Content-Type': 'application/json', 
    'Authorization': '<auth token>'
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});

```
:::

***

### Response body parameters

| Parameter               | Datatype                   | Description                                                                     |
| ----------------------- | -------------------------- | ------------------------------------------------------------------------------- |
| firmNumber              | String                     | The unique number associated with the firm.                                     |
| id                      | Integer                    | A unique identifier for the record.                                             |
| result.entityName       | String                     | The name of the entity (firm).                                                  |
| result.constitutionDate | String                     | The date on which the firm was constituted.                                     |
| result.address          | String                     | The full physical address of the entity.                                        |
| result.splitAddress     | Object                     | An object containing detailed parts of the address.                             |
| - district              | Array of Strings           | The district(s) where the entity is located.                                    |
| - state                 | Array of Arrays of Strings | The state(s) where the entity is located, including abbreviations.              |
| - city                  | Array of Strings           | The city where the entity is located.                                           |
| - pincode               | String                     | The postal code for the address of the entity.                                  |
| - country               | Array of Strings           | The country where the entity is located, including abbreviations and full name. |
| - addressLine           | String                     | Detailed line of the entity's address.                                          |

:::CodeblockTabs
200

```json
{
    "firmNumber": "<firmNumber>",
    "id": 8,
    "result": {
        "entityName": "DHANANJAY V JOSHI ASSOCIATES",
        "constitutionDate": "02/12/1991",
        "address": "COST ACCOUNTANTS, CMA PRIDE, GROUND FLOOR, PLOT NO. 6, SURVEY NO. 16/6, ERANDAWANA CO.OP.HSG. SOC. ERANDAWANA, PUNE, MAHARASHTRA, 411004, INDIA",
        "splitAddress": {
            "district": [
                "PUNE"
            ],
            "state": [
                [
                    "MAHARASHTRA",
                    "MH"
                ]
            ],
            "city": [
                "PUNE CITY"
            ],
            "pincode": "411004",
            "country": [
                "IN",
                "IND",
                "INDIA"
            ],
            "addressLine": "COST ACCOUNTANTS,CMA PRIDE,GROUND FLOOR,PLOT NO.6,SURVEY NO.16/6,ERANDAWANA CO.OP.HSG.SOC.ERANDAWANA INDIA"
        }
    }
}
```

400

```none
// When firm Number is not valid
{
    "error": {
        "statusCode": 400,
        "name": "Error",
        "message": "Invalid Firm Number."
    }
}
// When firm Number is not a string
{
    "error": {
        "statusCode": 400,
        "name": "Error",
        "message": "Invalid Request Format.Please provide a valid request JSON",
        "status": 400
    }
}
```

401

```json
// When Authorization Token is not valid
{
    "message": "Invalid authentication credentials"
}

// When Authorization Token is not given
{
    "message": "No API key found in request"
}
```
:::

**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!

