Account balance flow
Retrieve account operations
Use the List Operations by Account endpoint to list operations for a specific account:
Apply query filters
Use query parameters to define the statement period, control pagination, and filter the operations that the endpoint returns.
Required for statement queries
You need these fields for this statement use case. They define the statement window and make the result predictable for users.
Required for pagination
Optional filters
The endpoint can return the following operation types:
Use
type to classify the accounting movement. Use direction to decide whether the statement shows the amount as positive or negative.Example request:Transform operations into statement entries
Each object in the
items array can become one statement row.Required for statement rendering
You need these fields to render a useful statement row. The API does not require all of them. A statement without them loses meaning, traceability, or balance context.
Recommended for user-friendly statements
Midaz returns the ledger movement. The integrating system should add business context in the
metadata of each relevant source.from[] and distribute.to[] entry when it creates the transaction; metadata does not propagate from source entries to destination entries.Example transformation:Apply statement display rules
Use direction to determine the sign
Handle hold and release operations separately
Do not display operations with the following types as regular settled movements:ON_HOLDRELEASE
ON_HOLDshould appear as a balance hold or temporary lockRELEASEshould appear as a balance release or unlock
Define a settled-operation policy
Do not usebalanceAffected as a settled-operation predicate. A normal ON_HOLD operation can set balanceAffected to true without changing the available balance. Define your statement policy explicitly from operation type and status, and show ON_HOLD and RELEASE according to the hold/release rules above.Example statement output
After you apply filters, transform operations, and apply display rules, the final statement can look like this:
The API does not return a ready-made statement page. It returns ledger events that the integrating system turns into a statement experience.
Add business context
The operations endpoint returns accounting events. A user-facing statement needs more context than the ledger movement alone. Send business metadata in each operation’s metadata when you create the transaction. Midaz stores those fields with that operation. The statement can use them later to show who, what, and why behind the movement.counterpartydocumentpixKeyendToEndIdchannelcategory
- “Pix received from John Doe”
- “Card purchase at Coffee Shop”
- “Transfer to Savings Account”

