Change a draft invoice
update_invoice_draftChanges a draft invoice: add, remove or change lines. The lines given replace the whole line list, so it must contain every line the draft should keep. Takes the invoiceId and contactId returned when the draft was created.
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>",
"contactId": "<contactId>",
"lines": "<lines>"
},
"name": "update_invoice_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | Complete new line list (replaces all existing lines). | |
| notes | No | ||
| dueDate | No | ISO due date. Omit to keep default. | |
| contactId | Yes | UUID of the client contact (from create_invoice_draft result). | |
| invoiceId | Yes | UUID of the draft invoice to update (from create_invoice_draft result). |