level 1) and sub accounts (level 2) together. Codes are always strings. The page shows no parent column, so none is returned.400 with a validation_errors map naming the limit, rather than truncated; narrow with account_level, account_type or display_all_account_except.curl --location '/api2/reports/chart_of_accounts?account_level=&account_type=&display_all_account_except=&branch_id=&order_by=' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'apikey: ' \
--header 'Content-Type: application/json'{
"result": "successful",
"code": 200,
"data": {
"report": {
"key": "chart_of_accounts",
"title": "string"
},
"filters": {
"account_level": [
0
],
"account_type": 0,
"display_all_account_except": [
"string"
],
"order_by": "string",
"branch_id": [
0
]
},
"columns": [
{
"key": "string",
"label": "string"
}
],
"rows": [
{
"code": "string",
"name": "string",
"type": "debit",
"type_label": "string",
"level": 1,
"level_label": "string",
"cost_centers": "string",
"branch_ids": [
0
],
"branches": "string"
}
],
"meta": {
"row_count": 0
}
}
}