E126: Delete receipt
DELETE /api/purchase-order-receipts/:id
Removes a receipt. Triggered from the Purchase Order Detail receipts section. Ledger reversal (REVERSE_RECEIVE), cost re-rollup, and status recompute are a v1 gap — see W126.
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 receipt's id.
Errors
| HTTP | code | Condition |
|---|---|---|
| 404 | not_found | No such receipt. |
Workflow
Calls W126 Delete receipt.