Skip to main content
GET
Get a provider's ledger counterparty

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Path Parameters

ledger_id
string
required

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

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

provider_type
string
required

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

"LERIAN"

Query Parameters

assetCode
string
default:BRL

Asset of the counterparty, uppercase. BRL when omitted.

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

"BRL"

Response

OK.

accountAlias
string
required

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

Required string length: 2 - 100
Example:

"@external/BRL"

assetCode
string
required

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

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

"BRL"

isDefault
boolean
required

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

Example:

false

ledgerId
string | null
required

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

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

providerType
string
required

Provider whose operations post against the counterparty.

Maximum string length: 20
Example:

"BTG"

version
integer<int64>
required

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.

Required range: x >= 0
Example:

1

updatedAt
string<date-time> | null

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

Example:

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