beel_delete_customer
Delete a customer without invoices from a company, releasing its identifier for reuse. Returns 404 for deleted customers and 409 if the customer has invoices.
Instructions
Deletes a customer of this company (NIF) that has no invoices. 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 the active filter. Its NIF or alternative identifier is released, so a new customer may
be created with the same identifier.
A customer that has invoices cannot be deleted and answers 409 CLIENT_HAS_INVOICES. To
stop using a customer, update it with active set to false instead of deleting it.
Endpoint: DELETE /v1/companies/{company_id}/customers/{customer_id}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company_id | Yes | NIF (company) the operation acts on. 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 NIF you do not reach answers `403`, and so does a NIF that does not exist, so the existence of a NIF in another account is never disclosed. | |
| customer_id | Yes | Customer ID |