Ledger Management
Learn how to manage entities and transactions in Open Ledger.
Open Ledger provides comprehensive APIs for managing entities (ledgers) and their financial transactions. This guide covers how to create, update, and delete entities, as well as how to work with transactions within those entities.
Entities
An “entity” in Open Ledger represents a financial ledger for a business entity. It contains all financial transactions and accounts for that entity.
Creating an Entity
To create a new entity, use the following endpoint:
Retrieving Entity Details
To get the details of a specific entity:
Updating an Entity
To update an existing entity:
Deleting an entity
To delete an entity:
Transactions
Transactions record financial activities within an entity. Each transaction represents a financial event such as a sale, purchase, payment, or receipt.
Adding Transactions
To add a new transaction:
Retrieving Transactions
To retrieve transactions for an entity:
You can filter transactions using various parameters:
Updating a Transaction
To update an existing transaction:
Deleting a Transaction
To delete a transaction:
Bulk Operations
Open Ledger supports bulk operations for transactions:
Bulk Create
Bulk Update
Bulk Delete
Bank Connection
Open Ledger allows you to connect bank accounts to automatically import transactions:
Creating a Bank Link
Response:
Adding Bank Accounts
Code Example
Best Practices
- Regular Reconciliation: Regularly reconcile transactions with external sources
- Consistent Categorization: Maintain a consistent categorization scheme for transactions
- Transaction Documentation: Add detailed notes and metadata to transactions
- Backup Before Bulk Operations: Create a backup before performing bulk operations
- Use Idempotency Keys: For critical operations, use idempotency keys to prevent duplication
- Handle Pagination: When retrieving large datasets, implement pagination correctly
- Error Handling: Implement robust error handling for all API calls