Skip to main content

Get Label Batch Customs

GET 

/api/shipping-label-batches/:shippingLabelBatch/customs

Gets what a batch's international orders need for their customs declarations: the declaration in effect (contents type, if-undeliverable, incoterm, signer), every product in those orders with its HTS code and country of origin and where each came from (product, product_type = the product type's default, override = entered for this batch, or null = missing), and every order with its declared lines, customs value total in the order currency and what it is missing.

Required scope: orders:read

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

Query: item_ids[] (optional) — the batch items to include; default every international item without a bought label. Domestic items are never included.

Missing values are named field or field:product_id (e.g. hs_code:12, value:12, signer, itn, contents_explanation). An HTS code needs 6–10 digits; a country is a two-letter ISO code; a line priced at 0 on the order needs a customs value. US exports with one HTS code over $2,500 need an AES ITN (itn_required).

accounts lists the batch's label accounts with supports_customs; when any_account_supports_customs is false, none of them can buy an international label.

Authentication: Requires Bearer token with the orders scope and the fulfillment_orders.index permission.

Request​

Responses​

OK

Response Headers
    Content-Type