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.
orders:readGrant 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
- 200
- 401
- 403
- 404
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.