beel_delete_customer
Remove customers with no invoices from API access: deletion returns 404 and frees their identifier. Customers with invoices cannot be deleted; update them to inactive instead.
Instructions
Deletes a customer of this company that has no invoices.
What deleting means: the customer is retained internally for tax record-keeping purposes, but is no longer exposed by the API: subsequent requests to it return
404, and it is never included in the customer list, under any value of theactivefilter.Identifier released: its NIF or alternative identifier is freed, so a new customer may be created with the same identifier.
Customers with invoices: they cannot be deleted and the request answers
409CLIENT_HAS_INVOICES. To stop using a customer, update it withactiveset tofalseinstead of deleting it.
Endpoint: DELETE /v1/companies/{company_id}/customers/{customer_id}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company_id | Yes | Unique identifier (UUID) of the company the operation acts on — its identifier, not its NIF. It is the only source of context: the account that owns it is derived from it, and the `BeeL-Active-Company` header plays no part. A company you do not reach answers `403`, and so does a company that does not exist, so the existence of a company in another account is never disclosed. | |
| customer_id | Yes | Customer ID |