Update an expense
expense_updateChange one expense by id; only the fields you pass move. amount is in MAJOR units. A rebilled expense refuses an amount, currency or vat_rate edit unless unlink_rebill drops the invoice link.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Expense id from expense_add or expense_list | |
| date | No | ||
| note | No | ||
| amount | No | ||
| project | No | ||
| billable | No | ||
| category | No | ||
| currency | No | ||
| merchant | No | ||
| rebilled | No | false clears the rebilled marker and the invoice number, so the expense can be billed again | |
| vat_rate | No | ||
| unlink_rebill | No | Allow editing amount, currency or vat_rate on a rebilled expense. Clears rebilled_at and rebilled_invoice, because the invoice no longer matches |