Update expense
crunch_update_expenseUpdate an existing expense by changing posting date, supplier, reference, note, or replacing line items while preserving payments and attachments.
Instructions
Change an expense. The current expense is fetched and only what you pass changes: posting_date, supplier, reference, note, or line_items (which replace all lines). Payments and attachments are kept as they are; use crunch_add_expense_payment, crunch_remove_expense_payment and crunch_add_expense_attachment for those. Reconciled expenses and closed years can't be changed.
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": {
"expense_id": "<expense_id>"
},
"name": "crunch_update_expense"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | New internal note | |
| changes | No | Raw ExpenseDto fields to merge into the current expense (advanced) | |
| dry_run | No | Preview: return the request that would be sent (for an update, the fields that would change) without sending it | |
| expense_id | Yes | Expense ID (see crunch_list_expenses) | |
| line_items | No | Replacement lines (all existing lines are replaced) | |
| supplier_id | No | Move the expense to this supplier | |
| posting_date | No | New date (YYYY-MM-DD) | |
| supplier_reference | No | New supplier reference |