beel_set_default_series
Set an invoice series as the default for its document type, automatically unmarking the previous default. Requires an active series and ensures only one default per company and type.
Instructions
Marks an invoice series as the default of its document type for this company (NIF), and
unmarks the previous one. Only one series can be the default per company and document
type, and the series must be active — an inactive one is rejected with 400. Repeating
the call changes nothing.
Endpoint: PUT /v1/companies/{company_id}/series/{series_id}/default
⚠️ 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 to mark as 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. |