Skip to content

TradeImport Duty

tariff.duty

Calculate supported US HTSUS and EU TARIC duty components for one import line against pinned official data. Unresolved rates, evidence requirements and dates outside the snapshots return needs_review.

POSThttps://api.kanagu.dev/v1/tariff/duty
Price
$0.05 per line, on successful calls only
Authentication
API key required.
MCP
call_operation with operation: "tariff.duty" at https://api.kanagu.dev/mcp

Compliance coverage

Jurisdictions
Jurisdictions: US, EU
Standards
  • USITC Harmonized Tariff Schedule2026 HTS Revision 232026-11-10Source
  • European Commission TARIC monthly extractionNovember 2026, reference date 1 November2026-11-01Source
  • Executive Order 14389 ending certain IEEPA tariff actionsEO 14389, §22026-02-20Source
  • European Commission explanation for TARIC extractions9 June 20262026-06-09Source
  • Union Customs Code, preferential originRegulation (EU) No 952/2013, Article 642013-10-09Source
  • Temporary low-value consignment customs dutyCouncil Regulation (EU) 2026/382, Article 22026-02-11Source
Verification
Duty expressions and legal references are checked against the USITC HTS and European Commission TARIC exports and their published interpretation rules.
Last reviewed
2026-11-26
curl https://api.kanagu.dev/v1/tariff/duty \
  -H "Authorization: Bearer $KANAGU_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jurisdiction":"EU","code":"9504400000","origin":"JP","importDate":"2026-11-01","customsValue":"1200.00","euConsignment":"ordinary","euPreference":{"area":"JP","proofConfirmed":true}}'
const res = await fetch("https://api.kanagu.dev/v1/tariff/duty", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.KANAGU_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "jurisdiction": "EU",
    "code": "9504400000",
    "origin": "JP",
    "importDate": "2026-11-01",
    "customsValue": "1200.00",
    "euConsignment": "ordinary",
    "euPreference": {
      "area": "JP",
      "proofConfirmed": true
    }
  }),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();
curl https://api.kanagu.dev/mcp \
  -H "Authorization: Bearer $KANAGU_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"call_operation","arguments":{"operation":"tariff.duty","input":{"jurisdiction":"EU","code":"9504400000","origin":"JP","importDate":"2026-11-01","customsValue":"1200.00","euConsignment":"ordinary","euPreference":{"area":"JP","proofConfirmed":true}}}}}'
Request body
{
  "jurisdiction": "EU",
  "code": "9504400000",
  "origin": "JP",
  "importDate": "2026-11-01",
  "customsValue": "1200.00",
  "euConsignment": "ordinary",
  "euPreference": {
    "area": "JP",
    "proofConfirmed": true
  }
}

Request body

application/json

jurisdiction"US" | "EU"required
codestringrequired
8- or 10-digit HTSUS (US), or CN/TARIC (EU) goods code. Preserve leading zeros.
originstringrequired
Uppercase country or territory of origin. Use TARIC geography codes for EU. US accepts UK as an alias for GB.
importDatestring (date)required
Date of entry for consumption (US) or declaration acceptance (EU).
customsValuestringrequired
Line customs value in USD (US) or EUR (EU), as a decimal string.
quantityobject
quantity.valuestringrequired
quantity.unitstringrequired
Use the unit in the published duty rate, such as kg, hl, or each.
euPreferenceobject
TARIC geographical area of the preference claimed, for EU entries only.
euPreference.areastringrequired
euPreference.proofConfirmedbooleanrequired
The importer verified entitlement and holds the required proof of preferential origin.
euAdditionalCodestring
Verified TARIC additional code for an EU trade-defence measure, e.g. an exporter code.
euConsignment"ordinary" | "low_value_qualifying"
Use ordinary after ruling out special low-value treatment or low_value_qualifying for an eligible postal/IOSS consignment under Regulation (EU) 2026/382.

Response

200 · application/json

