Pular para o conteúdo principal
GET
Get a provider's ledger counterparty

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Parâmetros de caminho

ledger_id
string
obrigatório

Midaz ledger whose counterparty is read or written, the same identifier the boleto and the payment record as their ledger. Each ledger has its own counterparty per provider and asset. Must be a canonical UUID (any case); otherwise 400 PBP-0026.

Required string length: 1 - 100
Exemplo:

"0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a6c"

provider_type
string
obrigatório

Provider whose ledger counterparty is read or written, as the capabilities read names it. Matched case-insensitively.

Required string length: 1 - 20
Pattern: ^[A-Za-z][A-Za-z0-9_]{0,19}$
Exemplo:

"LERIAN"

Parâmetros de consulta

assetCode
string
padrão:BRL

Asset of the counterparty, uppercase. BRL when omitted.

Required string length: 3 - 10
Pattern: ^[A-Z]{3,10}$
Exemplo:

"BRL"

Resposta

OK.

accountAlias
string
obrigatório

Alias of the ledger account, with the leading @ of the Midaz alias; @external/ is the default counterparty.

Required string length: 2 - 100
Exemplo:

"@external/BRL"

assetCode
string
obrigatório

Asset code in the ledger. The postings of the Payments use BRL today.

Required string length: 3 - 10
Pattern: ^[A-Z]{3,10}$
Exemplo:

"BRL"

isDefault
boolean
obrigatório

True when the postings of the (ledger, provider, asset) use @external/: no counterparty is configured, or the configured one is @external/.

Exemplo:

false

ledgerId
string | null
obrigatório

Midaz ledger of the counterparty. Null only on the default item of the tenant list, which applies to every ledger with no configured counterparty.

Maximum string length: 100
Exemplo:

"0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a6c"

providerType
string
obrigatório

Provider whose operations post against the counterparty.

Maximum string length: 20
Exemplo:

"BTG"

version
integer<int64>
obrigatório

Version of this (tenant, ledger, provider, asset) counterparty. 0 when never configured. Incremented by every accepted write. A write sends it back; a stale one is refused with 409 PBP-0705.

Intervalo obrigatório: x >= 0
Exemplo:

1

updatedAt
string<date-time> | null

When the counterparty was last written, in UTC. Null when never configured.

Exemplo:

"2026-11-07T14:05:09Z"