Update bank account
update_bank_accountUpdate an existing bank account by id — its name, bank, account number or opening balance. Changing the opening balance regenerates the account's synthetic opening-balance entry. An opening date later than the account's own earliest transaction is refused, unwritten, with code confirm-required until the same call is repeated with confirm true. To add a brand-new account use create_bank_account. PROD-2612: an :accountid naming another ledger account moves the bank account and its bare feed transactions onto it; pick one from /bankaccount/candidates and send :openingbalance 0, because a feed's stored opening balance would otherwise refuse the move, and clearing it lets the next sync write it again.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "update_bank_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ID of the bank account, required for updates | |
| bank | No | Name of the bank | |
| sync | No | Whether automatic bank sync is enabled | |
| hidden | No | Whether the account is hidden/soft-deleted (removes its card; also stops sync) | |
| confirm | No | PROD-1536: required only to save an opening date that is LATER than the account's own earliest transaction. Without it that one case is refused, unwritten, with code confirm-required plus earliesttransactiondate and transactionsbefore, so the caller can show what the date would exclude and let the user override it. | |
| private | No | Whether this is a private account | |
| syncing | No | Whether sync is currently in progress | |
| archived | No | Whether the account is archived | |
| accountid | No | The ledger account this bank account settles into. PROD-2612: set it to one of the business's own asset accounts to use that account instead of minting a new one; it must not be a control or built-in account or another bank's, and the request must leave out the opening balance and any other currency. Refused with a link-* reason. | |
| swiftcode | No | SWIFT/BIC code for international transfers | |
| branchcode | No | Bank branch code or routing number | |
| accountname | No | Name of the bank account | |
| accounttype | No | Type of account (e.g., checking, savings) | |
| openingdate | No | Date of the opening balance | |
| openingrate | No | PROD-2452: for an account in a currency other than the business's, the opening exchange rate as account-currency units per one base unit (21.7821 ZAR per GBP); must be above 0. Omitted, the rate feed's rate on the opening date is used. Ignored for a base-currency account. | |
| syncenabled | No | Whether this account is enabled for bank sync | |
| accountnumber | No | Bank account number | |
| creditaccount | No | Default credit account ID | |
| creditjournal | No | Default credit journal ID | |
| openingbalance | No | Opening balance for the account | |
| clearopeningbalance | No | PROD-1200: when true, fully REMOVE the opening balance — retracts openingbalance, openingdate and the FX opening rate and base value (clears the Insights banner). Distinct from setting the balance to 0, which stays 'set'. |