Skip to main content

Confirm Label Batch Item Boxes

POST 

/api/shipping-label-batches/:shippingLabelBatch/items/confirm-packages

Confirms the assumed boxes of a batch's items so they can be bought. A box is assumed when it was worked out from the products by the multi-unit rule rather than known: exactly one full case in the product's case size, identical units stacked along the product's shortest side, or the fallback box from the shipping label settings (see package on the item). A confirmation is for that exact size: if the item's box changes later (a product's size edited, the rule changed), it must be confirmed again.

Required scope: orders:write

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

Body (optional):

  • item_ids (array of item IDs, 1-500): the items to confirm. Omit to confirm every item in the batch whose box is assumed.
  • boxes (array, optional, at least 1 when sent): the box each item was shown with — [{item_id, length, width, height, dimension_unit (in|cm)}]. When sent, only the items it names are confirmed, and only while each item's box still has exactly that size; an item whose box changed since is skipped ("The box changed since it was shown …"). Without boxes, the box of the item's last rate is what gets confirmed.

Items whose box isn't assumed, that are bought or being bought, or whose box can't be worked out are listed in skipped with the reason (only when item_ids is sent). Returns the batch with its counters (counts.assumed_unconfirmed).

409 while a rate or buy job holds the batch.

Requires the orders write scope and the fulfillment_orders.index and fulfillment_orders.ship permissions.

Request​

Responses​

OK

Response Headers
    Content-Type