List banking accounts
accounting:banks.readhttps://api.holded.com/api/v2/treasury/accountsReturns a cursor-paginated list of banking accounts in your account. Use `archived=true` to retrieve only archived accounts, `archived=false` for only active accounts, or omit the parameter to return both. Use the `cursor` returned by `ApiListResponse` to fetch the next page; `limit` defaults to the standard list page size and is capped at the API-wide maximum.
Parameters
Query parameters
stringoptionalOpaque cursor for pagination
integeroptional= 50Maximum number of banking accounts to return per page
stringoptionalFilter banking accounts by account type. Allowed values: `bank` (bank account), `card` (credit or debit card), `gateway` (payment gateway such as Stripe or PayPal), `cash` (cash register / petty cash).
"bank""card""gateway""cash"booleanoptionalFilter by archived state. `true` returns only archived accounts, `false` returns only active accounts. Omit to return both (default).
Request
import requests
url = "https://api.holded.com/api/v2/treasury/accounts?cursor=value&limit=50&type=value"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())Responses
Response
{
"items": [
{
"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
}
],
"cursor": "string",
"has_more": false
}Success responses
200List of banking accountsapplication/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/json429Rate limit exceededapplication/json