Complete Pack Session
POST/api/v2/pack/sessions/:packSession/complete
Finish packing the order. The session must be packed_ready. Choose how it leaves the warehouse with mode:
buy_label— buy the Shippo label for the quotedrate_id(one label per carton). Creates the fulfillment with its tracking numbers.ship_manual— ship it without a label purchase; creates the fulfillment. Only for orders with no shipping provider.mark_packed— record that it is packed and leave shipping to the order's own provider (no fulfillment is created here).ship_optionson the session says which modes apply and which is recommended. In every mode the order is marked packed, the cartons are kept with the fulfillment, and the packing is written to the order's activity log.
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:
- mode (string, required) — buy_label, ship_manual or mark_packed.
- rate_id (string, max 64) — required when mode is buy_label: the rate's
object_idfrom Get Pack Session Shipping Rates. - shipment_object_id (string, optional, max 64) — the quote's
shipment_object_id. - label_file_type (string, optional) — PDF_4x6, PDF, PDF_A4, PDF_A5, PDF_A6, PNG or ZPLII.
- rate (object, optional) — the chosen rate as quoted, kept as a snapshot on the label.
- print_packing_slip (boolean, optional, default true) — echoed back so the caller knows to print
packing_slip_url.
Response data: session, fulfillment {id, number} (null for mark_packed), label (the first label) and labels[] (id, url, format, tracking_number), packing_slip_url, print_packing_slip.
Safe to retry: a second completion gets 409 Already packed by …. 409 also when another request is finishing the same order, when the order was cancelled or put on hold while packing (the session is abandoned and nothing ships), or when the order's lines changed (the session goes back to verifying). A failed label purchase commits nothing and leaves the session ready to retry: 422 {message, messages[]}; 409 when the label was already bought; 502 when Shippo cannot be reached.
Only the modes the session's ship options offer are accepted (buy_label for Shippo-eligible orders, ship_manual for orders with no provider, mark_packed always).
buy_label: needs a rate quote for the current cartons (409 "Rates are out of date — get rates again." otherwise), and every line verified in full, because the label ships everything the order still has to ship (422 otherwise; ship manually or mark packed instead). Scanned serials ship with the label. If Shippo is still processing the purchase, or the shipment is not recorded yet, the session stays ready and the response is 409 with label_processing: true — finish again in a moment; nothing is charged twice. A retry after a label was already bought for this session finishes the session from that label.
ship_manual: ships the verified units (non-physical lines too, outside the cartons) from the bins they were picked from, with the scanned serials. Refused with 409 while another station is finishing the same order.
Request
Responses
- 200
- 401
- 403
- 404
- 409
- 422
- 429
- 502
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.
Bad Gateway