beel_patch_series
Partially update an invoice series with only the fields you provide, preserving all others. Handles restrictions on numbering after invoicing and default series reassignment.
Instructions
Updates only the fields present in the body, leaving every other field of the series as
it is. A field sent as null clears it, which only description supports. The numbering
fields — code, format, counter_reset and initial_number — are rejected once the
series has issued invoices.
default_series cannot be used to clear the default: sending false for the series that
currently is the default answers DEFAULT_CANNOT_BE_UNMARKED, because it would leave the
document type with active series and no default, and issuing without an explicit
series_id would then fail with SERIES_DEFAULT_NOT_FOUND. Hand the default over with
PUT /v1/companies/{company_id}/series/{series_id}/default on the new series, which
unmarks the previous one. Sending false for a series that is not the default is a no-op.
Endpoint: PATCH /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 |
|---|---|---|---|
| body | Yes | ||
| 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. |