Skip to content
AccountFUNDocs

Chart of accounts

The chart of accounts endpoint returns the ledger accounts an organization uses to code transactions. Use it to populate account selectors in your integration, or to find the accountId you need when creating invoice line items.

Requires the chart_of_accounts:read scope. See Authentication.

MethodPathScopeDescription
GET/api/v1/chart-of-accountschart_of_accounts:readList all accounts.

Returns every account in the token’s organization, sorted by account code.

Terminal window
curl https://app.accountfun.com/api/v1/chart-of-accounts \
-H "Authorization: Bearer $ACCESS_TOKEN"
{
"accounts": [
{
"id": "00000000-0000-0000-0000-00000000000a",
"code": "400",
"name": "Sales Revenue",
"type": "Revenue",
"isActive": true,
"isSystem": false,
"systemRole": null,
"defaultTaxRateId": "00000000-0000-0000-0000-0000000000aa",
"description": "General sales income",
"longDescription": "Revenue from the sale of goods and services"
},
{
"id": "00000000-0000-0000-0000-000000000010",
"code": "610",
"name": "Accounts Receivable",
"type": "CurrentAsset",
"isActive": true,
"isSystem": true,
"systemRole": "ACCOUNTS_RECEIVABLE",
"defaultTaxRateId": null,
"description": "System account for tracking amounts owed by customers"
}
]
}
FieldDescription
idThe account UUID. Pass this as accountId on invoice line items and other transactions.
codeThe account code (e.g. 400). Numeric or alphanumeric; sorted ascending.
nameHuman-readable account name.
typeThe account class. Income accounts use Revenue, Sales, or OtherIncome; assets use Bank, CurrentAsset, FixedAsset, etc. See the account types table below.
isActiveWhether the account can be selected for new transactions. Inactive accounts are kept for historical reporting.
isSystemtrue for seeded control/system accounts that have special behavior.
systemRoleFor system accounts, the role they play: ACCOUNTS_RECEIVABLE, ACCOUNTS_PAYABLE, TAX_PAYABLE, REALIZED_FX, UNREALIZED_FX, UNREALIZED_FX_BANK, RETAINED_EARNINGS, CUSTOM_ADJUSTMENTS, DEPRECIATION_EXPENSE, ACCUMULATED_DEPRECIATION, AMORTIZATION_EXPENSE, ACCUMULATED_AMORTIZATION, INVENTORY_ASSET, COGS, ROUNDING, PREPAYMENT or CUSTOMER_DEPOSIT. null for other accounts, including bank accounts. Use it rather than code to find a system account — codes can be edited.
defaultTaxRateIdThe default tax rate applied to this account. null if none.
descriptionFree-text description. May be null.
longDescriptionLonger free-text description. May be null.

AccountFUN uses granular account types that map to the five standard double-entry classes:

TypeClassNormal balance
BankAssetDebit
CurrentAssetAssetDebit
FixedAssetAssetDebit
IntangibleAssetAssetDebit
InventoryAssetDebit
NonCurrentAssetAssetDebit
PrepaymentAssetDebit
CurrentLiabilityLiabilityCredit
LiabilityLiabilityCredit
NonCurrentLiabilityLiabilityCredit
LongTermLiabilityLiabilityCredit
EquityEquityCredit
RevenueIncomeCredit
SalesIncomeCredit
OtherIncomeIncomeCredit
ExpenseExpenseDebit
DirectCostsExpenseDebit
OverheadExpenseDebit
DepreciationExpenseDebit

Read the Chart of accounts guide for the in-product explanation of how accounts are organized and used.