> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Trade

> A guide to the trade endpoints: tariffs, denied party screening, landed cost, location risk, import tax, customs documents and tariff impact.

The trade endpoints answer one question each. All of them take an API key with the `read` scope. This page says what each returns, with one sample; every field is in the API reference.

| Method | Path | What it answers |
| - | - | - |
| `POST` | `/v1/tariff_checks` | The duty on a product from an origin into a destination |
| `POST` | `/v1/denied_party_screenings` | Whether a person or company is on a sanctions or denied-party list |
| `POST` | `/v1/landed_costs` | The total cost to land a shipment |
| `POST` | `/v1/location_risks` | The trade compliance risk of a country |
| `POST` | `/v1/import_taxes` | Import VAT or GST for a country, and the VAT on a shipment |
| `POST` | `/v1/customs_documents` | A commercial invoice, a packing list or both |
| `GET` | `/v1/trade/...` | Your tariff exposure, and trade reference data |

## Tariff check

`POST /v1/tariff_checks` calculates import tariffs into the US, the UK or any EU member state, resolves an HS code from a product description, checks FTA eligibility with **rules of origin**, and reports import restrictions, all in a single call. The `source` block of the answer names the authority behind the rates.

| Field | Type | Required | Description |
| - | - | - | - |
| `hs_code` | string | conditional | 6 to 10 digit HS / tariff code (dots allowed). Required if `item_description` is not provided. |
| `item_description` | string | conditional | Free-text product description, resolved to a code in the destination's nomenclature. |
| `origin_country` | string | yes | ISO 3166-1 alpha-2 country code of the exporting country. |
| `destination_country` | string | no | `US` (default), `GB` (or `UK`), or any EU member state code (`DE`, `FR`, `NL`...). |
| `check_date` | string | no | ISO 8601 date (`YYYY-MM-DD`). Defaults to today. |

The answer carries the validated or resolved 10-digit tariff line (`hs_code`) and its description; the `base_rate` (MFN duty); `additional_duties` (surcharge duties, each with its legal reference); the combined `effective_rate`, before and after any FTA preference; `trade_agreement` with its rules of origin when one applies; import restrictions (`cbp_restrictions` for the US, `import_restrictions` for GB and the EU); `tariff_rate_quota`; matching anti-dumping and countervailing duty orders (`adcvd_orders`); for GB, the import `vat` rate of the line; and a `confidence_score` (0 to 1) for the HS code resolution. When you sent `item_description`, `hs_classification_source` says how the code was resolved.

```bash theme={null}
curl -X POST https://api.insightchain.ai/v1/tariff_checks \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "hs_code": "8471.30.0100",
    "origin_country": "CN",
    "destination_country": "US",
    "check_date": "2026-02-26"
  }'
```

Response: `200 OK` (no FTA).

```json theme={null}
{
  "hs_code": "8471.30.0100",
  "description": "Portable automatic data processing machines, weighing not more than 10 kg...",
  "origin": "CN",
  "destination": "US",
  "base_rate": {
    "type": "MFN Duty",
    "rate": "Free",
    "rate_percent": 0,
    "source": "…",
    "source_url": "https://…"
  },
  "additional_duties": [
    {
      "type": "Section 301 Tariff",
      "rate": "25.0%",
      "rate_percent": 25,
      "source": "…",
      "source_url": "https://…"
    }
  ],
  "effective_rate": "25.0%",
  "effective_rate_mfn": "25.0%",
  "effective_rate_preferential": null,
  "trade_agreement": null,
  "cbp_restrictions": {
    "prohibited": false,
    "column2_prohibited": false,
    "restrictions": [],
    "notes": []
  },
  "tariff_rate_quota": null,
  "confidence_score": 0.95,
  "check_date": "2026-02-26"
}
```

With a product description and an origin that has a trade agreement with the destination, the answer adds the preferential rate and the rules of origin:

```bash theme={null}
curl -X POST https://api.insightchain.ai/v1/tariff_checks \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "item_description": "Lithium-ion battery pack for electric vehicles, 400V 75kWh",
    "origin_country": "MX",
    "destination_country": "US"
  }'
```

Response: `200 OK` (abridged).

