qb_delete_transaction
Delete a transaction from QuickBooks Desktop by providing its full current snapshot, enabling undo capability.
Instructions
Deletes a transaction. You must pass before_snapshot -- the full transaction as it exists right now (query it first: account, payee, refnum, txn_date, header_memo, lines) -- so the undo log can recreate it if this needs to be reverted. Deleting without an accurate snapshot means it cannot be undone.
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>",
"before_snapshot": "<before_snapshot>"
},
"name": "qb_delete_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| txn_id | Yes | ||
| txn_type | Yes | ||
| before_snapshot | Yes | ||
| expected_company_file | No |