Saltar al contenido principal
GET
Get a provider's ledger counterparty

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Parámetros de ruta

ledger_id
string
requerido

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
Ejemplo:

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

provider_type
string
requerido

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}$
Ejemplo:

"LERIAN"

Parámetros de consulta

assetCode
string
predeterminado:BRL

Asset of the counterparty, uppercase. BRL when omitted.

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

"BRL"

Respuesta

OK.

accountAlias
string
requerido

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

Required string length: 2 - 100
Ejemplo:

"@external/BRL"

assetCode
string
requerido

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

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

"BRL"

isDefault
boolean
requerido

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

Ejemplo:

false

ledgerId
string | null
requerido

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
Ejemplo:

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

providerType
string
requerido

Provider whose operations post against the counterparty.

Maximum string length: 20
Ejemplo:

"BTG"

version
integer<int64>
requerido

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.

Rango requerido: x >= 0
Ejemplo:

1

updatedAt
string<date-time> | null

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

Ejemplo:

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