E119: List items across purchase orders
GET /api/purchase-order-items
Returns PO line items spanning multiple POs. Triggered from cross-PO views (reporting, lookups by material or SKU).
Authentication
Standard tenant route. Requires Authorization: Bearer <firebase-id-token> and X-Org-Id: <org-id>. Access: Member.
Request
Cursor pagination plus optional ?materialId=, ?skuId=, ?status=, ?vendorId= filters. Powers the cross-PO items index.
Response — 200 OK
{
"data": [
{
"id": "uuid",
"po": { "id": "uuid", "poNumber": "...", "status": "..." },
"materialId": "uuid", "skuId": null,
"quantity": 100, "unitCost": 12.34,
"received": 60
}
],
"nextCursor": null
}
Errors
Standard envelope only.