List chart of accounts
accounting:chart-of-accounts.readhttps://api.holded.com/api/v2/accounting-accountsReturns the list of all accounting accounts in your chart of accounts. The response includes each account's number, name, and group. Use this endpoint to discover available accounts before creating ledger entries.
Parameters
Query parameters
booleanoptionalInclude archived accounts when true
string<date>optionalFilter accounts with activity from this date (YYYY-MM-DD)
string<date>optionalFilter accounts with activity up to this date (YYYY-MM-DD)
booleanoptionalInclude accounts with no transactions when true
stringoptionalCase-insensitive partial search on account name or number
Request
import requests
url = "https://api.holded.com/api/v2/accounting-accounts?archived=value&start_date=2024-01-01&end_date=2024-12-31"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())Responses
Response
{
"items": [
{
"id": "507f1f77bcf86cd799439011",
"color": "#FF5733",
"number": 4300,
"name": "string",
"description": "string",
"group": "string",
"debit": "1500.00",
"credit": "500.00",
"balance": "1000.00",
"archived": false,
"non_deductible": false
}
]
}Success responses
200List of accounting accountsapplication/jsonUnique identifier of the accounting account
Color code for visual identification
Numeric code from the chart of accounts
Display name of the account
Free-text description of the account. Empty when none was set
Accounting group this account belongs to
Decimal as string for precision
Decimal as string for precision
Decimal as string for precision
Whether the account has been archived
Whether this expense account (group 6) is excluded from deductible-expense calculations
Error responses
401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json429Rate limit exceededapplication/json