beel_set_recurring_invoice_status
Pause or resume automated recurring invoice generation by updating the template's lifecycle status, preserving the schedule when paused and recalculating the next issue date when resumed.
Instructions
Sets the lifecycle status of a recurring invoice template. This is how generation is paused and resumed.
PAUSED: stops automatic generation, keeping the schedule configuration intact.ACTIVE: resumes generation and recalculates the next generation date from today.COMPLETED: reached on its own when the schedule runs out. It cannot be set here; the body only acceptsACTIVEandPAUSED.Rejected transitions: resuming a template that is already active, or one whose
pause.blockeris still in effect.
Endpoint: PUT /v1/companies/{company_id}/recurring-invoices/{recurring_invoice_id}/status
⚠️ 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 |
|---|---|---|---|
| body | Yes | ||
| 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. | |
| recurring_invoice_id | Yes |