Pular para o conteúdo principal
GET
Export the discovered accounting routes as a tenant policy document

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Cabeçalhos

X-Organization-Id
string

Midaz organization to export. Required: a request without it, or with a value that is not a canonical UUID, is refused with 400 PBP-0025.

Parâmetros de consulta

ledgerId
string

A Midaz ledger of the organization, the one the route listing goes through. Required: absent, blank or not a canonical UUID is refused with 400 PBP-0026.

Resposta

OK

discovered
string
obrigatório

What the discovery found for the organization: complete (every canonical route; the entry is enabled with the three flows, and its ledgers list this ledger plus the ones already stored for the organization), not_provisioned (no canonical route; the entry is disabled and lists no ledger) or the accounting_routes_* reason of its refusal.

Exemplo:

"complete"

exportable
boolean
obrigatório

Whether document is present and can be written as it is.

ledgerId
string
obrigatório

Ledger the route listing went through, in canonical form.

organizationId
string
obrigatório

Organization exported, in the lowercase canonical form the document keys it by.

document
object

The routing.organizations document to write: the stored organizations unchanged, with this organization's entry replaced or appended. It has passed the same parser the write goes through. Send it as {"value": } to PUT /tenant-system/tenant_policy/routing.organizations. Absent when exportable is false.

reason
string

Why exportable is false: an accounting_routes_* reason of the discovery (accounting_routes_incomplete, accounting_routes_ambiguous, accounting_routes_malformed, accounting_routes_dependency_unavailable, accounting_routes_access_denied or accounting_routes_unreadable), tenant_policy_document_invalid (the stored document is refused by the parser: replace it first) or tenant_policy_document_full (the stored document already lists 100 organizations, none of them this one). Absent when exportable is true.