Skip to main content

Open Pack Session

POST 

/api/v2/pack/sessions

Open the pack session for an order, or resume the one already open for it. Identify the order either by code — a scanned packing slip, sales order number, fulfillment order reference, tote code or pick list number — or by fulfillment_order_id. Returns 201 when a session was opened and 200 when an open one was resumed (two packers opening the same order get the same session).

Required scope: warehouses:write

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

When the code names several orders (for example a pick list or a sales order split into several fulfillment orders), nothing is opened: the response is {data: null, choices: [...], message} where each choice is a pack queue row whose refusal says why it cannot be packed here (null when it can), packable ones first. Open one of them by fulfillment_order_id.

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

Body fields:

  • code (string, max 255) — required without fulfillment_order_id.
  • fulfillment_order_id (integer) — required without code.
  • warehouse_id (integer, required) — the warehouse you are packing in.

Refused with 422 when the order ships from another warehouse or a 3PL, is cancelled, already shipped, already packed, on hold, or has nothing left to pack. 404 when nothing to pack matches the code.

A pack session is returned as: id, status (verifying, packed_ready, completed, abandoned), fulfillment_order (id, reference, sales_order_id, sales_order_number, customer_name, ship_by_date, status, tote_code, packed_at), warehouse, lines[] (id, fulfillment_order_line_id, product {id, sku, name, barcode, tracks_serials, image_url, weight, weight_unit}, description, is_physical, expected_quantity, verified_quantity, verified, serials[] scanned, picked_serials[] recorded when picking), complete (every line verified), cartons[], verify_override_reason, opened_by, completed_by, completed_mode, completed_at, sales_order_fulfillment {id, number, tracking_number}, ship_options (how the session can finish: buy_label, buy_label_reason, mark_packed, ship_manual, recommended, fulfillment_type; null once completed), created_at, updated_at. Lines that are not physical products (services, fees) start verified.

Errors: refusals are 422 {message}; a conflict with another packer or a change made to the order elsewhere is 409 {message}; an unknown code or session is 404 {message}. Each message is written to be shown to the packer as is.

Request​

Responses​

OK

Response Headers
    Content-Type