updateInvoiceItem
Change the title, quantity, or unit price of a custom invoice item; omitted fields keep their current values. Returns the item read after the update. product.title is the title, quantity a whole number, and unitAmount the price of one unit in major units. The item's total and tax are recalculated with its existing tax rate. Only an item whose product.type is custom can be changed, and only while it is pending or on a draft invoice: an item on an issued invoice is corrected with createCreditNote. Get invoiceItemId from getInvoiceItems. 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": {
"invoiceItemId": "<invoiceItemId>",
"invoiceItem": "<invoiceItem>"
},
"name": "updateInvoiceItem"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoiceItem | Yes | Invoice line item to update. | |
| invoiceItemId | Yes | The id of the invoice item. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoiceItem | Yes |