E048: Delete customer
DELETE /api/customers/:id
Removes a customer if nothing references it. Triggered from Customer Detail. Delete is conservative: any SO or child customer blocks the operation. UI typically routes users to archive instead.
Authentication
Standard tenant route. Requires Authorization: Bearer <firebase-id-token> and X-Org-Id: <org-id>. Access: Admin.
Request
No body.
Response — 200 OK
{ "deletedId": "uuid" }
Echo of the deleted customer's id.
Errors
| HTTP | code | Condition |
|---|---|---|
| 404 | not_found | No such customer. |
| 409 | in_use | Customer is referenced by sales orders. |
Workflow
Calls W048 Delete customer.