```json theme={null}
{
  "hs_code": "8507.60.0020",
  "description": "Lithium-ion accumulators",
  "origin": "MX",
  "destination": "US",
  "base_rate": { "type": "MFN Duty", "rate": "3.4%", "rate_percent": 3.4 },
  "effective_rate": "3.4%",
  "effective_rate_preferential": "Free",
  "trade_agreement": {
    "agreement": "United States-Mexico-Canada Agreement",
    "agreement_code": "USMCA",
    "preferential_rate": "Free",
    "note": "Preferential rate may apply under USMCA...",
    "rules_of_origin": [{
      "rule_type": "regional_value_content",
      "rule_description": "RVC requirement for lithium-ion batteries",
      "rvc_threshold": 75,
      "rvc_method": "net_cost",
      "tariff_shift_rule": null,
      "de_minimis_percent": 10
    }]
  },
  "confidence_score": 0.88,
  "check_date": "2026-03-01"
}
```

## Denied party screening

`POST /v1/denied_party_screenings` screens a person or a company against official sanctions and denied-party lists of the US, the EU, the UK and the UN. It returns `CLEAR`, `REVIEW` or `BLOCK` with the matches behind it. Every match carries `source_list` and `source_list_code`, the list it is on.

| Field | Type | Required | Description |
| - | - | - | - |
| `first_name` | string | conditional | First name of the person. Required with `last_name` if `company_name` is not provided. |
| `last_name` | string | conditional | Last name of the person. Required with `first_name` if `company_name` is not provided. |
| `company_name` | string | conditional | Company or entity name. Required if `first_name` and `last_name` are not provided. |
| `country_code` | string | no | ISO 3166-1 alpha-2 country code. Improves match accuracy. |
| `locality` | string | no | City, town or state for location-based matching. |
| `address_line1` | string | no | Street address for additional location matching. |

| Action | Best match score | Meaning |
| - | - | - |
| `BLOCK` | 0.85 or more | High-confidence match; the transaction should be blocked |
| `REVIEW` | 0.65 or more | Potential match; manual review recommended. The answer includes a second opinion on the matches |
| `CLEAR` | below 0.65 | No significant matches found |

The answer carries `action`, `match_count`, `best_score` (0 to 1) and `matches`, each with the denied party (name, aliases, country, source list, programs) and its scores. For a `REVIEW`, `ai_analysis` (text) and `ai_opinion` (fields: per match `same_entity`, `confidence` and `reasoning`, plus a `recommendation` of `false_positive`, `escalate` or `proceed_with_caution`) give a second opinion; both are `null` for `CLEAR` and `BLOCK`.

```bash theme={null}
curl -X POST https://api.insightchain.ai/v1/denied_party_screenings \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "company_name": "Example Trading Co",
    "country_code": "CN"
  }'
```

Response: `200 OK` (`BLOCK`).

```json theme={null}
{
  "screening_id": "a1b2c3d4-...",
  "action": "BLOCK",
  "match_count": 3,
  "best_score": 0.95,
  "matches": [{
    "denied_party": {
      "name": "EXAMPLE TRADING CO., LTD.",
      "entity_type": "Entity",
      "country": "CN",
      "source_list": "Entity List (EL)",
      "programs": ["Entity List"]
    },
    "scores": {
      "name_score": 0.92,
      "country_match": "EXACT_MATCH",
      "overall_score": 0.95
    }
  }],
  "ai_analysis": null,
  "ai_opinion": null,
  "duration_ms": 142
}
```

To screen a person, send `first_name` and `last_name` in place of `company_name`.

## Landed cost

`POST /v1/landed_costs` calculates the total landed cost of importing goods into the US, GB or an EU member state. It determines the HS code and the duty rate for you, then adds the CIF value, customs fees and, for a GB or EU destination, import VAT. For a US destination the fees are the US customs fees (MPF, HMF), and the Section 321 de minimis rules apply (suspended for all countries since 29 August 2025). Provide an HS code, an item description, or both.

| Field | Type | Required | Description |
| - | - | - | - |
| `hs_code` | string | conditional | HTS code. Required if `item_description` is not provided. |
| `item_description` | string | conditional | Free-text product description. Used to resolve the HS code if it is not provided. |
| `origin_country` | string | yes | ISO 3166-1 alpha-2 country code. |
| `destination_country` | string | no | `US` (default), `GB`, or an EU member state. |
| `goods_value` | number | yes | FOB value of goods in USD. |
| `freight_cost` | number | no | Freight or shipping cost in USD. Defaults to 0. |
| `insurance_cost` | number | no | Insurance cost in USD. Defaults to 0. |
| `quantity` | integer | no | Number of units, 1 or more. Defaults to 1. Used for per-unit cost. |
| `duty_rate_percent` | number | conditional | Your own duty rate in percent, 0 or more (12.5 means 12.5%). Replaces the looked-up rate; any other value is a 400. Required if your organization doesn't have Tariff Lookup. |

