Update invoice
update_invoiceChanges a document. A draft takes every field (client, dates, currency, tax, discount, notes, terms, who it is for, project and the whole list of lines, which replaces the current ones); once sent only the notes and the due date change; once paid or answered, only the notes. Totals are recomputed on the server. null clears an optional field.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | The whole list (replaces the current lines). At most 500. | |
| notes | No | Up to 4000 characters. Default: the profile's default notes. | |
| terms | No | Up to 4000 characters. Default: the profile's payment instructions. | |
| toName | No | Who it is for. Default: the client's name. | |
| boardId | No | A project the user owns. | |
| dueDate | No | YYYY-MM-DD. Default: the profile's payment terms (invoice) or 30 days (estimate). | |
| toEmail | No | ||
| toTaxId | No | ||
| clientId | No | One of the user's clients; its name, email, address, tax id and currency are copied onto the document. | |
| currency | No | Three-letter code. Default: the client's, else the profile's. | |
| discount | No | A fixed amount off the whole document. An amount in the currency's main unit, e.g. 85 or "85.50" (not cents). null clears it. | |
| taxLabel | No | What the tax is called, up to 30 characters. | |
| invoiceId | Yes | The invoice or estimate. | |
| issueDate | No | The issue date. Default today, YYYY-MM-DD. | |
| toAddress | No | ||
| taxPercent | No | Tax as a percentage, e.g. 21 or "10,5". Default: the profile's. |