update-invoice
Modify draft invoices in Xero by updating line items, due dates, or references. All line items must be provided to replace existing ones.
Instructions
Update an invoice in Xero. Only works on draft invoices. All line items must be provided. Any line items not provided will be removed. Including existing line items. Do not modify line items that have not been specified by the user. When an invoice is updated, a deep link to the invoice in Xero is returned. This deep link can be used to view the contact in Xero directly. This link should be displayed to the user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoiceId | Yes | The ID of the invoice to update. | |
| lineItems | No | All line items must be provided. Any line items not provided will be removed. Including existing line items. Do not modify line items that have not been specified by the user | |
| reference | No | A reference number for the invoice. | |
| dueDate | No | The due date of the invoice. | |
| date | No | The date of the invoice. | |
| contactId | No | The ID of the contact to update the invoice for. Can be obtained from the list-contacts tool. |