General Ledger
Retrieve Chart of Accounts
Businesses
- Business
- Financial Accounts
- Documents
- Scoped Authentication
- Configuration
- Tasks & Notifications
Financial Activity
- Accounts Receivable
- Accounts Payable
- Bank Transactions
- General Ledger
Accounting Reports
- Profit and Loss
- Balance Sheet
- Cash Flow Statement
Platform Configuration
- Plaid
- SMS
Activity Metrics
- Platform wide activity
- Business Activity
General Ledger
Retrieve Chart of Accounts
This endpoint retrieves a business’s chart of accounts.
GET
/
v1
/
businesses
/
{business_id}
/
ledger
/
chart
curl https://sandbox.layerfi.com/v1/businesses/863ed926-e30d-40f4-8e7e-b0d5387ce4fb/ledger/chart \
-H "Authorization: Bearer <access_token>"
{
"data": {
"type": "Chart_Of_Accounts",
"accounts": [
{
"id": "6ac7e685-4859-43a0-9f26-61e57c31f4ea",
"name": "Expenses",
"stable_name": "EXPENSES",
"normality": "DEBIT",
"account_type": {
"value": "EXPENSE",
"display_name": "Expenses"
},
"account_subtype": null,
"sub_accounts": [
{
"id": "ab16f453-6b0f-416d-bcc9-92edba3b6e0a",
"name": "Cost of Goods Sold",
"stable_name": "COGS",
"normality": "DEBIT",
"account_type": {
"value": "EXPENSE",
"display_name": "Expenses"
},
"account_subtype": {
"value": "COGS",
"display_name": "COGS"
},
"sub_accounts": [
// Sub-accounts omitted for brevity
]
},
{
"id": "ab5f3795-734e-4b12-b9a1-c32ec4b43c2e",
"name": "Operating Expenses",
"stable_name": "OPERATING_EXPENSES",
"normality": "DEBIT",
"account_type": {
"value": "EXPENSE",
"display_name": "Expenses"
},
"account_subtype": {
"value": "OPERATING_EXPENSES",
"display_name": "Operating Expenses"
},
"sub_accounts": [
// Sub-accounts omitted for brevity
]
},
]
},
{
"id": "700a1b71-0b38-4d36-b46c-c0610f7849b5",
"name": "Revenue",
"stable_name": "REVENUE",
"normality": "CREDIT",
"account_type": {
"value": "REVENUE",
"display_name": "Revenue"
},
"account_subtype": null,
"sub_accounts": [
{
"id": "59d427f8-4681-4a8c-926e-3c3963b24e8f",
"name": "Service Revenue",
"stable_name": "SERVICES_REVENUE",
"normality": "CREDIT",
"account_type": {
"value": "REVENUE",
"display_name": "Revenue"
},
"account_subtype": {
"value": "SALES",
"display_name": "Sales"
},
"sub_accounts": []
},
{
"id": "d9ac1801-3433-4666-9e49-597c3d8c9816",
"name": "Sale of Goods Revenue",
"stable_name": "GOODS_REVENUE",
"normality": "CREDIT",
"account_type": {
"value": "REVENUE",
"display_name": "Revenue"
},
"account_subtype": {
"value": "SALES",
"display_name": "Sales"
},
"sub_accounts": []
}
]
},
// Additional accounts omitted for brevity
]
}
}
Path Parameters
Response
Returns the Chart of Accounts for the Business
curl https://sandbox.layerfi.com/v1/businesses/863ed926-e30d-40f4-8e7e-b0d5387ce4fb/ledger/chart \
-H "Authorization: Bearer <access_token>"
{
"data": {
"type": "Chart_Of_Accounts",
"accounts": [
{
"id": "6ac7e685-4859-43a0-9f26-61e57c31f4ea",
"name": "Expenses",
"stable_name": "EXPENSES",
"normality": "DEBIT",
"account_type": {
"value": "EXPENSE",
"display_name": "Expenses"
},
"account_subtype": null,
"sub_accounts": [
{
"id": "ab16f453-6b0f-416d-bcc9-92edba3b6e0a",
"name": "Cost of Goods Sold",
"stable_name": "COGS",
"normality": "DEBIT",
"account_type": {
"value": "EXPENSE",
"display_name": "Expenses"
},
"account_subtype": {
"value": "COGS",
"display_name": "COGS"
},
"sub_accounts": [
// Sub-accounts omitted for brevity
]
},
{
"id": "ab5f3795-734e-4b12-b9a1-c32ec4b43c2e",
"name": "Operating Expenses",
"stable_name": "OPERATING_EXPENSES",
"normality": "DEBIT",
"account_type": {
"value": "EXPENSE",
"display_name": "Expenses"
},
"account_subtype": {
"value": "OPERATING_EXPENSES",
"display_name": "Operating Expenses"
},
"sub_accounts": [
// Sub-accounts omitted for brevity
]
},
]
},
{
"id": "700a1b71-0b38-4d36-b46c-c0610f7849b5",
"name": "Revenue",
"stable_name": "REVENUE",
"normality": "CREDIT",
"account_type": {
"value": "REVENUE",
"display_name": "Revenue"
},
"account_subtype": null,
"sub_accounts": [
{
"id": "59d427f8-4681-4a8c-926e-3c3963b24e8f",
"name": "Service Revenue",
"stable_name": "SERVICES_REVENUE",
"normality": "CREDIT",
"account_type": {
"value": "REVENUE",
"display_name": "Revenue"
},
"account_subtype": {
"value": "SALES",
"display_name": "Sales"
},
"sub_accounts": []
},
{
"id": "d9ac1801-3433-4666-9e49-597c3d8c9816",
"name": "Sale of Goods Revenue",
"stable_name": "GOODS_REVENUE",
"normality": "CREDIT",
"account_type": {
"value": "REVENUE",
"display_name": "Revenue"
},
"account_subtype": {
"value": "SALES",
"display_name": "Sales"
},
"sub_accounts": []
}
]
},
// Additional accounts omitted for brevity
]
}
}
curl https://sandbox.layerfi.com/v1/businesses/863ed926-e30d-40f4-8e7e-b0d5387ce4fb/ledger/chart \
-H "Authorization: Bearer <access_token>"
{
"data": {
"type": "Chart_Of_Accounts",
"accounts": [
{
"id": "6ac7e685-4859-43a0-9f26-61e57c31f4ea",
"name": "Expenses",
"stable_name": "EXPENSES",
"normality": "DEBIT",
"account_type": {
"value": "EXPENSE",
"display_name": "Expenses"
},
"account_subtype": null,
"sub_accounts": [
{
"id": "ab16f453-6b0f-416d-bcc9-92edba3b6e0a",
"name": "Cost of Goods Sold",
"stable_name": "COGS",
"normality": "DEBIT",
"account_type": {
"value": "EXPENSE",
"display_name": "Expenses"
},
"account_subtype": {
"value": "COGS",
"display_name": "COGS"
},
"sub_accounts": [
// Sub-accounts omitted for brevity
]
},
{
"id": "ab5f3795-734e-4b12-b9a1-c32ec4b43c2e",
"name": "Operating Expenses",
"stable_name": "OPERATING_EXPENSES",
"normality": "DEBIT",
"account_type": {
"value": "EXPENSE",
"display_name": "Expenses"
},
"account_subtype": {
"value": "OPERATING_EXPENSES",
"display_name": "Operating Expenses"
},
"sub_accounts": [
// Sub-accounts omitted for brevity
]
},
]
},
{
"id": "700a1b71-0b38-4d36-b46c-c0610f7849b5",
"name": "Revenue",
"stable_name": "REVENUE",
"normality": "CREDIT",
"account_type": {
"value": "REVENUE",
"display_name": "Revenue"
},
"account_subtype": null,
"sub_accounts": [
{
"id": "59d427f8-4681-4a8c-926e-3c3963b24e8f",
"name": "Service Revenue",
"stable_name": "SERVICES_REVENUE",
"normality": "CREDIT",
"account_type": {
"value": "REVENUE",
"display_name": "Revenue"
},
"account_subtype": {
"value": "SALES",
"display_name": "Sales"
},
"sub_accounts": []
},
{
"id": "d9ac1801-3433-4666-9e49-597c3d8c9816",
"name": "Sale of Goods Revenue",
"stable_name": "GOODS_REVENUE",
"normality": "CREDIT",
"account_type": {
"value": "REVENUE",
"display_name": "Revenue"
},
"account_subtype": {
"value": "SALES",
"display_name": "Sales"
},
"sub_accounts": []
}
]
},
// Additional accounts omitted for brevity
]
}
}