Update Invoice
update_invoiceUpdate, revise, correct, translate, restyle, or explicitly resync a saved client onto an existing invoice owned by the connected workspace. clientId omitted retains the link without resync; null detaches the link but keeps the current recipient snapshot; a UUID assigns that workspace-owned client and rebuilds this invoice snapshot. Client edits never rewrite historical invoices automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Invoice ID | |
| invoml | No | New InvoML JSON content. | |
| clientId | No | Omit to retain without resync; null to detach while keeping snapshot; UUID to assign/resync. | |
| templateId | No | New template | |
| idempotencyKey | Yes | Stable retry key. Reuse it only when retrying the same mutation. | |
| expectedVersion | Yes | Version returned by the last resource read | |
| numberCorrection | No | Controlled correction for a wrong persisted invoice number. from must equal the current canonical number. Omit for ordinary immutable-number updates. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| total | Yes | ||
| status | Yes | ||
| dueDate | Yes | ||
| version | Yes | ||
| clientId | No | ||
| currency | Yes | ||
| replayed | Yes | ||
| invoiceId | Yes | ||
| linkState | Yes | ||
| clientName | No | ||
| invoiceNumber | Yes |