---
title: IEC
slug: api-marketplace/iec
description: Learn how to retrieve Import Export Codes (IECs) associated with a patron using this API. Make an HTTP POST request with JSON payload containing patron ID and IEC code. Get detailed information in the response, such as IEC number, status, allotment date, 
createdAt: 2023-04-06T13:37:45.000Z
---

## Introduction

Seamlessly retrieve detailed insights by providing an Import Export Code (IEC) as input. Gain access to crucial parameters including company details related to global trade, establishment dates, directors details, and more, empowering informed decision-making in global commerce.&#x20;

***

## API details

### Endpoint

:::CodeblockTabs
Production Endpoint

```none
https://api.signzy.app/api/v3/iec/iecs
```
:::

:::CodeblockTabs
UAT Endpoint

```none
https://api-preproduction.signzy.app/api/v3/iec/iecs
```
:::

***

### 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   | Type   | Description                  |
| ----------- | ------ | ---------------------------- |
| **iecCode** | string | The IEC code to search for.  |

```json
{
    "iecCode": "<iecCode>"
}
```

***

### Code samples

:::CodeblockTabs
curl

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

```nodejs
const axios = require('axios');
let data = JSON.stringify({
  "iecCode": "<iec code>"
});

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

```

```python
import http.client
import json

conn = http.client.HTTPSConnection("api-preproduction.signzy.app")
payload = json.dumps({
  "iecCode": "<iec code>"
})
headers = {
  'Content-Type': 'application/json',
  'Authorization': '<auth token>'
}
conn.request("POST", "/api/v3/iec/iecs", 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/iec/iecs"
  method := "POST"

  payload := strings.NewReader(`{
    "iecCode":"<iec code>"
}`)

  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**              | **Type** | **Description**                                                                                                                                                        |
| -------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| result.iec                 | String   | Import Export Code                                                                                                                                                     |
| result.panNumber           | String   | Permanent Account Number                                                                                                                                               |
| result.dateOfEstablishment | String   | Date of establishment of the company                                                                                                                                   |
| result.iecAllotmentDate    | String   | Date when IEC was allotted                                                                                                                                             |
| result.delStatus           | String   | Delivery Status                                                                                                                                                        |
| result.iecCancelledDate    | String   | Date when IEC was cancelled (if applicable)                                                                                                                            |
| result.iecSuspendedDate    | String   | Date when IEC was suspended (if applicable)                                                                                                                            |
| result.fileNumber          | String   | File number                                                                                                                                                            |
| result.fileDate            | String   | Date when the file was created                                                                                                                                         |
| result.dgftRAOffice        | String   | Directorate General of Foreign Trade Regional Authority Office                                                                                                         |
| result.natureOfConcern     | String   | Nature of the business concern                                                                                                                                         |
| result.exporterType        | String   | Type of exporter                                                                                                                                                       |
| result.partyName           | String   | Name of the company                                                                                                                                                    |
| result.partyAddress        | String   | Address of the company                                                                                                                                                 |
| result.partyNameAndAddress | String   | Name and address of the company combined                                                                                                                               |
| result.phone               | String   | Phone number (if available)                                                                                                                                            |
| result.email               | String   | Email address (if available)                                                                                                                                           |
| result.bankerDetail        | String   | Details of the banker                                                                                                                                                  |
| result.bin                 | String   | Business Identification Number                                                                                                                                         |
| result.directors           | Array    | Information about the directors of the company                                                                                                                         |
| result.splitPartyAddress   | String   | Split party address (if available)                                                                                                                                     |
| result.branches            | Array    | Information about branches of the company (if any)                                                                                                                     |
| result.rcmc                | Array    | Information about Registration-cum-Membership Certificate (if any)                                                                                                     |
| result.status              | String   | Status of the company<br /><br />Possible values - Active, Inactive, Suspended, Cancelled, Surrendered, Under Process, Blacklisted, Amendment in Progress, Deactivated |
| result.statusCode          | Integer  | Status code of the company                                                                                                                                             |

:::CodeblockTabs
200

```json
{
    "result": {
        "iec": "iecCode",
        "panNumber": "AABCN5400F",
        "dateOfEstablishment": "23/07/2002",
        "iecAllotmentDate": "05/08/2002",
        "delStatus": "N",
        "iecCancelledDate": "",
        "iecSuspendedDate": "",
        "fileNumber": "240413000171AM03",
        "fileDate": "05/08/2002",
        "dgftRAOffice": "RA RAJKOT",
        "natureOfConcern": "PRIVATE LIMITED",
        "exporterType": "MANUFACTURER EXPORTER",
        "partyName": "NEW-TECH RING AND FITTING PVT. LTD.,",
        "partyAddress": "207, AJANTA COMMERCIAL COMPLEX, , GONDAL ROAD, Contact No: NIL , RAJKOT/GUJARAT. , , , 360002",
        "partyNameAndAddress": "NEW-TECH RING AND FITTING PVT. LTD.,, 207, AJANTA COMMERCIAL COMPLEX, , GONDAL ROAD, Contact No: NIL , RAJKOT/GUJARAT. , , , 360002",
        "phone": "",
        "email": "NIL",
        "bankerDetail": "",
        "bin": "",
        "directors": [
            {
                "number": "1",
                "directorName": "MUKESHBHAI PATEL",
                "parentName": "KHODABHAI",
                "panNumber": "",
                "address": "NIJANAND GAYATRI NAGAR MAIN ROAD,, Contact No: 362144,RAJKOT",
                "splitAddress": {
                    "district": [
                        "RAJKOT"
                    ],
                    "state": [
                        [
                            "GUJARAT",
                            "GJ"
                        ]
                    ],
                    "city": [
                        "RAJKOT"
                    ],
                    "pincode": "360007",
                    "country": [
                        "IN",
                        "IND",
                        "INDIA"
                    ],
                    "addressLine": "NIJANAND GAYATRI NAGAR MAIN ROAD,CONTACT NO"
                }
            },
            {
                "number": "2",
                "directorName": "GORDHANBHAI PATEL",
                "parentName": "GHUSABHAI",
                "panNumber": "",
                "address": "NIJANAND GAYATRI NAGAR MAIN ROAD,, Contact No: 362144,RAJKOT",
                "splitAddress": {
                    "district": [
                        "RAJKOT"
                    ],
                    "state": [
                        [
                            "GUJARAT",
                            "GJ"
                        ]
                    ],
                    "city": [
                        "RAJKOT"
                    ],
                    "pincode": "360007",
                    "country": [
                        "IN",
                        "IND",
                        "INDIA"
                    ],
                    "addressLine": "NIJANAND GAYATRI NAGAR MAIN ROAD,CONTACT NO"
                }
            },
            {
                "number": "3",
                "directorName": "RASIKBHAI PATEL",
                "parentName": "GHUSABHAI",
                "panNumber": "",
                "address": "NIJANAND GAYATRI NAGAR MAIN ROAD,, Contact No: 362144,RAJKOT",
                "splitAddress": {
                    "district": [
                        "RAJKOT"
                    ],
                    "state": [
                        [
                            "GUJARAT",
                            "GJ"
                        ]
                    ],
                    "city": [
                        "RAJKOT"
                    ],
                    "pincode": "360007",
                    "country": [
                        "IN",
                        "IND",
                        "INDIA"
                    ],
                    "addressLine": "NIJANAND GAYATRI NAGAR MAIN ROAD,CONTACT NO"
                }
            }
        ],
        "splitPartyAddress": "",
        "branches": [],
        "rcmc": [],
        "status": "DEACTIVATED",
        "statusCode": 3
    }
}
```

400

```json
// When iec code is not valid
{
    "error": {
        "statusCode": 400,
        "name": "Error",
        "message": "Invalid iecCode",
        "status": 400
    }
}
```

401

```none
// 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!

