Scope of this guide
This guide describes a reporting integration pattern. It is not a COSIF mapping specification and does not certify an output for BACEN submission. Define, validate, and approve any regulatory mapping in the controls and processes that own it.Use the current Midaz accounting model
For new accounting classifications, use the rubric codes in an OperationRoute’saccountingEntries.
The legacy OperationRoute.code field is deprecated and retained for backward compatibility. It is an optional external reference; Midaz does not reserve it for COSIF, does not assign it regulatory meaning, and does not write it to operations. When accounting.validateRoutes is enabled on the ledger and a matching rubric resolves, Midaz records the resolved rubric code from accountingEntries as routeCode on the operation; otherwise routeCode stays empty. Use routeCode when you join report data to classifications. Do not use code as the authoritative source for a regulatory mapping.
An OperationRoute can hold accounting entries for the transaction-lifecycle actions direct, hold, commit, cancel, and revert, plus the supplementary keys overdraft, block, and unblock. Each entry can define debit and credit rubrics with a code and description.
Build the reporting workflow
- Define your institution’s chart of accounts and the classifications required by the report.
- Configure OperationRoutes and their accounting entries according to those classifications.
- Configure a Reporter data source and template for the data available in your environment.
- Generate the report and validate its content through your accounting and regulatory controls.

