File a bank line (preview, then confirm)
accounting_file_bank_lineFile one unfiled bank line. Give ONE of: account_code (e.g. bank charges, income, a loan), invoice allocations / customer_id (customer receipt — remainder goes on account), bill allocations / supplier_id or supplier_name (supplier payment), or on_account:true with a customer or supplier. TWO STEPS: the first call changes nothing and returns a preview of the journal it will post plus a confirm_token; call again with exactly the same arguments plus confirm_token (valid 10 minutes, single use) to post it. Always show the user the preview and get their OK first. 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_file_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 bank line (from accounting_unfiled_bank_lines) | |
| on_account | No | Whole amount on account with the customer / supplier | |
| allocations | No | 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 | Customer id (inv client) — for a receipt; anything not allocated goes on account | |
| supplier_id | No | Supplier contact id — for a supplier payment | |
| account_code | No | File straight to this account (chart of accounts code) | |
| confirm_token | No | Second step only: the token from the preview | |
| supplier_name | No | Supplier known only by name on its bills |