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
ledgersfield 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.
| Type | Subtypes | Normal balance |
|---|---|---|
asset | current_asset, fixed_asset, other_asset, uncategorized_asset | Debit |
liability | current_liability, long_term_liability | Credit |
equity | contribution, distribution, common_stock, preferred_stock, additional_capital, retained_earnings, opening_balance | Credit, except distribution (debit) |
revenue | operating_revenue, other_inflow | Credit |
expense | cost_of_goods_sold, operating_expense, other_outflow | Debit |
The other fields of a Ledger:
| Field | Description |
|---|---|
name | The name of the Ledger. It can be up to 255 characters. |
description | Optional, up to 100 characters. |
sort_code | Orders the Ledger in the chart and in reports. Codes that are numbers sort as numbers, so 999 comes before 1010. |
financial_account_type | For 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_flow | Whether the Ledger is included in the cash flow report. |
tax_category | Optional. Used for tax estimates. It has to fit the type, for example office_expenses only goes on an expense Ledger. |
parent_id | Nests the Ledger under another one. See Nesting Ledgers. |
special_ledger_type | The role Asset gives a system Ledger, or null. See System Ledgers. |
is_deletable | false 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.
| Country | Entity types |
|---|---|
| United States | sole-prop, llc, partnership, s-corp, c-corp, non-profit |
| Canada | canada-sole-prop, canada-partnership, canada-corporation, canada-not-for-profit |
| Either | household |
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
Rentandrentclash. - The nesting is at most four levels deep.
- A child has the same
type,subtype,financial_account_typeandreport_cash_flowas its parent. - Each
special_ledger_typeis 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_creditandfinancial_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_type | Default name | What it's for |
|---|---|---|
accounts_receivable | Accounts Receivable | Unpaid customer invoices |
accounts_payable | Accounts Payable | Unpaid vendor bills |
undeposited_funds | Undeposited Funds | Checks received and not yet deposited |
transfers | Transfer Clearing Account | Temporary holding for transfers between the Business' own accounts |
customer_credit | Customer Credits | Credits owed to customers |
vendor_credit | Vendor Credits | Credits owed to the Business by vendors |
inventory | Inventory | Items held for resale |
sales_tax_payable | Sales Tax Payable | Sales tax collected and owed |
contribution | Owner's or Member's Contribution | Capital the owners put in |
distribution | Owner's or Member's Draw | Money the owners take out |
opening_balances | Opening Balance Equity | The balancing account for opening balances |
returns_and_allowances | Returns & Allowances | Refunds, returns and credits given to customers |
purchase_returns_and_allowances | Purchase Returns & Allowances | Refunds and credits received from vendors |
cost_of_goods_sold | Cost of Goods Sold | Direct cost of what was sold |
bad_debt_expense | Bad Debts Expense | Receivables that won't be collected |
uncategorized_inflow | Uncategorized Inflow | Incoming Transactions that need review |
uncategorized_outflow | Uncategorized Outflow | Outgoing Transactions that need review |
realized_fx_gain_loss | Realized Currency Gain/Loss | Gains 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_deletableisfalse, and you can't delete them.- You can only change their
nameandsort_code. Changing any other field is refused.
Managing the chart
Use these endpoints at any time after the Business is created:
| Endpoint | Scope |
|---|---|
| List all Ledgers for a Business | ledger:read |
| Retrieve a Ledger | ledger:read |
| Create a Ledger | ledger:create |
| Update a Ledger | ledger:update |
| Delete a Ledger | ledger: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 Parameter | Description |
|---|---|
| amount | The 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. |
| currency | For a foreign-currency account, the currency of original_currency_amount. Send it together with original_currency_amount. |
| original_currency_amount | For 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.