Skip to main content
Version: v1.0.0(int)

E146: Get sales order detail

GET /api/sales-orders/:id

Returns a single SO with everything the detail page needs: header, items, SKUs, timeline notes, documents, and a computed fulfillment status derived from the FG ledger. Triggered by clicking an SO in the list.

Authentication

Standard tenant route. Requires Authorization: Bearer <firebase-id-token> and X-Org-Id: <org-id>. Access: Member.

Request

No body.

Response — 200 OK

{
"salesOrder": SalesOrder,
"customer": { "id": "uuid", "name": "..." },
"channel": { "id": "uuid", "name": "..." },
"broker": null,
"shipToLocation": { "id": "uuid", "name": "..." },
"items": [ SalesOrderItem ],
"timelineNotes": [ TimelineNote ],
"documents": [ Document ],
"shipmentTotals": [ { "itemId": "uuid", "allocated": 50, "shipped": 0, "remaining": 50 } ]
}

Errors

HTTPcodeCondition
404not_foundNo such SO.

Workflow

Calls W146 Get sales order detail.