Update invoice
well_update_invoiceUpdate an existing invoice in Well.
Call well_get_schema("invoices") to discover all available fields.
REQUIRED: invoice_id OPTIONAL (only pass fields you want changed):
reference_number, issue_date (ISO date), due_date (ISO date)
status (draft | issued | paid | canceled)
terms, description
grand_total, items_total, tax_total (numbers)
local_currency (ISO 4217 three-letter code, e.g. "EUR", "USD")
document_type_code (UN/CEFACT 1001 code, e.g. "380")
billing_context (e.g. subscription, one_time, project, ...)
issuer_company_id / receiver_company_id (uuid to set, null to clear, omit to leave unchanged)
Cannot change line items, payment_means, or document attachment via this tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| terms | No | Payment terms text; pass null to clear | |
| status | No | Invoice lifecycle status | |
| due_date | No | Payment due date (ISO 8601); pass null to clear | |
| tax_total | No | Total tax amount; pass null to clear | |
| invoice_id | Yes | The UUID of the invoice to update | |
| issue_date | No | Issue date (ISO 8601, e.g. 2026-04-27); pass null to clear | |
| description | No | Free-form description; pass null to clear | |
| grand_total | No | Total invoice amount including tax; pass null to clear | |
| items_total | No | Sum of line items before tax; pass null to clear | |
| workspace_id | No | Target workspace. Omit when the token authorizes one workspace. Required when it authorizes several — a write lands in exactly one workspace and this call would not say which. | |
| local_currency | No | ISO 4217 three-letter currency code (e.g. EUR, USD); pass null to clear | |
| payment_status | No | User-driven payment_status override — requires override_version (CAS) | |
| billing_context | No | Billing context / business model; pass null to clear | |
| idempotency_key | No | Optional client-supplied key. A retried write with the same key returns the original result instead of re-applying the operation. | |
| override_version | No | Required when payment_status is present — current override_version for CAS | |
| reference_number | No | Invoice reference number (e.g. INV-2026-001); pass null to clear | |
| issuer_company_id | No | Issuer company UUID. Omit = no change, null = clear, uuid = set. | |
| document_type_code | No | UN/CEFACT 1001 document type code (e.g. 380 for commercial invoice); pass null to clear | |
| receiver_company_id | No | Receiver company UUID. Omit = no change, null = clear, uuid = set. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| success | Yes | ||
| invoice_id | No | ||
| reference_number | No |