status"calculated" | "needs_review"required
jurisdiction"US" | "EU"required
codestringrequired
originstringrequired
importDatestring (date)required
currency"USD" | "EUR"required
totalDutystring | nullrequired
Combined duty when supported and resolved, in the output currency.
snapshotobjectrequired
snapshot.namestringrequired
snapshot.versionstringrequired
snapshot.datestring (date)required
snapshot.throughstring (date)required
snapshot.urlstring (uri)required
measuresarray of objectrequired
measures[].kind"base" | "preference" | "additional" | "anti_dumping" | "countervailing" | "quota" | "suspension" | "low_value"required
measures[].status"applied" | "alternative" | "conditional" | "not_applicable"required
measures[].goodsCodestringrequired
measures[].areastring
measures[].additionalCodestring
measures[].orderNumberstring
measures[].ratestringrequired
measures[].amountstring | nullrequired
Duty for this rate expressed in the output currency (a scenario amount for conditional/alternative measures).
measures[].sourceobjectrequired
measures[].source.rulestringrequired
measures[].source.urlstring (uri)required
findingsarray of objectrequired
findings[].codestringrequired
findings[].fieldstringrequired
findings[].expectedstringrequired
findings[].actualstringrequired
findings[].sourceobjectrequired
findings[].source.rulestringrequired
findings[].source.urlstring (uri)required

Try it

tariff.duty

$0.05/line

 

Response

Run the request to see the live response here.

Errors

Errors are JSON {"error":{"code","message"}}. An operation may add its own 400 codes; the message says what to fix.

StatusCode and meaning
400invalid_input

The body does not match the request schema. The message names each field.

400invalid_json

The body is missing or is not valid JSON.

400invalid_idempotency_key

Idempotency-Key must be 1–128 visible ASCII characters.

401invalid_api_key

The Bearer key is missing, malformed, invalid or inactive.

402free_allowance_exhausted

This month's free usage is used up and the account has no subscription. Subscribe from the dashboard, or wait for the next UTC month; Retry-After gives the seconds left.

404not_found

No operation at this path.

409idempotency_conflict

The Idempotency-Key was already used with a different body.

413payload_too_large

JSON bodies may be at most 64 KiB.

500internal_error

The call failed on our side. It is not billed; retry with the same Idempotency-Key.

JSON Schema

