E121: Remove item from purchase order
DELETE /api/purchase-order-items/:id
Drops a PO line. Unknown ids return 404 not_found. Triggered from the Purchase Order Detail items section.
Authentication
Standard tenant route. Requires Authorization: Bearer <firebase-id-token> and X-Org-Id: <org-id>. Access: Member.
Request
No body.
Response — 200 OK
{ "deletedId": "uuid" }
Echo of the deleted item's id.
Errors
| HTTP | code | Condition |
|---|---|---|
| 409 | conflict | A receipt exists against the PO — line items are locked. |
| 404 | not_found | No such item. |