beel_delete_customer
Deletes a customer of a company only when it has no invoices, freeing its NIF or alternative identifier for reuse; deactivate instead if invoices or recurring invoices exist.
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.Customers used by a recurring invoice: while an active or paused recurring invoice has the customer as its recipient, the request answers
400REFERENCED_BY_RECURRING_INVOICE.
BeeL API endpoint: DELETE /v1/companies/{company_id}/customers/{customer_id} (reference: https://docs.beel.es)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"company_id": "<company_id>",
"customer_id": "<customer_id>"
},
"name": "beel_delete_customer"
}
}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 |