beel_get_default_series
Check whether a company's automatic invoicing document types have a default invoice series, returning the series ID when set. Detects missing defaults that make automatic flows skip, so you can assign one before issuing.
Instructions
Reports, for each DocumentType used by automatic invoicing flows, whether the company
(NIF) has a default invoice series and which one: exists, plus the series_id when there
is one.
No default: that document type cannot be issued without naming a
series_idexplicitly, and automatic flows skip it withfailure.payment.skip.missing_default_series.Environment: resolved from the request context; it takes no input.
Closed catalogue. This collection is fixed and bounded — one entry per DocumentType:
it carries no pagination, it takes no page/limit, and every response holds the whole
set.
Endpoint: GET /v1/companies/{company_id}/series/defaults
⚠️ 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 |
|---|---|---|---|
| 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. |