Update a draft invoice
update_invoiceModify a draft invoice’s customer, items, taxes, due date, memo, or metadata before finalizing it. Use it only for drafts; finalized invoices cannot be changed.
Instructions
Update a draft invoice.
Change a draft invoice’s customer, items, taxes, due date, memo or metadata. Only drafts can be changed (409 invoice_not_draft).
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": {
"id": "<id>"
},
"name": "update_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The invoice id (`inv_…`). | |
| memo | No | ||
| items | No | ||
| taxes | No | ||
| customer | No | ||
| due_date | No | ||
| metadata | No |