Participants
- Your institution. Your system. It calls the Midaz API.
- Midaz. The ledger. It keeps the organizations, ledgers, assets, accounts, balances and transactions.
Before you start
- Your system has a token that can create organizations, ledgers, assets, accounts and transactions in Midaz.
- Choose the code of the asset, for example
BRL, and the alias of each account, for example@customer-1.
Diagram
Steps through the API
Rules
- A debit is the account that the money leaves. A credit is the account that the money enters. The debits and the credits each total the transaction
amount. - To bring value into the ledger, debit the external account
@external/<code>and credit your account. To send value out, debit your account and credit@external/<code>. - When the Tracer mode of the ledger is
enforce, Midaz refuses the transaction before it moves any balance if Tracer does not allow it.
How you know it finished
Read the transaction with
GET /v2/organizations/{organization_id}/ledgers/{ledger_id}/transactions/{transaction_id}. Its status is APPROVED. The balances of the source and destination accounts show the new amounts.

