Purchase Orders
POs, items, receipts (which trigger the materials cost cascade in L3), PDF generation, and PO status types.
Endpoints E111–E128. Each maps 1:1 to the L3 workflow with the same number — see the master endpoints table for the flat view.
Writes
- E111
POST/purchase-orders— Create purchase order → W111 - E114
PATCH/purchase-orders/:id— Update purchase order → W114 - E115
DELETE/purchase-orders/:id— Delete purchase order → W115 - E128
POST/purchase-orders/bulk-import— Bulk-import purchase orders → W128 - E117
POST/purchase-orders/:id/items— Add item to purchase order → W117 - E120
PATCH/purchase-order-items/:id— Update purchase order item → W120 - E121
DELETE/purchase-order-items/:id— Remove item from purchase order → W121 - E122
POST/purchase-orders/:id/receipts— Create receipt against purchase order → W122 - E125
PATCH/purchase-order-receipts/:id— Update receipt → W125 - E126
DELETE/purchase-order-receipts/:id— Delete receipt → W126
Reads
- E112
GET/purchase-orders— List purchase orders → W112 - E113
GET/purchase-orders/:id— Get purchase order detail → W113 - E119
GET/purchase-order-items— List items across purchase orders → W119 - E118
GET/purchase-orders/:id/items— List items for a purchase order → W118 - E123
GET/purchase-orders/:id/receipts— List receipts for a purchase order → W123 - E124
GET/purchase-order-receipts/:id— Get receipt detail → W124 - E116
GET/purchase-orders/:id/pdf— Generate PO PDF → W116 - E127
GET/purchase-order-status-types— List PO status types → W127