updateInvoice
Change the due date or the internal note of an invoice; omitted fields keep their current values. Returns the invoice read after the update. The due date can only be changed on a draft: dueType date with dueDate, days with dueDays, or default for the location default. internalNote is seen by admins only and can be changed on any invoice. Get invoiceId from getInvoices. Never invent UUIDs; only use values from prior tool responses.
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": {
"invoiceId": "<invoiceId>",
"invoice": "<invoice>"
},
"name": "updateInvoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice | Yes | Invoice fields to update. | |
| invoiceId | Yes | The id of the invoice. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice | Yes |