customs_docs /v1/customs-docs $0.50 / verified compile ($0 on 422 mismatch)

HS 6-10 Digit Codes & Incoterms 2020 (EXW, FOB, CIF, DDP) Compliance Guide

Validate 6-10 digit Harmonized System codes, ISO-2 origin countries, and ICC Incoterms 2020 freight and insurance line alignment across EXW, FCA, FOB, CFR, CIF, CIP, DAP, and DDP.

Published Deterministic Rule

Commercial Invoices require 6-10 numeric HS/HTS digits, 2-letter ISO-2 country of origin codes, and Incoterms 2020 alignment (e.g., CIF/CIP require freight & insurance visibility; FOB/EXW exclude main ocean freight from seller obligation).

Reference Data & Threshold Table

Incoterm 2020Full NameSeller Pays Main FreightSeller Pays InsuranceSeller Clears Import Duty
EXW / FCAEx Works / Free CarrierNoNoNo
FOBFree On Board (Ocean)NoNoNo
CFRCost and Freight (Ocean)YesNoNo
CIF / CIPCost Insurance Freight / Carriage & Insurance PaidYesYesNo
DAPDelivered at PlaceYesNoNo
DDPDelivered Duty PaidYesNoYes

Worked Numerical Before / After Example

Scenario: Supplier issues a CIF Los Angeles invoice listing $12,000 goods subtotal with $0 freight and $0 insurance.

Before: Missing freight/insurance breakdown under CIF causes destination customs valuation queries and delays entry clearance.

After: POST /v1/customs-docs validates 6-10 digit HS formatting, ISO-2 origin codes, and Incoterm cost structure before generating the final HTML/JSON/CSV customs packet.

Run Your Own Numbers Free in 5 Seconds

Zero registration needed · Flat prepaid packs ($29 / $99 / $249) · Zero percentage split · 0% commission on treg hub · $0 on HTTP 422.

Open Try-Now Calculator Read Markdown

Deterministic API & MCP Example

curl -fsSL -X POST "https://ship.fastmesh.dev/v1/customs-docs" \
  -H "Content-Type: application/json" \
  -d '{
  "invoice_number": "INV-2026-CIF-02",
  "incoterm": "CIF",
  "currency": "USD",
  "freight_usd": 1450.0,
  "insurance_usd": 85.0,
  "shipper": {
    "name": "Ningbo Lighting Co.",
    "address": "12 Port Rd, Ningbo",
    "country_iso2": "CN"
  },
  "consignee": {
    "name": "Harbor Retail Supply",
    "address": "900 Pier Ave, Los Angeles, CA",
    "country_iso2": "US"
  },
  "line_items": [
    {
      "sku": "LED-TASK-09",
      "description": "Aluminum LED Desk Task Lamp 12V",
      "hs_code": "9405210000",
      "origin_country_iso2": "CN",
      "quantity": 500,
      "unit_price": 24.0,
      "net_weight_kg": 350.0,
      "gross_weight_kg": 395.0
    }
  ]
}'

Frequently Asked Questions

Why are 4-digit HS codes rejected?

International WCO standards require at least 6 digits for Harmonized System classification, and US/EU import entries typically require 8 to 10 digits (HTS/TARIC).

Why are vague descriptions like 'parts' or 'samples' blocked?

US CBP and EU ICS2 pre-arrival screening automatically flag vague goods descriptions ('parts', 'gift', 'goods', 'misc') for manual inspection holds.

Related Guides