beel_set_invoice_schedule
Schedule a draft invoice for a future date, choosing to leave it as draft for review or issue and send automatically.
Instructions
Replaces the scheduling of a draft invoice, whether it had one or not, moving it to
SCHEDULED. On scheduled_for, which must be today or later, generation_mode: DRAFT
leaves the invoice as a draft for manual review and ISSUE_AND_SEND issues and sends it
automatically. Both fields are required.
Requires the scheduled_invoices feature.
Endpoint: PUT /v1/companies/{company_id}/invoices/{invoice_id}/schedule
⚠️ Fiscal guardrails — read before calling:
When an invoice can still be changed, and what to do once it cannot. (resource: beel://guardrails/invoice-state-machine)
For the exhaustive rules and worked examples, call beel_docs_search.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| 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. | |
| invoice_id | Yes | Invoice ID |