The answer carries `cost_breakdown` (CIF value, duty rate and amount, AD/CVD duty, itemised fees and `import_vat`, which is `null` when no import VAT applies), `total_landed_cost` (CIF, duty, AD/CVD duty, fees and import VAT), `per_unit_landed_cost`, the `currency` of the amounts, and `tariff_source`, which says where the duty rate came from and carries a `rate_warning` when the looked-up rate is estimated or unknown. `de_minimis_applied` is always false for a US landed cost today, and `de_minimis_note` says why a shipment of \$800 or less still pays duty and fees.

The duty amount is the percent-of-value part of the rate. A per-unit duty (by weight, volume or count) is not included: it is named in `tariff_source.excluded_specific_duty` with a `rate_warning`, and you can send `duty_rate_percent` with the full ad valorem equivalent to include it.

```bash theme={null}
curl -X POST https://api.insightchain.ai/v1/landed_costs \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "hs_code": "8471.30.0100",
    "origin_country": "CN",
    "goods_value": 50000,
    "freight_cost": 2500,
    "insurance_cost": 500,
    "quantity": 10
  }'
```

Response: `200 OK`.

```json theme={null}
{
  "request_id": "f7g8h9i0-...",
  "hs_code": "8471.30.0100",
  "de_minimis_applied": false,
  "quantity": 10,
  "cost_breakdown": {
    "goods_value": 50000,
    "freight_cost": 2500,
    "insurance_cost": 500,
    "cif_value": 53000,
    "duty_rate_percent": 25,
    "duty_amount": 13250,
    "fees": {
      "MPF": { "fee_name": "Merchandise Processing Fee", "amount": 183.59 },
      "HMF": { "fee_name": "Harbor Maintenance Fee", "amount": 66.25 }
    },
    "total_fees": 249.84
  },
  "total_landed_cost": 66499.84,
  "per_unit_landed_cost": 6649.98,
  "tariff_source": {
    "effective_rate_display": "25.0%",
    "duty_rate_source": "tariff_lookup"
  },
  "duration_ms": 320
}
```

An error about the duty rate names the request field to send or fix in `field`:

| Status | Meaning |
| - | - |
| 400 | Missing or invalid parameters. An invalid `duty_rate_percent` carries `field: "duty_rate_percent"`. |
| 403 | Your organization doesn't have Tariff Lookup and no `duty_rate_percent` was sent. Carries `field: "duty_rate_percent"`: send your own rate. |
| 422 | The duty rate couldn't be determined (see `rate_status`), or the rate is per-unit only. Carries `field: "duty_rate_percent"`: send your own rate or try again later. |

## Location risk

`POST /v1/location_risks` assesses country-level trade compliance risk. It returns the sanctions status, the embargo type, the applicable sanctions programs, and the regulatory context: FATF grey or blacklist status, corruption-perception tier and export-control group. Every risk factor is **explained in plain language**, so your compliance team knows why a country was flagged. The only request field is `country_code` (ISO 3166-1 alpha-2, required).

The level is the most severe one that applies, and `risk_factors` lists each fact that set it.

| Risk level | The country | `recommended_action` |
| - | - | - |
| `BLOCKED` | Is under a comprehensive embargo, or under trade restrictions in so many sectors that they are treated as one. Transactions are likely prohibited | `BLOCK` |
| `CRITICAL` | Is not embargoed, but is on the international money-laundering blacklist (`fatf_status` is `blacklist`). Expect banks to refuse or delay payments; get compliance sign-off first | `REVIEW` |
| `HIGH` | Has trade restricted in some sectors (`embargo_type` is `partial`), is under a UN arms embargo, or is under a do-not-travel advisory (armed conflict, a coup, collapse of order). Enhanced due diligence on the goods, the parties and the route | `REVIEW` |
| `ELEVATED` | Has sanctions that name people, entities or arms and not the country's trade as a whole (`embargo_type` is `targeted`), is on the money-laundering grey list (`fatf_status` is `greylist`), or is in the lowest corruption tier (`cpi_tier` is `very_low`). Screen the parties you deal with | `REVIEW` |
| `MEDIUM` | Has no sanctions program, but is in the second-lowest corruption tier (`cpi_tier` is `low`) or under a reconsider-travel advisory. Check who you are paying and plan for disruption | `REVIEW` |
| `LOW` | Has none of the above. Standard compliance procedures apply | `PROCEED` |
| `UNKNOWN` | Has no risk profile. Nothing says it is safe, so this is not the same as low risk. Only `POST /v1/location_risks` answers it; `GET /v1/trade/country_risks` lists only countries that have a profile | `REVIEW` |

