Skip to main content
POST

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
hs_code
string
required

HS/HTS harmonized system code

Example:

"6109100040"

origin_country
string
required

2-letter origin country code

Required string length: 2
Example:

"CN"

destination_country
string
required

2-letter destination country code

Required string length: 2
Example:

"US"

declared_value
number
required

Declared value in origin currency

Required range: x >= 0
Example:

1000

weight
number

Weight of goods (optional, but if provided, weight_unit is required for weight-based fee calculations)

Required range: x >= 0
Example:

10.5

weight_unit
enum<string>

Unit of weight (required if weight is provided)

Available options:
kg,
lb
Example:

"kg"

volume
number

Volume of goods (required for volume-based specific duties like alcohol/spirits)

Required range: x >= 0
Example:

9

volume_unit
enum<string>

Unit of volume (required if volume is provided).

  • liter - Standard liters
  • ml - Milliliters (converted to liters)
  • hl - Hectoliters (converted to liters)
  • gallon - US gallons (converted to liters)
  • proof_liter - Proof liters for spirits (not converted, used directly for alcohol duty calculations)
Available options:
liter,
ml,
hl,
gallon,
proof_liter
Example:

"liter"

measurement
object

Unified measurement object - alternative to separate weight/volume fields. The unit determines whether it's treated as weight or volume. Weight units: kg, kilogram, lb, lbs, pound, g, gram, oz, ounce, t, ton, tonne, carat Volume units: l, liter, litre, liters, ml, milliliter, gal, gallon, hl, hectoliter, proof_liters, bbl, barrel, m3

shipping_cost
number

Shipping cost

Required range: x >= 0
Example:

50

insurance_cost
number

Insurance cost

Required range: x >= 0
Example:

10

origin_country_currency
string

3-letter currency code for origin

Required string length: 3
Example:

"CNY"

destination_country_currency
string

3-letter currency code for destination

Required string length: 3
Example:

"USD"

quantity
integer
default:1

Quantity of items. For count-based specific duties, you may need to adjust based on the unit of measure:

  • For per-item duties: provide actual count
  • For per-dozen duties: provide actual count (will be divided by 12)
  • For per-gross duties: provide actual count (will be divided by 144, as 1 gross = 12 dozen = 144 units)
Required range: x >= 1
transport_mode
enum<string>
default:sea

Mode of transport

Available options:
sea,
air,
road,
rail
shipping_terms
enum<string>
default:FOB

Shipping terms

Available options:
FOB,
CIF,
EXW,
DDP
entry_date
string<date>

Entry date for historical calculations

trade_agreement
string

Trade agreement or country group code to apply special tariff rates. When provided, the system will look for additional tariffs where origin_area_id matches this value. Examples: USMCA, GSP, CN_HK, ASEAN, EU

Example:

"USMCA"

components
object[]

Product components for derivative products (Section 232 metals, timepieces, etc.). Use this to specify material content, origin, and characteristics of product components.

Example:

Response

Successful calculation

success
boolean
Example:

true

request_id
string<uuid>
Example:

"c6f398bb-1dad-40e8-a991-a22a180ad842"

calculation_type
enum<string>
Available options:
US,
GB,
EU
hs_code
string
origin_country
string
destination_country
string
transport_mode
string
Example:

"air"

shipping_terms
string
Example:

"FOB"

quantity
number
Example:

1

weight
number

Weight of goods (if provided)

Example:

10.5

weight_unit
string

Unit of weight (if weight is provided)

Example:

"kg"

volume
number

Volume of goods (if provided)

Example:

9

volume_unit
string

Unit of volume (if volume is provided)

Example:

"liter"

currencies
object
exemptions
object
values
object
trade_agreement
string

Trade agreement code applied (if passed in request and country is a member)

Example:

"AU"

estimated_duties
object

Duty calculation results. Structure depends on AUTOMATIC_PREF_RATE environment setting:

  • Default (AUTOMATIC_PREF_RATE=false): Flat structure with tariffs array directly
  • AUTOMATIC_PREF_RATE=true: Nested normal_tariff and preferential_tariff objects
fees
object

Database-driven fees structure with codes and amounts

additional_tariff_measures
object[]

Additional regulatory requirements (e.g., PGA flags for US imports)

vat
object

VAT information (EU and GB only)

totals
object