beel_set_default_series
Mark an invoice series as the default for its document type in a company, replacing the previous default.
Instructions
Marks an invoice series as the default of its document type for this company, and unmarks the previous one.
One per type: only one series can be the default per company and document type.
Must be active: an inactive series is rejected with
400.Idempotent: repeating the call changes nothing.
Endpoint: PUT /v1/companies/{company_id}/series/{series_id}/default
⚠️ 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)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| series_id | Yes | Series ID to mark as 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. |