beel_delete_series
Soft-deletes an invoice series, deactivating it first if active and keeping its code reserved for invoices already issued.
Instructions
Soft-deletes an invoice series, deactivating it first if it is active.
The code is not released: it stays taken after the deletion because it identifies the invoices already issued under it, so recreating a series with the same code answers
409 SERIES_CODE_DUPLICATED.Default series: it cannot be deleted while another active series of the same document type exists — promote that other one first. If it is the only series of its type it is deleted and the type is left with none, a valid state in which issuing without an explicit
series_idanswersSERIES_DEFAULT_NOT_FOUND.
BeeL API endpoint: DELETE /v1/companies/{company_id}/series/{series_id} (reference: https://docs.beel.es)
⚠️ Read before calling:
Fiscal rules, domains numbering: beel_rules_list with domain, or resource beel://guardrails/.
How a series formats numbers, and which series configurations are rejected. (resource: beel://guardrails/series-and-numbering)
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>",
"series_id": "<series_id>"
},
"name": "beel_delete_series"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| series_id | Yes | Series ID | |
| 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. |