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

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

HTTPcodeCondition
404not_foundNo such customer.
409in_useCustomer is referenced by sales orders.

Workflow

Calls W048 Delete customer.