Skip to Content
Features

Chart of Accounts

Overview

Every Business has a Chart of Accounts: the complete list of its Ledgers. A Ledger is an account that holds a running balance, such as a bank account, a loan, or an expense like Rent. When you categorize a Transaction, you choose the Ledger it belongs to, and the reports are built from the Ledgers.

When you create a Business, Asset builds its Chart of Accounts in one of two ways:

  • The default chart. Asset picks a ready-made chart for the Business' entity type and country. This is what happens unless you say otherwise.
  • Your own chart. You send a list of Ledgers in the ledgers field of Create a Business, and those Ledgers become the chart instead.

Either way, you can add, rename, nest, and remove Ledgers afterwards.


Ledger types

Each Ledger has a type and a subtype. The subtype has to belong to the type, and it sets the Ledger's normal balance (debit_credit) when you don't send one.

TypeSubtypesNormal balance
assetcurrent_asset, fixed_asset, other_asset, uncategorized_assetDebit
liabilitycurrent_liability, long_term_liabilityCredit
equitycontribution, distribution, common_stock, preferred_stock, additional_capital, retained_earnings, opening_balanceCredit, except distribution (debit)
revenueoperating_revenue, other_inflowCredit
expensecost_of_goods_sold, operating_expense, other_outflowDebit

The other fields of a Ledger:

FieldDescription
nameThe name of the Ledger. It can be up to 255 characters.
descriptionOptional, up to 100 characters.
sort_codeOrders the Ledger in the chart and in reports. Codes that are numbers sort as numbers, so 999 comes before 1010.
financial_account_typeFor a Ledger that stands for a real-world account: bank_account, credit_card, prepaid_card, payments, payroll, loan, accounts_receivable or accounts_payable.
report_cash_flowWhether the Ledger is included in the cash flow report.
tax_categoryOptional. Used for tax estimates. It has to fit the type, for example office_expenses only goes on an expense Ledger.
parent_idNests the Ledger under another one. See Nesting Ledgers.
special_ledger_typeThe role Asset gives a system Ledger, or null. See System Ledgers.
is_deletablefalse for system Ledgers.

The default chart

If you don't send ledgers, Asset creates the default chart for the Business' entity_type. It holds about 60 to 85 Ledgers, depending on the entity type: assets, liabilities, equity, revenue, and the usual expense categories.

CountryEntity types
United Statessole-prop, llc, partnership, s-corp, c-corp, non-profit
Canadacanada-sole-prop, canada-partnership, canada-corporation, canada-not-for-profit
Eitherhousehold

Bank accounts, credit cards and loans are not in the default chart. Asset creates a Ledger for each one when you connect or add the account, named after the account and its last digits.

A Business on the core plan gets a smaller chart that doesn't depend on a country or entity type. When it upgrades onto a filing type, Asset grows the chart instead of replacing it: the existing Ledgers and all their history stay, the generic equity accounts are renamed for the filing type, and the Ledgers the filing type adds are created. Upgrading doesn't move any Journal Entry.


A custom chart when you create a Business

If the Business already has a chart, for example one you keep in your own product, send it as ledgers when you create the Business. Asset uses your Ledgers instead of the default chart. An empty list, or leaving ledgers out, gives the default chart.

Each Ledger takes the fields in the table above, and nests its children in a children list:

curl --request POST \
  --url https://api.sandbox.getasset.com/v0/business \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Roofing Pros",
  "entity_type": "llc",
  "entries_start": "2025-01-01T00:00:00Z",
  "fiscal_year": "12/31",
  "external_id": "customer_8841",
  "ledgers": [
    {
      "name": "Accounts Receivable",
      "type": "asset",
      "subtype": "current_asset",
      "debit_credit": "debit",
      "financial_account_type": "accounts_receivable",
      "special_ledger_type": "accounts_receivable",
      "sort_code": "1020",
      "report_cash_flow": false
    },
    {
      "name": "Sales",
      "type": "revenue",
      "subtype": "operating_revenue",
      "debit_credit": "credit",
      "sort_code": "4000",
      "report_cash_flow": false,
      "children": [
        {
          "name": "Roof Replacements",
          "type": "revenue",
          "subtype": "operating_revenue",
          "debit_credit": "credit",
          "sort_code": "4010",
          "report_cash_flow": false
        },
        {
          "name": "Repairs",
          "type": "revenue",
          "subtype": "operating_revenue",
          "debit_credit": "credit",
          "sort_code": "4020",
          "report_cash_flow": false
        }
      ]
    }
  ]
}'

name, type, subtype, debit_credit and report_cash_flow are required on every Ledger. The rest are optional.

What Asset checks

