Update transaction
update_transactionFix a logged record: wrong category, amount, merchant, date, account, personal/business scope, or type. type=transfer + counter_account converts a mislogged row into a transfer between own accounts (e.g. a cash withdrawal into a transfer to Cash). counter_transaction_id instead GLUES TWO EXISTING rows (one expense + one income on different own accounts) into ONE transfer - use it when a currency exchange, own-account top-up, or cash withdrawal produced two separate rows. Category fixes on rows with a merchant are remembered: future bank syncs of that merchant reuse your category.
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": {
"id": "<id>"
},
"name": "update_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| date | No | Date as YYYY-MM-DD. Omit for today. | |
| note | No | ||
| type | No | Convert the record's type. transfer additionally needs counter_account. | |
| amount | No | ||
| entity | No | ||
| account | No | Move the row to this own account (see get_accounts). | |
| category | No | ||
| currency | No | 3-letter ISO currency code (EUR, USD, UAH, AED, ...). Omit to use the user's base currency. | |
| merchant | No | ||
| counter_account | No | The OTHER own account of a transfer (for an expense row: where the money went, e.g. Cash). With type=transfer it converts the row; on an existing transfer it re-points the destination. | |
| counter_transaction_id | No | Merge ANOTHER existing row into this one as the second leg of a transfer between own accounts. One row must be an expense, the other an income, on different accounts (any currencies). The other row is absorbed: its account/amount/currency become the counter leg and its bank reference is preserved, so re-syncs and re-imports do not duplicate it. |