GET
/api/orders/{id}Get an order with its lines
Retrieves an order and its lines by order identifier. Use this operation when you need the order's recorded details, including its status, customer information, dates, and line items.
idstringrequired
The unique identifier of the order to retrieve.
200Returns the order, including its customer and order details, status, dates, and lines.
idstringoptional
Order id.
orderNumberstringoptional
Human-facing, `ORD-YYMM-NNN`.
customerIdstringoptional
Customer id.
customerNamestringoptional
customerTypeSnapshotstringoptional
The customer's type AT ORDER TIME — it may change later, and the order keeps what it was sold under.
orderDatestringoptional
The day the order was taken.
requestedDeliveryDatestringoptional
The day it ships — what production and packing group by (D-14).
statusstringoptional
sourcestringoptional
specialInstructionsstringoptional
Order-level note.
createdByIdstringoptional
createdByNamestringoptional
createdAtstringoptional
fromRecurringIdstringoptional
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.
linesarray<object>optional
400Returned when the input is invalid; the response includes an `error` string describing the problem.
errorstringrequired
401Returned when the request is unauthenticated; sign in before calling this operation.
errorstringrequired
404Returned when the order is not found.
errorstringrequired
500Returned when an unexpected server error occurs.
errorstringrequired
Error handling
A 400 is returned for invalid input; a 401 when the request is unauthenticated; a 404 when the order is not found; and a 500 for an unexpected server error. The id path parameter must identify an order.