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
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 |