update_invoice
Update an existing sales invoice or purchase bill by modifying line items, account codes, and other fields.
Instructions
Updates an existing sales invoice or purchase bill (typically a draft) to change fields like line items and account codes
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>",
"invoices": "<invoices>"
},
"name": "update_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unitdp | No | Optional. Unit decimal places (e.g. 4) for unit amounts on line items | |
| invoices | Yes | Invoices payload containing an array of invoice objects | |
| invoiceID | Yes | Xero generated unique identifier for the invoice (UUID) | |
| idempotencyKey | No | Optional idempotency key. Allows safe retries without duplicating processing |