What you get
Brazil Rails
Lerian-owned messaging straight to BACEN and its market infrastructures.
Interfaces
The product surface over a rail: the API, the ledger integration, and the operational controls.
Midaz
The ledger that records the money an interface moves.
Reporter
Renders the daily CCS remittance file Lerian CCS submits.
Streaming Hub
Delivers Lerian CCS and Lerian SCR events to a sink you own.
How the pieces fit together
The native path takes four steps:
- Your application calls TED Lerian. The interface gives you the API, the ledger events, and the operator workflows.
- TED Lerian hands the message to Lerian SPB, which reaches the STR over the RSFN.
- Lerian SPB dispatches the message to BACEN, with no connectivity partner in the path. BACEN confirms settlement asynchronously.
- The rail emits settlement facts and computes no balance of its own. Your ledger consumer records the money movement.
- Your application calls a plugin. Pix JD, Pix BTG, TED JD, and Payments BTG ship as Midaz plugins. Pix Lerian is Lerian’s own Pix plugin, and it also posts to Midaz.
- The provider carries the regulated connectivity. JD reaches BACEN’s SPI and DICT for a direct participant, and BTG connects an indirect participant.
- Pix JD posts every settled Pix movement to Midaz, with the external leg against the clearing account. TED JD reserves funds in Midaz as a hold, then debits them when the transfer settles. Payments BTG records boletos and bill payments against your Midaz ledger.
What each piece owns
Adopt it one piece at a time
1
Pick the rail and the model
Choose native messaging for a direct link, or a partner interface for JD or BTG connectivity.
2
Start with one interface
Lerian sets a partner interface’s connection to Midaz at deploy time, and your application never sees it.
3
Wire your ledger consumer
On Lerian SPB, record a pending posting on
str.operation.accepted. Take the final position from the settlement.* facts, and deduplicate on the (ce-source, ce-id) pair.4
Add the regulatory rails
Add Lerian CCS, Lerian SISBAJUD, and Lerian SCR as your obligations require.
Bring your own
- Your ledger. A native rail emits settlement facts for your ledger consumer, and it does not require a particular ledger.
- Your certificates and keys. Lerian SLC delegates signing to a custody backend you control, and the private key never leaves your custody. Each Consignado CLT (Dataprev) tenant uses its own ICP-Brasil client certificate.
- Your access control. Access Manager authenticates a partner plugin’s API, and the plugin validates every incoming request when you enable it.
- Your event consumers. TED Lerian delivers control-plane events to webhooks you register. TED JD notifies your endpoint when a transfer completes, fails, or needs attention. The Consignado CLT (Dataprev) rail has its own subscription API.
- Your operators. Enable a payment plugin in the Lerian Console, and its menu item appears in the Midaz module sidebar. If you disable it, its configuration stays.
A worked example
One TED through TED Lerian posts in two phases:
- Your application calls TED Lerian to send the transfer.
- Lerian SPB dispatches the STR message to BACEN and returns the status
ACCEPTED. That status means dispatch acceptance, not settlement. - The
str.operation.acceptedevent signals that acceptance. Your ledger consumer records a pending posting. - The operation moves to
CONFIRMEDwhensettlement.settledarrives. Your consumer finalizes the posting. - On
settlement.returned, a confirmed return reverses a settled original. Your consumer reverses the parent posting.
Start here
Brazil Rails
One anchor per rail, and the messaging that reaches it.
Interfaces
Every interface, and the paths in production today.
Native messaging and partner interfaces
How the two connection models compare.

