beel_delete_series
Deactivate and soft-delete an invoice series, keeping the code reserved for already-issued invoices to preserve numbering integrity.
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.
A default series 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_id answers SERIES_DEFAULT_NOT_FOUND.
Endpoint: DELETE /v1/companies/{company_id}/series/{series_id}
⚠️ Fiscal guardrails — read before calling:
How invoice numbers are formed, and why numbering can never be rewritten. (resource: beel://guardrails/series-and-numbering)
For the exhaustive rules and worked examples, call beel_docs_search.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| series_id | Yes | Series ID | |
| 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. |