beel_delete_invoice_schedule
Remove an invoice's scheduled emission and revert it to a draft. Works even if no schedule exists, returning 204.
Instructions
Removes the scheduling of an invoice, returning it to a plain draft. Idempotent: an invoice
that is not scheduled answers 204 all the same. Unlike the PUT, it does not require the
scheduled_invoices feature.
Endpoint: DELETE /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)
Choosing wrong here misreports to AEAT. The 30-second decision. (resource: beel://guardrails/cancel-vs-rectify)
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. | |
| invoice_id | Yes | Invoice ID |