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.
warehouses:writeGrant 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
- 200
- 401
- 403
- 404
- 409
- 422
- 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.
Conflict
Response Headers
Unprocessable Entity
Response Headers
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.