Update invoice
update_invoiceUpdate invoice header details: set status, due date, billed date, and notes. Void unpaid invoices by setting status to void.
Instructions
Edit invoice header fields: status (active/draft/proforma/void), due date, billed date, notes. Wraps Invoices.edit. Use status: "void" to void an unpaid invoice (irreversible in practice). Line items are not editable here; use blesta_call invoices/edit with lines for that.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"invoice_id": "<invoice_id>"
},
"name": "update_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | ||
| date_due | No | ISO 8601 with timezone | |
| invoice_id | Yes | Numeric invoice ID | |
| date_billed | No | ISO 8601 with timezone | |
| note_public | No | ||
| note_private | No |