Operations
In Midaz, Operations are the atomic actions within the Ledger.
Midaz has a double-entry design, which means that each transaction is composed of at least two operations.
For example (figure 1), a transaction to transfer R$1000 from one account to the other has two operations:
- one operation to debit R$ 1000 from the source account.
- one operation to credit R$ 1000 to the destination account.
![The image shows a simple flowchart representing a financial transaction of transferring BRL 1,000.00. It is enclosed in a rectangle labeled "Transfer Transaction BRL 1,000.00" and contains two operations: a red "Debit Operation" box on the left with the text "@source_account - BRL 1,000.00," and a green "Credit Operation" box on the right with the text "@destination_account + BRL 1,000.00." An arrow points from the debit operation to the credit operation, indicating the flow of the transaction.](https://files.readme.io/9d17b227961dad98c6bbe7d761c737519c3d13f3b796d8e4bc8601b303eb97ee-transaction_transfer.jpg)
Figure 1. Example of the Operations in a transaction to transfer BRL 1.000,00.
Chart of Accounts (Accounting Route)
The Chart of Accounts defines the flow of accounting routes and the settlement of values in the ledger. Each operation within a transaction is tagged with a corresponding chart-of-accounts entry, grouped by a chart-of-accounts group.
Managing Operations
The Operations are automatically created by Midaz, so you cannot create an Operation alone. However, you can perform the following actions to manage the Operations of a transaction.
View Operation Details
- by Account: To view all operations from a specific account, use the List Operations by Account.
- To view the details of a specific operation from an account, use the Retrieve an Operation by Account endpoint.
- by Portfolio: To view all operations of a specific Portfolio, use the List Portfolio Operations.
- To view the details of a specific operation from a Portfolio, use the Retrieve an Operation by Portfolio endpoint.
Edit an Operation
- To edit Operation details, use the Update an Operation endpoint.
Updated about 1 month ago