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).
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:
- 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
- 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.