beel_patch_invoice_schedule
Update only the fields sent for an already scheduled invoice, changing its scheduled date or generation mode; it never creates a schedule and returns 404 if the invoice is not scheduled.
Instructions
Updates only the fields present in the body of the scheduling of an invoice that is
already SCHEDULED — same convention as PATCH …/{invoice_id} on the invoice
itself. Unlike the PUT, this never creates a scheduling: an invoice that is not
scheduled answers 404, it is not programmed by this call.
scheduled_for: moves the date. Ifgeneration_modeis not sent, the mode already scheduled is kept.generation_mode: changes the mode. Ifscheduled_foris not sent, the date already scheduled is kept.At least one of the two fields is required; an empty body is rejected with
422.Availability: requires the
scheduled_invoicesfeature, same as thePUT.
BeeL API endpoint: PATCH /v1/companies/{company_id}/invoices/{invoice_id}/schedule (reference: https://docs.beel.es)
⚠️ Read before calling:
Fiscal rules, domains lifecycle: beel_rules_list with domain, or resource beel://guardrails/.
The status names, the proforma lifecycle, and which tool performs each operation. (resource: beel://guardrails/invoice-state-machine)
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. | |
| invoice_id | Yes | Invoice ID |