```bash theme={null}
curl -X POST https://api.insightchain.ai/v1/location_risks \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "country_code": "IR"
  }'
```

Response: `200 OK` (`BLOCKED`).

```json theme={null}
{
  "request_id": "c3d4e5f6-...",
  "country_code": "IR",
  "country_name": "Iran",
  "risk_level": "BLOCKED",
  "sanctioned": true,
  "embargo_type": "comprehensive",
  "sanctions_programs": [
    { "name": "OFAC Iran Sanctions", "source_url": "https://…" },
    { "name": "IRAN-TRA", "source_url": "https://…" },
    { "name": "IFSR", "source_url": null },
    { "name": "ISA", "source_url": null }
  ],
  "risk_factors": [
    "OFAC comprehensively sanctioned country",
    "CAATSA Section 231 target",
    "FATF Blacklist: high-risk jurisdiction",
    "EAR Group E:1, state sponsor of terrorism"
  ],
  "recommended_action": "BLOCK",
  "regulatory_context": {
    "fatf_status": "blacklist",
    "cpi_tier": "very_low",
    "ear_group": "E:1"
  },
  "duration_ms": 45
}
```

`recommended_action` is `BLOCK`, `REVIEW` or `PROCEED`.

## Import tax and customs documents

Two more calculators. Both take an API key with the `read` scope. Import tax needs no module; customs documents need the Customs Documents module. A per-address flood limit (30 a minute) applies before authentication.

`POST /v1/import_taxes` returns the import VAT or GST rules for a country, and the VAT on a shipment when `goods_value` is sent. `GET /v1/import_taxes` answers the same with query parameters.

```bash theme={null}
curl -X POST "https://api.insightchain.ai/v1/import_taxes" \
  -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" \
  -d '{ "country_code": "DE", "goods_value": 10000, "duty_amount": 800 }'

# → { "country_code": "DE", "standard_vat_rate": 19, "vat_on_duty": true, …,
#     "vat_calculation": { "taxable_base": 10800, "vat_amount": 2052, "total_with_vat": 12852, … } }
```

`POST /v1/customs_documents` returns a commercial invoice, a packing list or both, computed from the shipment you send.

```bash theme={null}
curl -X POST "https://api.insightchain.ai/v1/customs_documents" \
  -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" \
  -d '{ "document_type": "commercial_invoice",
        "shipper":   { "name": "Acme Leather Co", "country": "VN" },
        "consignee": { "name": "Example Retail Inc", "country": "US" },
        "line_items": [ { "description": "Leather tote", "hs_code": "4202.21", "quantity": 120, "unit_value": 38.5 } ] }'
```

## Tariff impact and trade data

Your tariff exposure and the trade reference data behind it. All routes are `GET` under `/v1/trade` and take an API key with the `read` scope. Tariff impact is your organization's own figures; duty orders, country risk, tariff actions and announcements are platform reference data.

| Path | What it returns |
| - | - |
| `/v1/trade/tariff_impact/rollups` | Your tariff impact rolled up by summary, action, item or supplier |
| `/v1/trade/tariff_impact/history` | Daily tariff impact totals |
| `/v1/trade/tariff_impact/briefs` | Written tariff impact briefs |
| `/v1/trade/tariff_actions` | Tariff actions in force or announced |
| `/v1/trade/duty_orders` | Anti-dumping and countervailing duty orders |
| `/v1/trade/country_risks` | Country risk profiles |
| `/v1/trade/announcements` | Trade announcements |

Lists take `limit` (1 to 200, default 50) and return the list object: pass `next_cursor` back as `cursor` with the same filters until `has_more` is false. See [Conventions](/docs/conventions.md#lists-and-cursors).

```bash theme={null}
curl "https://api.insightchain.ai/v1/trade/tariff_impact/rollups?kind=action&limit=2" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```json theme={null}
{ "request_id": "…", "filters": { "kind": "action", "status": null },
  "data": [ { "kind": "action", "key": "…", "status": "in_force", "label": "Section 301 (China)",
              "exposure": 48210.5, "open_po_value": 192842, "open_po_count": 14, "rate_percent": 25, … } ],
  "has_more": true, "next_cursor": "eyJ2IjoxLCJvIjoyLCJmIjoi…" }
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.