Skip to main content

Record Pack Session Scans

POST 

/api/v2/pack/sessions/:packSession/scans

Verify items by scanning them. Send a batch of scans; they are applied in order. Each scan adds to the matching line or is refused and changes nothing. The order's lines are re-read first, so a change made to the order elsewhere is picked up (order_changed: true, with expected quantities updated).

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:

  • scans (array, required, 1–200 items)
  • scans.*.code (string, required, max 255) — the product barcode or SKU.
  • scans.*.quantity (number, optional, > 0, max 100000) — units the scan counts for. Default 1.
  • scans.*.serial (string, optional, max 255) — the unit's serial number, for serial-tracked products.

Response data: session (the pack session), results[] (one per scan; a not_on_order result also carries product {sku, name} when the code matches an active product, else null): code, result, fulfillment_order_line_id, message) and order_changed. result is ok (counted), over (more than the order needs), not_on_order, ambiguous (the code matches more than one item — scan the SKU), serial_required or serial_invalid. Only ok changes a count.

Returns 409 when the session was completed or abandoned.

Request​

Responses​

OK

Response Headers
    Content-Type