Ledger Accounts
Manage chart of accounts with the Open Ledger API.
The ledger accounts endpoints allow you to create, retrieve, update, and manage the chart of accounts for your entities. Ledger accounts represent the different categories used to classify financial transactions.
Ledger Account Objects
A ledger account in Open Ledger represents a specific category in your chart of accounts. Each account has the following properties:
Account Types
Open Ledger supports the following account types:
- ASSET: Resources owned by the entity (cash, accounts receivable, inventory)
- LIABILITY: Obligations owed by the entity (accounts payable, loans)
- EQUITY: Owners’ interests in the entity (capital, retained earnings)
- REVENUE: Income earned from business activities (sales, service fees)
- EXPENSE: Costs incurred in business operations (rent, salaries, utilities)
Financial types provide more specific categorization within these broader types, such as:
- CASH, ACCOUNTS_RECEIVABLE, INVENTORY (Asset subtypes)
- ACCOUNTS_PAYABLE, SHORT_TERM_DEBT (Liability subtypes)
- RETAINED_EARNINGS, OWNER_EQUITY (Equity subtypes)
- SALES, SERVICE_REVENUES (Revenue subtypes)
- PAYROLL_EXPENSES, RENT_EXPENSES (Expense subtypes)
Create a Ledger Account
Create a new ledger account in the entity’s chart of accounts.
Request Body
Response
List Ledger Accounts
Retrieve a list of ledger accounts for an entity.
Query Parameters
Response
Get a Ledger Account
Retrieve a specific ledger account by ID.
Path Parameters
Query Parameters
Response
Update a Ledger Account
Update an existing ledger account.
Path Parameters
Request Body
Response
Returns the updated ledger account object.
Delete a Ledger Account
Delete a ledger account.
You can only delete accounts that have no transactions and no child accounts.
Path Parameters
Response
A successful request will return a 204 No Content
response with no body.
Get Ledger Account Balance
Get the current balance for a ledger account.
Path Parameters
Query Parameters
Response
Get Ledger Account Transactions
Get transactions for a specific ledger account.
Path Parameters
Query Parameters
Response
Import Chart of Accounts
Import a chart of accounts from a template or file.
Request Body
Response
Error Handling
Best Practices
-
Consistent account structure: Use a standardized chart of accounts across all entities.
-
Unique account codes: Ensure each account has a unique numeric code following a logical numbering system.
-
Hierarchical organization: Use parent-child relationships to create meaningful account hierarchies.
-
Use categories: Create category accounts to group related accounts together.
-
Standard templates: Use standard templates for common business types to get started quickly.