IEC verification API
Verify an Importer–Exporter Code with DGFT.
Overview
Returns the firm name, address, PAN and current status of an IEC, plus branch details where available.
POST/v1/verify/iec
Where it’s used
- Trade finance
- Cross-border logistics
- Export marketplaces
How the check runs
- You send the 10-character IEC.
- We query DGFT.
- You get the firm details and status.
Request
| Field | Description |
|---|---|
iec | 10-character IEC |
curl -X POST https://api.yetlix.com/v1/verify/iec \
-H "x-client-id: $YETLIX_CLIENT_ID" \
-H "x-client-secret: $YETLIX_CLIENT_SECRET" \
-H "Content-Type: application/json" \
-d '{"iec":"AABCY1234M"}'
{
"status": "success",
"request_id": "req_7Hq2kD91",
"data": {
"iec": "AABCY1234M",
"firm_name": "NORTHSTAR EXPORTS LLP",
"status": "Active",
"pan": "AABCY1234M"
}
}
Response fields
Inside the data object. The envelope (status, request_id, billable, timestamp) is the same for every API and is described in the docs.
| Field | Type | Meaning |
|---|---|---|
iec | string | Importer–Exporter Code (same as the firm’s PAN for most entities). |
firm_name | string | Registered firm name. |
status | enum | Active, Suspended or Cancelled. |
pan | string | Firm PAN. |
branches | array | Registered branch addresses. |
Outcomes and what to do
Every check can end in a handful of ways. Decide up front what your product does in each case, so nothing falls through to a support ticket.
Active
Can import/export.
Do this: Proceed.
Suspended / Cancelled
Can’t trade across borders.
Do this: Don’t onboard for trade services.
Sandbox test values
Send these values in iec with your sandbox key to get each result. Anything else returns INVALID_INPUT in sandbox.
| Value | Returns |
|---|---|
AABCY1234M | Active |
AAACZ0000Z | Suspended |
Best practices
- DGFT requires IEC holders to update details every year; an IEC not updated can be de-activated, so re-check before large shipments.
Compliance note. An IEC is required for most import and export activity under the Foreign Trade Policy.