/api/packing/orders/{id}/confirmConfirm the order — the gate [Packaging]
The end of the night for one order. It refuses while any line is still undecided — that is the whole point of the screen: an order reaching shipping with a line nobody looked at is the exact failure the paper process has today. A short line does NOT block it; short is a decision.
On success: stamps who packed it and when, records the box count, releases the lock, and advances packing → shipping (displayed as Ready to ship). Only an order currently being packed can be confirmed.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Order id.
The box count (PK-8) — it drives the labels.
Required. Zero is allowed — some orders leave on an open rack with no box.
Order id.
Human-facing, ORD-YYMM-NNN.
Customer id.
The customer's type AT ORDER TIME — it may change later, and the order keeps what it was sold under.
The day the order was taken.
The day it ships — what production and packing group by (D-14).
Order-level note.
The standing order that generated this one (R6). Null for every hand-taken order. Note the source does NOT distinguish one: a generated order says phone, because the OrderSource enum was deliberately left untouched.
error string says what was wrong.A 400 is returned: Invalid input — the error string says what was wrong. A 401 is returned: Not authenticated. Sign in first (see the Auth tag). A 403 is returned: Authenticated, but not allowed — this endpoint requires a department membership or a role you do not have. A 404 is returned: Not found. A 409 is returned: Another packer has this order open. A 500 is returned: Unexpected server error.