beel_set_invoice_status
Sets the commercial status of an invoice. Any transition other than the ones below is rejected.
PAID: fromISSUED,SENTorOVERDUE.SENT: fromISSUED.ISSUED: fromSENTonly, to undo aSENTset by mistake.Not set here: issuing and voiding are fiscal acts with their own operations (
POST …/{invoice_id}/issue,POST …/{invoice_id}/void), and issuing is never undone.
Endpoint: PUT /v1/companies/{company_id}/invoices/{invoice_id}/status
⚠️ 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 | 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 |