/api/orders/{id}/lines/{lineId}/packRecord the packed quantity for an order line
Records the packed quantity for one order line and updates the order's packing state. A shortfall marks the line as short and opens a back-order; packing the remaining quantity later cancels it. You can pack more than ordered, but you cannot pack lines on a draft order.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
The unique identifier of the order containing the line to pack.
The unique identifier of the order line to pack.
The packed quantity for the order line.
The quantity packed for this line. Must be zero or greater.
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 describing the problem.A 400 is returned for invalid input; a 401 when the request is unauthenticated; a 403 when the authenticated user lacks the required department membership or role; a 404 when a requested resource is not found; and a 500 for an unexpected server error. The id path parameter must identify an order, and the lineId path parameter must identify a line on that order. qtyPacked is required and must be zero or greater.