Skip to main content
Version: v1.0.0(int)

E133: Delete work order

DELETE /api/work-orders/:id

Wipes a WO and reverses every inventory effect it produced on both the materials and FG ledgers. Triggered from Work Order Detail.

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 work order's id.

Errors

HTTPcodeCondition
404not_foundNo such WO.
409in_useWO has receipts — cancel (status change + reverse entries) instead of delete.

Workflow

Calls W133 Delete work order.