Asset checks the whole list before it creates the Business. If anything is wrong, the request fails with a 422 and nothing is created, including the Business.

  • Ledger names are unique across the whole list, children included. Case and surrounding spaces are ignored, so Rent and rent clash.
  • The nesting is at most four levels deep.
  • A child has the same type, subtype, financial_account_type and report_cash_flow as its parent.
  • Each special_ledger_type is used at most once, and it has to be one the Business' default chart has. For example, GST/HST Ledgers are only valid on a Canadian Business.
  • A Ledger with a special type matches the default chart's Ledger of that type on type, subtype, debit_credit and financial_account_type. It also can't be nested under another Ledger and can't have children.
  • A Business on the core plan can't have custom Ledgers.

System Ledgers you leave out are added

You don't have to list every system Ledger. Asset adds the ones you leave out from the default chart, at the top level, so the ones it depends on always exist. For example, if you don't send an Uncategorized Outflow Ledger, Asset creates one. They are added even when one of your Ledgers already uses the same name.


System Ledgers

Some Ledgers have a role in how Asset works. These are the system Ledgers, and they carry a special_ledger_type. The default chart of a US Business has these:

special_ledger_typeDefault nameWhat it's for
accounts_receivableAccounts ReceivableUnpaid customer invoices
accounts_payableAccounts PayableUnpaid vendor bills
undeposited_fundsUndeposited FundsChecks received and not yet deposited
transfersTransfer Clearing AccountTemporary holding for transfers between the Business' own accounts
customer_creditCustomer CreditsCredits owed to customers
vendor_creditVendor CreditsCredits owed to the Business by vendors
inventoryInventoryItems held for resale
sales_tax_payableSales Tax PayableSales tax collected and owed
contributionOwner's or Member's ContributionCapital the owners put in
distributionOwner's or Member's DrawMoney the owners take out
opening_balancesOpening Balance EquityThe balancing account for opening balances
returns_and_allowancesReturns & AllowancesRefunds, returns and credits given to customers
purchase_returns_and_allowancesPurchase Returns & AllowancesRefunds and credits received from vendors
cost_of_goods_soldCost of Goods SoldDirect cost of what was sold
bad_debt_expenseBad Debts ExpenseReceivables that won't be collected
uncategorized_inflowUncategorized InflowIncoming Transactions that need review
uncategorized_outflowUncategorized OutflowOutgoing Transactions that need review
realized_fx_gain_lossRealized Currency Gain/LossGains and losses from exchange rates on settled foreign-currency invoices

A Canadian chart has canada_taxes_payable and canada_taxes_recoverable in place of sales_tax_payable. Because the roles are tied to the Ledger and not to its name, you can rename a system Ledger freely.

System Ledgers are protected:

  • is_deletable is false, and you can't delete them.
  • You can only change their name and sort_code. Changing any other field is refused.

Managing the chart

Use these endpoints at any time after the Business is created:

EndpointScope
List all Ledgers for a Businessledger:read
Retrieve a Ledgerledger:read
Create a Ledgerledger:create
Update a Ledgerledger:update
Delete a Ledgerledger:delete

The list comes back in chart order: by type, then subtype, then sort code, with each child directly after its parent.

Creating and updating

When you create a Ledger, debit_credit is optional. Asset derives it from the subtype. To clear description, sort_code, financial_account_type, tax_category or parent_id when you update a Ledger, send it as null.

Create a Ledger for any new category you need. You don't have to create the Ledger for a bank account yourself: Asset does that when the account is added.

Nesting Ledgers

Use parent_id to group Ledgers under one another, for example Sales with Roof Replacements and Repairs under it. The rules are the same as for a custom chart:

  • A Ledger can be at most four levels deep.
  • A child has the same type, subtype, financial account type and cash flow setting as its parent.
  • If you change one of those on a parent, Asset applies the change to all of its children.
  • A Ledger can't be its own parent or sit under one of its own children.

Deleting a Ledger

A Ledger can be deleted only if it isn't a system Ledger and nothing refers to it. If it still has Transactions, child Ledgers, or a linked account, the request fails with a 409 and you need to move or remove those first.


Opening balances

If the Business has money in an account before its start date, set the Ledger's balance as of that date with Set the Opening Balance for a Ledger (PUT /v0/business/{business_id}/ledger/{ledger_id}/opening-balance). It needs the ledger:update scope.

Request ParameterDescription
amountThe balance as of the Business' entries_start. A positive amount is on the Ledger's normal side, and a negative amount is on the opposite side.
currencyFor a foreign-currency account, the currency of original_currency_amount. Send it together with original_currency_amount.
original_currency_amountFor a foreign-currency account, the balance in the account's own currency, as a positive number.

Asset books the other side of the opening balance to the Opening Balance Equity Ledger.

On this page