beel_set_recurring_invoice_status
Pause, resume, or end automatic invoice generation by setting a recurring template's status to ACTIVE, PAUSED, or COMPLETED.
Instructions
Sets the lifecycle status of a recurring invoice template. This is how generation is paused, resumed and ended.
PAUSED: stops automatic generation, keeping the schedule configuration intact.ACTIVE: resumes generation. It keeps the scheduled next generation date whenever that date has not fallen due yet (including today), so resuming never re-issues a period you already invoiced and never undoes a skipped one. Only a date left in the past is rescheduled, to the first occurrence after today; the periods missed while the template was paused are not backfilled. If nothing is left to generate — the next generation date falls beyondend_date, ormax_invoiceshas already been reached — the template becomesCOMPLETED; forend_datethat holds whether the date was kept or rescheduled.COMPLETED: ends the schedule for good, fromACTIVEorPAUSED; it is also reached on its own when the schedule runs out. It is terminal:ACTIVEandPAUSEDare then rejected withRECURRING_STATE_TRANSITION_INVALID.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
⚠️ Read before calling:
Fiscal rules, domains simplified, taxes: beel_rules_list with domain, or resource beel://guardrails/.
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 | Unique identifier (UUID) of the recurring invoice template, as returned when it is created or listed. A template of another company answers `404` with `RECURRING_NOT_FOUND`, exactly like one that does not exist. |