Skip to main content
POST
Bulk landed-cost calculation (up to 500 rows).

Authorizations

Authorization
string
header
required

API key issued from the LandedFees dashboard under Settings > API keys. Format: sk_live_... (production) or sk_test_... (sandbox). Pass in the Authorization: Bearer <key> header.

Headers

Idempotency-Key
string

Client-generated unique string (recommended UUID v4). Repeating the same key within 24 hours returns the cached response for the original request body. Different bodies with the same key return HTTP 409.

Required string length: 8 - 128
Example:

"e4c1d2a0-8f6b-4c9d-a123-2f8b7c5e9d10"

Body

application/json
destination_country
string
required
Required string length: 2
currency
string
required
Required string length: 3
incoterm
enum<string>
required
Available options:
EXW,
FCA,
CPT,
CIP,
DAP,
DPU,
DDP,
FAS,
FOB,
CFR,
CIF
transport_mode
enum<string>
required
Available options:
ocean,
air,
truck,
rail,
express
rows
object[]
required
Required array length: 1 - 500 elements
freight
number
default:0
Required range: x >= 0
insurance
number
default:0
Required range: x >= 0
eu_member_state
string
Required string length: 2
br_state
string
Required string length: 2
ca_province
string
Required string length: 2
usmca_qualifying
boolean
fta_id
string
calculation_date
string<date>

Response

Bulk calculation completed.

id
string<uuid> | null
results
object[]
errors
object[]
aggregate
object