E130: List work orders
GET /api/work-orders
Returns WO header rows for the Work Orders page, hydrated with work-site location names, item count, expected and received totals, and the derived material status. Filters are supplied by the caller.
Authentication
Standard tenant route. Requires Authorization: Bearer <firebase-id-token> and X-Org-Id: <org-id>. Access: Member.
Request
Cursor pagination plus optional filters: ?status=, ?skuId=, ?siteLocationId=, ?q=, ?startDateFrom=, ?startDateTo=.
Response — 200 OK
{ "data": [ { "id": "uuid", "woNumber": "WO-...", "sku": { "id": "uuid", "code": "...", "name": "..." }, "quantity": 100, "status": "Production", "startDate": "...", "materialUnitCost": 4.12 } ], "nextCursor": null }
Errors
Standard envelope only.
Workflow
Calls W130 List work orders.