Re-file a bank line (preview, then confirm)
accounting_refile_bank_lineRe-file a bank line that was already filed wrongly: reverses everything it posted (one reversal journal on the line's date, payments taken back off invoices/bills) and files it again to the new target. Same target arguments as accounting_file_bank_line. TWO STEPS: first call = preview of the reversal and new journal + confirm_token; second call with confirm_token does it. Changes the user's real books — only after they have seen the preview and agreed. Needs the user's GetAccountED sign-in (they are asked to sign in the first time).
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": {
"line_id": "<line_id>"
},
"name": "accounting_refile_bank_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vat | No | With account_code: split 15% VAT out of the amount (VAT vendors only). Omit to use the default for that account. | |
| refund | No | With account_code: money in that is a refund of an expense | |
| line_id | Yes | The filed bank line id | |
| on_account | No | Whole amount on account with the customer / supplier | |
| allocations | No | New target: which invoices (money in) or bills (money out) this pays, with optional amounts (part payments allowed). Omit amount to settle as much as is due, in order. | |
| business_id | No | Accounting practices only: which client's books (an id from accounting_list_my_businesses). Leave out to use the books chosen at sign-in. | |
| customer_id | No | New target: customer id — for a receipt; anything not allocated goes on account | |
| supplier_id | No | New target: supplier contact id — for a supplier payment | |
| account_code | No | New target: file straight to this account (chart of accounts code) | |
| confirm_token | No | Second step only: the token from the preview | |
| supplier_name | No | New target: supplier known only by name on its bills |