Browse the extensions reference

accountTree

returns AccountTree

Chart of Accounts as a recursive tree.

includeInactive defaults to False so deleted source-system accounts (still kept in OLTP for historical journal-line FK integrity) don't clutter the standard CoA view. Set True for admin / cleanup contexts.

Arguments

NameTypeDescription
includeInactiveBooleanInclude accounts deleted upstream but retained for journal-line integrity. Defaults to false.

Returns AccountTree

FieldTypeDescription
roots[AccountTreeNode!]!
totalAccountsInt!

Example

query
{ accountTree { totalAccounts } }
curl
curl -X POST "https://api.robosystems.ai/extensions/$GRAPH_ID/graphql" \
  -H "X-API-Key: $ROBOSYSTEMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "{ accountTree { totalAccounts } }"}'