Update invoice
crunch_update_invoiceUpdates an existing sales invoice by applying only the fields you provide, preserving payments and attachments; replacing items overwrites all invoice lines.
Instructions
Change a sales invoice. The current invoice is fetched and only what you pass changes; existing payments and attachments are kept. items replaces all lines. Issued invoices may be restricted by Crunch.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"invoice_id": "<invoice_id>"
},
"name": "crunch_update_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | New note printed on the invoice | |
| items | No | Replacement lines (all existing lines are replaced) | |
| changes | No | Raw SalesInvoiceDto fields to merge into the current invoice (advanced) | |
| dry_run | No | Preview: return the request that would be sent (for an update, the fields that would change) without sending it | |
| due_date | No | New due date (YYYY-MM-DD) | |
| client_id | No | Move the invoice to this customer | |
| reference | No | New reference | |
| invoice_id | Yes | Invoice ID (see crunch_list_invoices) | |
| issued_date | No | New invoice date (YYYY-MM-DD) | |
| purchase_order | No | New purchase order number | |
| send_reminders | No | Have Crunch email the customer payment reminders (true needs CRUNCH_ALLOW_EMAIL=true) | |
| bank_account_id | No | Bank account shown on the invoice | |
| payment_terms_days | No | Payment terms in days |