---
title: ICAI
slug: api-marketplace/icai
createdAt: 2023-11-02T11:46:52.780Z
---

## Introduction

This API provides access to detailed information about the members of the Institute of Chartered Accountants of India (ICAI). By inputting the six-digit Member number, you can retrieve information such as the member's name, gender, address, and current status with the ICAI.

***

## API details

### Endpoint

:::CodeblockTabs
Production Environment

```jsx
https://api.signzy.app/api/v3/icai/icais
```
:::

:::CodeblockTabs
UAT/Testing Environment

```jsx
https://api-preproduction.signzy.app/api/v3/icai/icais
```
:::

***

### 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** |
| ------------- | ------------- | -------------------------- | ------------ |
| memberNumber  | String        | 6-digit membership number. | Mandatory    |

```json
{
    "memberNumber": "000000"
}
```

***

### Code samples

:::CodeblockTabs
```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/icai/icais' \
--header 'Content-Type: application/json' \
--header 'Authorization: <Token>' \
--data '{
    "memberNumber": ""
}'
```

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

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

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

```python
import http.client
import json

conn = http.client.HTTPSConnection("api-preproduction.signzy.app")
payload = json.dumps({
  "memberNumber": ""
})
headers = {
  'Content-Type': 'application/json',
  'Authorization': '<Token>'
}
conn.request("POST", "/api/v3/icai/icais", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
```

```go
package main

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

func main() {

  url := "https://api-preproduction.signzy.app/api/v3/icai/icais"
  method := "POST"

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

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Content-Type", "application/json")

  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.status                   | String           | Member Status.<br />The possible values are:<br />**ACTIVE,**<br />**INACTIVE**. |
| result.name                     | String           | Full name of the member.                                                         |
| result.address                  | String           | Professional address of the member.                                              |
| result.splitAddress             | Object           | Contains the split components of the professional address.                       |
| result.splitAddress.district    | Array of strings | District.                                                                        |
| result.splitAddress.state       | Array of strings | State.                                                                           |
| result.splitAddress.city        | Array of strings | City.                                                                            |
| result.splitAddress.pincode     | String           | Pincode.                                                                         |
| result.splitAddress.country     | Array of strings | Country.                                                                         |
| result.splitAddress.addressLine | String           | Address line split from **address**.                                             |

:::CodeblockTabs
200

```json
{
    "essentials": {
        "memberNumber": "000000"
    },
    "id": "655dcc0e26dfc10022ef893f",
    "patronId": "Your Patron ID",
    "result": {
        "status": "ACTIVE/INACTIVE",
        "name": "NAME",
        "address": "Full Address",
        "splitAddress": {
            "district": [
                "JAMNAGAR"
            ],
            "state": [
                [
                    "GUJARAT",
                    "GJ"
                ]
            ],
            "city": [
                "JAMNAGAR"
            ],
            "pincode": "000000",
            "country": [
                "IN",
                "IND",
                "INDIA"
            ],
            "addressLine": "Address line"
        }
    }
}
```

400

```json
// When ICAI number is not valid
{
    "error": {
        "statusCode": 400,
        "name": "Error",
        "message": "This is not a valid ICAI member number, please refer docs.",
        "status": 400
    }
}

// When ICAI number is empty string
{
    "error": {
        "statusCode": 400,
        "name": "Error",
        "message": "memberNumber is not allowed to be empty string",
        "status": 400
    }
}
```

401

```json
// When Auth Token is wrong
{
    "message": "Invalid authentication credentials"
}

// When Auth Token is missing
{
    "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!

