qb_modify_transaction_line
Modify a single expense or deposit line on an existing transaction, with automatic undo logging by providing original values.
Instructions
Modifies one expense/deposit line on an existing transaction. You must pass the ORIGINAL account/amount/memo (query the transaction first if you don't already have them) so the undo log can restore them exactly.
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": {
"txn_type": "<txn_type>",
"txn_id": "<txn_id>",
"edit_sequence": "<edit_sequence>",
"line_id": "<line_id>",
"new_account": "<new_account>",
"new_amount": "<new_amount>"
},
"name": "qb_modify_transaction_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| txn_id | Yes | ||
| line_id | Yes | ||
| new_memo | No | ||
| txn_type | Yes | ||
| new_amount | Yes | ||
| new_account | Yes | ||
| edit_sequence | Yes | ||
| original_memo | No | ||
| original_amount | No | ||
| original_account | No | ||
| expected_company_file | No |