Preflight the accounting routes of a ledger
Reports whether Payments can post to one ledger of your organization, and the state of each canonical accounting flow there.
Providers: BTG.
How it works
- Send the organization in
X-Organization-Idand the ledger in theledgerIdquery parameter. - The flows are
BOLETO_IN,PAYMENT_OUTandDARF_OUT. Each readscomplete,absent,incomplete,ambiguousormalformed. - An
incompleteflow lists the missing route codes. Anambiguousflow lists the repeated codes. Amalformedflow names the code and the reason. - Accounting routes belong to the organization. From Midaz v4.1.0 on, every ledger of one organization reports the same flows.
validateRoutesandreadybelong to the requested ledger.readyis the verdict on the whole ledger. Acompleteflow in a ledger that is not ready still does not post.reasonnames the class of the verdict. It is absent when the ledger holds every canonical route.- The values of
reasonareaccounting_routes_not_provisioned,accounting_routes_required_but_absent,accounting_routes_incomplete,accounting_routes_ambiguous,accounting_routes_malformed,accounting_routes_dependency_unavailable,accounting_routes_access_deniedandaccounting_routes_unreadable. accounting_routes_not_provisionedcomes withready: true: the ledger has no canonical route and does not validate routes.- The verdict is judged as if the accounting routes check were on.
accountingRoutesEnabledshows its current value in this deployment. - The call is read-only. It reads the ledger live and posts, caches or stores nothing. Run it right after provisioning and as often as needed.
GET
Preflight the accounting routes of a ledger
Encabezados
Parámetros de consulta
Respuesta
OK. The body has the verdict for the ledger and one entry per canonical flow.

