For a specific business, fetch the chart of accounts with type INCOME.
Additional filters are available, like subtypes. See schema.
Replace <BUSINESS_ID> with a real business id.
- Operation
-
query ($businessId: ID!, $page: Int!, $pageSize: Int!) { business(id: $businessId) { id accounts(page: $page, pageSize: $pageSize, types: [INCOME]) { pageInfo { currentPage totalPages totalCount } edges { node { id name description displayId type { name value } subtype { name value } normalBalanceType isArchived } } } } } - Operation Variables
-
{ "businessId": "<BUSINESS_ID>", "page": 1, "pageSize": 50 }