Skip to main content

List Purchase Order Duty Estimates

GET 

/api/purchase-orders/:purchase_order/duty-estimates

Returns the estimated customs duty for each product line of a purchase order (the order is treated as one customs entry), with a summary: rate date, destination country, who clears import, currencies and totals.

Required scope: purchase-orders:read

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Estimates are recalculated automatically when the order, its products, duty rates or customs jurisdictions change. When estimates are out of date, orders of up to 200 lines are recalculated before responding; larger orders return the stored values with stale: true and recalculation_queued: true.

Line status: estimated, overridden, seller_clears (DDP), de_minimis, missing_hs_code, missing_origin, missing_destination, no_rate. flags are informational (e.g. origin_assumed_from_supplier, missing_weight, transport_mode_unknown, no_incoterm_assumed_buyer). A line whose goods ship from inside the destination country (the supplier warehouse's country, else the supplier's own country, flagged ship_from_supplier_address) is a domestic purchase: status estimated, flag domestic, zero duty, no HS code needed, and never counted as flagged. Money is in your base currency unless suffixed _duty_currency; customs_value is in the duty currency.

Authentication: Requires Bearer token (scope purchase-orders:read, permission purchase_orders.show).

tenant_has_duty_rates is true when the account has set up at least one duty rate (archived included) — useful for deciding whether to show duty at all. duty_capitalised_at_receipt is true when estimated customs duty is added to inventory cost at receipt and trued up when the Customs Duty bill arrives (Landed Cost Estimates settings).

Each estimate line carries destination_warehouse ({id, name}) — the warehouse the destination country is read from, so a missing_destination line can link to the warehouse whose address needs a country.

line_tariffs lists, per product line, the HTS code and duty rate it is bought under. source: estimate reads the line's duty estimate. source: current (no estimate yet) reads the product's tariff code today (tariff_code_source: override, product or product_type, with product_type_name) and the rate that resolves now. duty_rate_percent excludes entry fees. estimated_duty is in tenant currency.

Request​

Responses​

OK

Response Headers
    Content-Type