txn_recategorize
Correct a posted transaction line by moving it to another account or splitting it across accounts; changes return an audit receipt for undo.
Instructions
Move one posted line to another account, or pass split lines instead of to_account to divide it across accounts in one correction. Split amounts are on the source line's side, negative for the opposite side, and must total the source line. With no source selector, infer only a single non-asset, non-liability line outside the destination. Direct credentials post immediately and return an audit receipt for audit_undo. Propose-only credentials use their existing proposal flow.
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": {
"company": "<company>"
},
"name": "txn_recategorize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Source transaction ID. Supply exactly one of id or reference. | |
| date | No | YYYY-MM-DD, on or after the original date, which is the default. | |
| split | No | Destination lines that replace the selected line, as an alternative to `to_account`. Amounts are on the source line's side; a negative amount posts on the opposite side. The amounts must total the source line. | |
| company | Yes | ||
| entry_id | No | ID of the original entry to move. | |
| reference | No | Reference of the original transaction. | |
| to_account | No | Active account to receive the selected line. Supply exactly one of `to_account` or `split`. | |
| description | No | ||
| on_conflict | No | ||
| from_account | No | Source account. If it occurs more than once, provide `entry_id` as well. | |
| tax_category | No | Tax category for the `to_account` line. Defaults to the source line's category. | |
| posting_reference | No | Idempotency reference for the new posting. Use `on_conflict` "skip" for an exact retry. |