Request schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "jurisdiction": {
      "type": "string",
      "enum": [
        "US",
        "EU"
      ]
    },
    "code": {
      "type": "string",
      "pattern": "^(?:\\d{8}|\\d{10}|\\d{4}\\.\\d{2}\\.\\d{2}(?:\\.?\\d{2})?)$",
      "description": "8- or 10-digit HTSUS (US), or CN/TARIC (EU) goods code. Preserve leading zeros."
    },
    "origin": {
      "type": "string",
      "pattern": "^[A-Z]{2}$",
      "description": "Uppercase country or territory of origin. Use TARIC geography codes for EU. US accepts UK as an alias for GB."
    },
    "importDate": {
      "type": "string",
      "format": "date",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
      "description": "Date of entry for consumption (US) or declaration acceptance (EU)."
    },
    "customsValue": {
      "type": "string",
      "pattern": "^(?:0|[1-9]\\d{0,11})(?:\\.\\d{1,2})?$",
      "description": "Line customs value in USD (US) or EUR (EU), as a decimal string."
    },
    "quantity": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string",
          "pattern": "^(?:0|[1-9]\\d{0,11})(?:\\.\\d{1,6})?$"
        },
        "unit": {
          "type": "string",
          "pattern": "^[a-zA-Z][a-zA-Z0-9]{0,11}$",
          "description": "Use the unit in the published duty rate, such as kg, hl, or each."
        }
      },
      "required": [
        "value",
        "unit"
      ],
      "additionalProperties": false
    },
    "euPreference": {
      "description": "TARIC geographical area of the preference claimed, for EU entries only.",
      "type": "object",
      "properties": {
        "area": {
          "type": "string",
          "pattern": "^(?:[A-Z]{2}|\\d{4})$"
        },
        "proofConfirmed": {
          "type": "boolean",
          "description": "The importer verified entitlement and holds the required proof of preferential origin."
        }
      },
      "required": [
        "area",
        "proofConfirmed"
      ],
      "additionalProperties": false
    },
    "euAdditionalCode": {
      "description": "Verified TARIC additional code for an EU trade-defence measure, e.g. an exporter code.",
      "type": "string",
      "pattern": "^[A-Z0-9]{4}$"
    },
    "euConsignment": {
      "description": "Use ordinary after ruling out special low-value treatment or low_value_qualifying for an eligible postal/IOSS consignment under Regulation (EU) 2026/382.",
      "type": "string",
      "enum": [
        "ordinary",
        "low_value_qualifying"
      ]
    }
  },
  "required": [
    "jurisdiction",
    "code",
    "origin",
    "importDate",
    "customsValue"
  ],
  "additionalProperties": false,
  "examples": [
    {
      "jurisdiction": "EU",
      "code": "9504400000",
      "origin": "JP",
      "importDate": "2026-11-01",
      "customsValue": "1200.00",
      "euConsignment": "ordinary",
      "euPreference": {
        "area": "JP",
        "proofConfirmed": true
      }
    },
    {
      "jurisdiction": "US",
      "code": "6109.10.00.12",
      "origin": "CN",
      "importDate": "2026-11-10",
      "customsValue": "1200.00",
      "quantity": {
        "value": "100",
        "unit": "each"
      }
    }
  ]
}
Response schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "calculated",
        "needs_review"
      ]
    },
    "jurisdiction": {
      "type": "string",
      "enum": [
        "US",
        "EU"
      ]
    },
    "code": {
      "type": "string"
    },
    "origin": {
      "type": "string"
    },
    "importDate": {
      "type": "string",
      "format": "date",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
    },
    "currency": {
      "type": "string",
      "enum": [
        "USD",
        "EUR"
      ]
    },
    "totalDuty": {
      "description": "Combined duty when supported and resolved, in the output currency.",
      "type": [
        "string",
        "null"
      ]
    },
    "snapshot": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "version": {
          "type": "string"
        },
        "date": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "through": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "url": {
          "type": "string",
          "format": "uri"
        }
      },
      "required": [
        "name",
        "version",
        "date",
        "through",
        "url"
      ],
      "additionalProperties": false
    },
    "measures": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "base",
              "preference",
              "additional",
              "anti_dumping",
              "countervailing",
              "quota",
              "suspension",
              "low_value"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "applied",
              "alternative",
              "conditional",
              "not_applicable"
            ]
          },
          "goodsCode": {
            "type": "string"
          },
          "area": {
            "type": "string"
          },
          "additionalCode": {
            "type": "string"
          },
          "orderNumber": {
            "type": "string"
          },
          "rate": {
            "type": "string"
          },
          "amount": {
            "description": "Duty for this rate expressed in the output currency (a scenario amount for conditional/alternative measures).",
            "type": [
              "string",
              "null"
            ]
          },
          "source": {
            "type": "object",
            "properties": {
              "rule": {
                "type": "string"
              },
              "url": {
                "type": "string",
                "format": "uri"
              }
            },
            "required": [
              "rule",
              "url"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "kind",
          "status",
          "goodsCode",
          "rate",
          "amount",
          "source"
        ],
        "additionalProperties": false
      }
    },
    "findings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "field": {
            "type": "string"
          },
          "expected": {
            "type": "string"
          },
          "actual": {
            "type": "string"
          },
          "source": {
            "type": "object",
            "properties": {
              "rule": {
                "type": "string"
              },
              "url": {
                "type": "string",
                "format": "uri"
              }
            },
            "required": [
              "rule",
              "url"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "code",
          "field",
          "expected",
          "actual",
          "source"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "status",
    "jurisdiction",
    "code",
    "origin",
    "importDate",
    "currency",
    "totalDuty",
    "snapshot",
    "measures",
    "findings"
  ],
  "additionalProperties": false
}