Skip to content

Create a shipment

POST
/api/shipments/

Submit a cross-border shipment for duty and fee calculation. Returns the full fee breakdown, resolved HS codes, and a payment link for the consignee.

ShipmentCreate
object
brand_id
Any of:
string
currency
required
Currency

ISO 4217 currency code for the shipment

string
items
required
Items

List of items in the shipment. At least one item is required.

Array<object>
ShipmentItemCreate
object
description
required
Description

Product description for customs classification

string
declared_value
required
Any of:
number
currency
required
Currency

ISO 4217 currency code for the item value

string
country_of_origin
required
Country Of Origin

ISO 3166-1 alpha-2 country code where the item was manufactured

string
quantity
Quantity

Number of units of this item

integer
default: 1
hs_code
Any of:
string
total_value
Any of:
number
reference
Any of:
string
consignee_name
required
Consignee Name

Full name of the consignee (recipient)

string
consignee_email
Any of:
string
consignee_phone
Any of:
string
consignee_address1
Any of:
string
consignee_address2
Any of:
string
consignee_city
required
Consignee City

Consignee city

string
consignee_state
Any of:
string
consignee_zip
required
Consignee Zip

Consignee postal / ZIP code

string
consignee_country
required
Consignee Country

ISO 3166-1 alpha-2 destination country code

string
sender_name
required
Sender Name

Full name of the sender

string
sender_address1
Any of:
string
sender_address2
Any of:
string
sender_city
required
Sender City

Sender city

string
sender_state
Any of:
string
sender_zip
required
Sender Zip

Sender postal / ZIP code

string
sender_country
required
Sender Country

ISO 3166-1 alpha-2 origin country code

string

Successful Response

ShipmentResponse
object
id
required
Id

Unique shipment identifier

string format: uuid
brand_id
required
Brand Id

Brand that owns this shipment

string format: uuid
brand_slug
Any of:
string
reference
required
Any of:
string
is_test
required
Is Test

Whether this shipment was created with a test API key

boolean
currency
required
Currency

Shipment currency (ISO 4217)

string
total_duties
required
Total Duties

Total duty amount across all items

string
/^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$/
total_taxes
required
Total Taxes

Total tax amount across all items

string
/^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$/
total_additional_fees
required
Total Additional Fees

Total additional fees

string
/^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$/
total_amount
required
Total Amount

Grand total: duties + taxes + additional fees

string
/^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$/
payment_status
required
PaymentStatus

Current payment status (pending, paid, expired, etc.)

string
Allowed values: PENDING PAID FAILED ABANDONED
created
required
Created

Shipment creation timestamp (UTC)

string format: date-time
items
required
Items

Line items with duty/tax breakdown

Array<object>
ShipmentItemResponse
object
description
required
Any of:
string
description_resolved
required
Any of:
string
hs_code
required
Any of:
string
hs_code_resolved
required
Any of:
string
hs_code_resolved_import
required
Any of:
string
hs_code_resolved_export
required
Any of:
string
country_of_origin
required
Country Of Origin

Country of origin (ISO 3166-1 alpha-2)

string
declared_value
required
Declared Value

Declared value per unit

string
/^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$/
currency
required
Currency

Currency code for the item value

string
quantity
required
Quantity

Number of units

integer
total_value
required
Any of:
string
/^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$/
duty_amount
required
Duty Amount

Calculated duty amount for this item

string
/^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$/
tax_amount
required
Tax Amount

Calculated tax amount for this item

string
/^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$/
fees
required
Fees

Additional fees applied to the shipment

Array<object>
ShipmentFeeResponse
object
fee_type
required
Fee Type

Fee type identifier

string
display_name
required
Display Name

Human-readable fee name shown to the consignee

string
amount
required
Amount

Fee amount in the shipment currency

string
/^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$/
original_amount
required
Original Amount

Fee amount in its original currency before conversion

string
/^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$/
original_currency
required
Original Currency

Original currency of the fee before conversion

string
is_visible
required
Is Visible

Whether this fee is shown to the consignee on the payment page

boolean
payment_link
required
Any of:
string

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string