/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.
The box count (PK-8) — it drives the labels.
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.