Ledger routing coverage: scopes without a binding and transaction routes without the actions a TED takes
Checks the ledger routing configuration of the institution (tenant_policy/routing.ledger_bindings) before a TED fails in the ledger. It reads the configuration once and lists every scope a TED posts on: TED_OUT, P2P and TED_IN in the emission ledger, then TED_IN and the seven TED_IN_STRnnnn types in the organization and ledger of each ISPB binding. The rows of those scopes show the organization and ledger ids of the ISPB binding.
For each scope, binding says if the configuration has a binding. A scope with missing is refused at posting time. For a routes binding, the transaction route is read in Midaz, and missingActions names the actions TED takes on that scope that the binding’s operation routes lack.
TED_OUTandP2Pneedholdon the source side,commiton both sides andcancelon the source side. Abidirectionaldestination needsholdtoo; adestinationoperation route is checked forcommitonly.P2Pand everyTED_INtype needdirecton both sides: an internal transfer settles direct unless it is under review, and every inbound credit and the refund of a returned TED are posted direct.- Every inbound type in the ledger of an ISPB binding needs
reverton both sides, because a RETURN reverts the credit. Midaz acceptsrevertonly on a bidirectional operation route. TED_OUTneedsreverton both sides only when both of its operation routes arebidirectional. On a route that is notbidirectionalthe ledger refuses the revert of a fee refund, and TED posts the refund on theTED_INroutes instead. Onbidirectionalroutes the revert is attempted, and without arevertentry the refund stays pending. The emissionTED_INis that refund and needs onlydirect, unless an ISPB binding uses the same ledger.
Midaz refuses an action that no operation route of the transaction route has with 0157, and an action that the bound operation route lacks with 0117. A missing direct or hold refuses the posting itself; a missing commit, cancel or revert is refused after the STR has already settled.
routeCheck is not_found when Midaz has no route by that id, operation_route_not_in_route when the binding names no source or no destination operation route, or names one that is not linked to the transaction route (the ledger then refuses every posting on that scope). An operation route linked as optional is part of the route and is checked like a required one, and unavailable when Midaz could not be read in time; check again later. complete is true only when no scope has any of these gaps. The check does not verify the account rules of the operation routes or the fee operation routes.
Without bindings (no configuration, {}, or an empty list), every TED posts without routes: the response gives the documentState, an empty rows and complete: true. That complete says nothing about a ledger that requires routes. Run this check right after you write the configuration, before the first TED posts on it, and again after each change to the routes in Midaz. Nothing is changed by this call.
When the configuration cannot be read or is invalid, or the organization or the emission ledger_id is not configured, the response is 503 TED-0080.
Autorizações
JWT token that the Lerian Access Manager issues for your institution. Send it in Authorization: Bearer <token> on every call (except the public health probes). The tenant never comes from the body, the query, or the path. Each operation requires a role with the matching permission (see the API overview). Without it, 403 TED-0071. Missing, invalid, or expired token: 401 TED-0070.
Cabeçalhos
Correlation identifier of this request (UUID). Optional: when you omit it, or when the value is not a well-formed UUID, the platform creates a UUID and returns it in the X-Request-Id header of the response. The resolved identifier goes to the logs, spans, and audit events of this request. Keep it to open a support ticket.
Resposta
Coverage report of the ledger routing configuration. Read complete, then each scope in rows.
Coverage of the ledger routing configuration: every scope a TED posts on, its binding, and the actions its transaction route lacks.

