beel_generate_recurring_invoice_now
Generate a recurring invoice immediately by bringing the next scheduled occurrence forward. Consumes the pending fiscal period and advances the schedule by one.
Instructions
Runs the generation of this recurring template immediately, out of its schedule. It is a fiscal act: the generated invoice consumes numbering from the series of the template and, when the template says so, is issued and sent.
It brings the upcoming occurrence forward — it does not add one. The call consumes the
period that was pending: the invoice is created now and next_generation advances one
period. Generating manually, skipping and letting the scheduler run each consume exactly
one occurrence, so a monthly template still produces twelve invoices a year however you mix
the three.
For an extra invoice outside the calendar, do not use this endpoint: create a normal
invoice, or derive a draft from one the template already generated with
POST /v1/companies/{company_id}/invoices/derivations. Either way the schedule stays where
it was.
Endpoint: POST /v1/companies/{company_id}/recurring-invoices/{recurring_invoice_id}/generate
⚠️ Fiscal guardrails — read before calling:
How BeeL derives the AEAT invoice type, and the rules each type imposes. (resource: beel://guardrails/invoice-types)
What regime_key means, where it lives, and which combinations are rejected. (resource: beel://guardrails/regime-keys)
For the exhaustive rules and worked examples, call beel_docs_search.
Input Schema
| Name | Required | Description | 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. | |
| idempotency_key | No | Optional idempotency key for this operation. Omit it and one is derived from the request itself, which makes a blind retry safe but also collapses a SECOND, deliberately identical operation into the first for 24 hours. Set it — to an order id, or anything unique per intended operation — whenever you mean to create something that may look identical to what you just created. | |
| recurring_invoice_id | Yes |