Skip to main content

Set Pack Session Cartons

PUT 

/api/v2/pack/sessions/:packSession/cartons

Replace the session's carton plan. Every verified physical unit must be in exactly one carton. A box preset (box_id, see Packaging Boxes) fills any dimensions you leave out; a weight left blank is estimated from the products' weights plus the box's tare weight (weight_estimated: true). On success the session becomes packed_ready.

Required scope: warehouses:write

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

Authentication: Requires Bearer token. Scope: warehouses:write. Permission: packing.pack.

Body fields:

  • cartons (array, required, 1–20) — at most 20, the most one shipment can carry.
  • cartons.*.box_id (integer, optional) — a packaging box id.
  • cartons..length, cartons..width, cartons.*.height (number, optional, > 0, max 9999).
  • cartons.*.dimension_unit (optional) — in or cm.
  • cartons.*.weight (number, optional, > 0, max 99999).
  • cartons.*.weight_unit (optional) — lb, kg, oz or g.
  • cartons.*.lines (array, required, min 1) — what is in the carton.
  • cartons..lines..fulfillment_order_line_id (integer, required).
  • cartons..lines..quantity (number, required, > 0).

Refused with 422 while items are still to verify, when units are left out of every carton, or when more units are placed than the order has. 409 when the order changed since it was verified (re-check the counts, then send the cartons again).

A new carton plan clears the last rate quote, so rates must be fetched again before buying a label. Refused with 409 while the order is being finished on a station.

Request​

Responses​

OK

Response Headers
    Content-Type