Skip to content

Delete Customer

EndpointMethod
/api/admin/customers/{id}DELETE

Active orders guard

CustomerRepository::haveActiveOrders($customer) returns true when any order has status IN ('pending','processing'). Single delete throws HTTP 400 in that case — mirrors the monolith.

Permission: customers.customers.delete.

Released under the MIT License.