Update invoice
update_invoicePartially update an invoice — only provided fields change. Changing amount/tax_rate/tax_set recomputes tax_amount/total_amount server-side; changing retainage_percent (or amount/tax_rate/tax_set alongside it) recomputes retainage_amount from the resulting total_amount.
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 |
|---|---|---|---|
| notes | No | ||
| amount | No | ||
| status | No | ||
| tax_set | No | ||
| agent_id | No | ||
| due_date | No | ||
| tax_rate | No | ||
| invoice_id | Yes | ||
| description | No | ||
| customer_name | No | ||
| retainage_percent | No |