/api/packing/orders/{id}/linesAdd an un-ordered line to a packing order
Adds a line for an item the customer did not order but that the packer placed in the box. Supply itemId and a positive qty; the line is recorded as both ordered and packed, and only the new line is priced. The returned order includes the added line, which arrives complete and does not block the packing confirmation gate.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
The unique identifier of the order to add the packing line to.
The item and quantity for a line the packer placed in the box.
The SKU.
What went in the box. Recorded as BOTH the ordered and the packed quantity, so the line arrives done.
Whether the item is raw or baked. Defaults to baked when omitted.
Whether the item is loose or packed. Defaults to packed when omitted.
Whether the item is sliced or not sliced. Defaults to not_sliced when omitted.
The number of units per case.
Which shelf it came off (PK-1). Optional.
A note for the packing line.
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; a 409 for a conflict; and a 500 for an unexpected server error. The id path parameter must identify an order. itemId and qty are required, qty must be greater than zero, and rawBaked, loosePacked, and sliced must use their listed enum values when supplied.