beel_patch_invoice
Partially update a draft invoice: only the fields you provide are changed; the rest stay as they are. Ideal for fixing or adjusting draft invoices before issuance.
Instructions
Updates only the fields present in the body, leaving every other field of the invoice as it is. Only a draft invoice can be modified: an issued one is amended with a corrective invoice or voided.
Changing series_id never moves the invoice to another NIF: a series of another company is
not visible from here.
Endpoint: PATCH /v1/companies/{company_id}/invoices/{invoice_id}
⚠️ 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 |