IEC Verification API
Send a 10-character IEC. We return its status, the firm name, linked PAN, issue date, registered address, firm type, number of branches and the directors or partners on record.
- Source
- DGFT Import Export Code records
- Turnaround
- Real time, usually a few seconds
- Endpoint
- POST /v1/iec/verify
- Who can use it
- Any business working with importers and exporters, including freight forwarders, trade finance and cross-border payments.
Overview
No IEC, no import or export. Freight forwarders, trade-finance lenders and cross-border payment companies check it before taking on a client. Since 2018 the IEC is the same as the business's PAN, which makes it easy to cross-check with tax records.
Good to know
IEC holders must update their profile every year. A suspended IEC is often just a missed annual update, not wrongdoing, but they can't trade until it's fixed.
What you get
- Active, suspended or cancelledSee if the code can be used for shipments today.
- PAN linkThe IEC and PAN should match. If they don't, it's worth asking why.
- Directors and partnersNames on record help you check the people behind the firm.
- BranchesRegistered branches show how widely the business operates.
Request
POST https://api.ampletrails.com/v1/iec/verify
| Field | Type | Status | Description |
|---|---|---|---|
id_number | string | Required | 10-character Import Export Code |
Response
Fields inside data. Every response also carries status, request_id and, on errors, message. See error codes.
| Field | Meaning | Example |
|---|---|---|
iec_status | IEC status: ACTIVE, SUSPENDED or CANCELLED | ACTIVE |
firm_name | Name of the importer or exporter | EXAMPLE EXPORTS PRIVATE LIMITED |
pan | PAN linked to the IEC | AAACA1234A |
date_of_issue | IEC issue date | 2018-11-02 |
address | Registered address | Plot 7, Sector 37, Gurugram, Haryana 122001 |
firm_type | Nature of the firm | Private Limited Company |
branches | Number of registered branches | 2 |
directors | Directors or partners on record | ["Ravi Kumar"] |
Example
curl -X POST https://api.ampletrails.com/v1/iec/verify \
-H "Authorization: Bearer $AMPLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id_number": "AAACA1234A"}'import os, requests
resp = requests.post(
"https://api.ampletrails.com/v1/iec/verify",
headers={"Authorization": f"Bearer {os.environ['AMPLE_API_KEY']}"},
json={
"id_number": "AAACA1234A"
},
timeout=30,
)
resp.raise_for_status()
print(resp.json()["data"])const resp = await fetch("https://api.ampletrails.com/v1/iec/verify", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AMPLE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"id_number": "AAACA1234A"
}),
});
const { data } = await resp.json();$ch = curl_init("https://api.ampletrails.com/v1/iec/verify");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("AMPLE_API_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode(["id_number" => "AAACA1234A"]),
]);
$data = json_decode(curl_exec($ch), true)["data"];{
"status": "success",
"request_id": "req_7f3a9c21e4",
"data": {
"iec_status": "ACTIVE",
"firm_name": "EXAMPLE EXPORTS PRIVATE LIMITED",
"pan": "AAACA1234A",
"date_of_issue": "2018-11-02",
"address": "Plot 7, Sector 37, Gurugram, Haryana 122001",
"firm_type": "Private Limited Company",
"branches": 2,
"directors": [
"Ravi Kumar"
]
}
}Example data. The exact field list for your account comes with your sandbox documentation.
Use cases
Trade finance
Lenders verify exporters before packing credit or invoice finance.
Freight and customs brokers
Check the client's IEC before filing shipping bills.
Cross-border payments
Collection and payout businesses verify IEC for export receipts.
Questions about this API
Why is the IEC the same as the PAN?
Since 2018, DGFT issues the IEC using the business's PAN, so the two are identical for newer codes.
What makes an IEC suspended?
Most often the holder didn't update their IEC profile in the annual window. They can fix it on the DGFT portal.
Does it show past shipments?
No. It's the registration record only.
Can an individual have an IEC?
Yes, proprietors and individuals can. The firm type tells you which you're dealing with.
Try the IEC Verification API
Sandbox keys, the full field reference and a Postman collection, usually within a working day.