---
title: Search by Member
slug: api-marketplace/search-by-member
description: This document provides an overview of an API for searching Institute of Cost Accountants of India (ICWAI) records using a specific patron ID and member number. It outlines the steps required to access the API, including obtaining an access token and passi
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 member number.

***

## API details

### Endpoint

:::CodeblockTabs
Production Endpoint

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

:::CodeblockTabs
Production Endpoint

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

***

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

| **Parameter** | **Data Type** | **Description**                                           | **Required** |
| ------------- | ------------- | --------------------------------------------------------- | ------------ |
| memberNumber  | string        | ICWAI member's unique ID for tracking and identification. | Mandatory    |

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

***

### Code samples

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

```python
import requests
import json

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

payload = json.dumps({
  "memberNumber": "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({
  "memberNumber": "000000"
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://api-preproduction.signzy.app/api/v3/icwai/members',
  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);
});

```

```go
package main

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

func main() {

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

  payload := strings.NewReader(`{
    "memberNumber":"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))
}
```
:::

***

### Response body parameters

| Parameter Name                               | Data Type        | Description                                           |
| -------------------------------------------- | ---------------- | ----------------------------------------------------- |
| memberNumber                                 | String           | Member's unique identifier                            |
| id                                           | Integer          | Identifier for the data record                        |
| result.entityName                            | String           | Name of the entity (e.g., company or organization)    |
| result.memberName                            | String           | Member's name (may be empty)                          |
| result.membershipDate                        | String           | Date when the membership started (format: DD/MM/YYYY) |
| result.addressDetails1                       | Object           | Detailed address information for address 1            |
| result.addressDetails1.details               | String           | Details related to the address                        |
| result.addressDetails1.address               | String           | Full address                                          |
| result.addressDetails1.splitAddress.district | Array of Strings | District(s) of the address                            |
| result.addressDetails1.splitAddress.state    | Array of Arrays  | State information, including name and abbreviation    |
| result.addressDetails1.splitAddress.city     | Array of Strings | City or cities in the address                         |
| result.addressDetails1.splitAddress.pincode  | String           | Postal code (PIN code)                                |
| result.addressDetails1.splitAddress.country  | Array of Strings | Country information, including ISO codes              |
| result.addressDetails1.addressLine           | String           | Concatenated address line                             |
| result.addressDetails2                       | Object           | Detailed address information for address 2            |

:::CodeblockTabs
200

```json
{
    "memberNumber": "<memberNumber>",
    "id": 21,
    "result": {
        "entityName": "SALOMI SHAHBUDIN JARIA & CO.",
        "memberName": "",
        "membershipDate": "11/12/2013",
        "addressDetails1": {
            "details": "D Address Details",
            "address": "FLAT NO.4, ALIABAD BUILDING AGAHALL, NESBIT ROAD MAZGOAN , MUMBAI, MAHARASHTRA, 400010",
            "splitAddress": {
                "district": [
                    "MUMBAI"
                ],
                "state": [
                    [
                        "MAHARASHTRA",
                        "MH"
                    ]
                ],
                "city": [
                    "MUMBAI"
                ],
                "pincode": "400010",
                "country": [
                    "IN",
                    "IND",
                    "INDIA"
                ],
                "addressLine": "FLAT NO.4,ALIABAD BUILDING AGAHALL,NESBIT ROAD MAZGOAN"
            }
        },
        "addressDetails2": {
            "details": "L Address Details",
            "address": "FLAT NO.4, ALIABAD BUILDING AGAHALL, NESBIT ROAD MAZGOAN , MUMBAI, MAHARASHTRA, 400010",
            "splitAddress": {
                "district": [
                    "MUMBAI"
                ],
                "state": [
                    [
                        "MAHARASHTRA",
                        "MH"
                    ]
                ],
                "city": [
                    "MUMBAI"
                ],
                "pincode": "400010",
                "country": [
                    "IN",
                    "IND",
                    "INDIA"
                ],
                "addressLine": "FLAT NO.4,ALIABAD BUILDING AGAHALL,NESBIT ROAD MAZGOAN"
            }
        }
    }
}
```

404

```none
// When member Number is not found
{
    "error": {
        "statusCode": 404,
        "name": "Error",
        "message": "member Number is not found"
    }
}
```

401

```json
// When Auth token is wrong
{
    "message": "Invalid authentication credentials"
}
// When Auth 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!
