Update a banking account
accounting:banks.writehttps://api.holded.com/api/v2/treasury/accounts/{id}Updates an existing banking account (manual or bank-connected). You can change the name, currency, accounting account, default flag, auto-sync flag and bank details (IBAN, BIC, creditor/issuer IDs). For bank-connected accounts (synced via Bridge / Account Bridge), changing `iban` or `bic` may disrupt incoming-movement matching — modify only when you understand the impact. The `currency` of a bank-connected account that already has movements cannot be changed (422). The `auto_sync` flag has no effect on manual accounts. Changing the currency does not convert existing transaction amounts — it only affects how new transactions are displayed.
Parameters
Path parameters
stringrequiredBanking account identifier
Request body
Display name for the banking account
ISO 4217 currency code
Linked accounting account identifier
Whether to automatically sync transactions from the bank
International Bank Account Number
Bank Identifier Code (SWIFT)
SEPA creditor identifier for direct debits
Issuer identifier for payment orders
Whether this is the default banking account
Request
import requests
url = "https://api.holded.com/api/v2/treasury/accounts/{id}"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
payload = {
"name": "string",
"currency": "EUR",
"accounting_account_id": "507f1f77bcf86cd799439011",
"auto_sync": false,
"iban": "string",
"bic": "string",
"creditor_id": "string",
"issuer_id": "string",
"default_account": false
}
response = requests.put(url, headers=headers, json=payload)
print(response.json())Responses
Response
{
"id": "507f1f77bcf86cd799439011",
"name": "Main bank account",
"type": "bank",
"currency": "EUR",
"balance": "15230.50",
"iban": "ES9121000418450200051332",
"bic": "CAIXESBBXXX",
"account_number": "string",
"creditor_id": "string",
"issuer_id": "string",
"archived": false,
"synced_at": "2024-01-15T10:30:00Z",
"transactions_pending_to_reconcile": 148
}Success responses
200Banking account updatedapplication/jsonUnique identifier of the banking account
Display name of the banking account
Type of banking account
bankcardgatewaycashISO 4217 currency code of the account
Decimal as string for precision
IBAN number of the bank account
SWIFT/BIC code of the bank
Bank account number when IBAN is not available
SEPA creditor identifier for direct debits
Issuer identifier used in remittances
Whether the banking account is archived
Timestamp of the last bank synchronization
Number of transactions pending reconciliation in the last 12 months for this account (precomputed, not a live count).
Error responses
400Bad requestapplication/json401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404Banking account not foundapplication/json422Validation error, or currency change on a bank-connected account that already has movementsapplication/json429Rate limit exceededapplication/json