Pular para o conteúdo principal
GET
Get boleto by ID

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Cabeçalhos

X-Organization-Id
string

Midaz organization the boleto belongs to. Required: a request without it, or with a value that is not a canonical UUID, is refused with 400 PBP-0025. A boleto of another organization is answered 404, exactly as one that does not exist.

Parâmetros de caminho

id
string<uuid>
obrigatório

Boleto identifier (UUID).

Exemplo:

"123e4567-e89b-12d3-a456-426614174000"

Resposta

OK. The boleto.

amount
string
obrigatório
cancelable
boolean
obrigatório

Whether cancelling this boleto would effect a cancellation at the provider. Always present. Derived from the boleto's state, not from any request field: true only for a CREATED boleto that carries a providerId. An already-canceled boleto reads false even though POST /v1/boletos/{id}/cancel answers it 200 as an idempotent replay.

createdAt
string
obrigatório
dueDate
string
obrigatório
id
string
obrigatório
kind
string
obrigatório

Issuance form of the boleto: SINGLE for a standalone boleto, INSTALLMENT for an installment of a series, BATCH for an item of a batch, which carries batchId and batchPosition.

ledgerId
string
obrigatório

Midaz ledger the boleto was written with. Always present.

midazAccountId
string
obrigatório

Midaz account the boleto was issued for: the midazAccountId it was created with. The settlement credit of a settled boleto is posted to this account. Always present.

organizationId
string
obrigatório

Midaz organization the boleto was written with. Always present, and always the organization of the X-Organization-Id header.

payer
object
obrigatório
status
string
obrigatório
type
string
obrigatório
updatedAt
string
obrigatório
barcode
string
batchId
string<uuid>

Batch the boleto was created in, as one of its items. Present only on a boleto of kind BATCH, absent on every other kind.

Exemplo:

"0192a3b4-c5d6-7e8f-9a0b-1c2d3e4f5a6b"

batchPosition
integer<int64>

Position of the boleto in its batch, zero-based: the position of its item in the batch request. Present only on a boleto of kind BATCH, absent on every other kind.

Intervalo obrigatório: 0 <= x <= 24
Exemplo:

3

canceledAt
string
cancellationReason
string
digitableLine
string
discount
object

The first discount band, whether it was sent as discount or first in discounts.

discounts
object[] | null

Every discount band of the boleto, in the order they apply, the first included. Absent when the boleto grants no discount.

documentNumber
string

Payee's own reference of the charge (seu numero), as recorded. Present only when informed at issuance; an installment of a series carries its own, from documentNumbers. Answered as the payee sent it, so it can hold quotes, &, =, +, - or @: encode it for the place it is written to, such as a spreadsheet cell or a web page.

errorMessage
string
excessPayments
object[]

Payments a SETTLED hybrid boleto received after it was settled, by the leg that did not settle it. Hybrid boletos (boleto with Pix) are not available on this service and no read or list shows one, so this member is absent.

Maximum array length: 10
failedAt
string
fine
object
guarantor
object

Final beneficiary (sacador avalista) of the boleto: the holder of the issuing account, read from that account's registration data at issuance. It is a snapshot: a later change to the registration does not change it. Absent on boletos issued before the final beneficiary was derived.

inactivatedAt
string
installmentLabel
string
instructions
string
interest
object
midazOperationId
string
ourNumber
string

Bank-side identification of the boleto (nosso numero), as assigned by the provider, with leading zeros, at the width of the provider the boleto was issued at. How it becomes known depends on that provider: either it is read from the barcode, in the instrument's form, and is absent while the provider has not produced a valid barcode; or the provider returns it in its answer to the issuance, and it is present while the boleto has no barcode or digitable line yet. When the payee supplied ourNumber on issuance, this field still reports the provider's value and not the value supplied: if the two differ, the value here is the one the provider issued, and the divergence is recorded by the service. Optional: absent for boletos issued before this field existed, and absent while the provider has not made it known. Absence means not yet known; the periodic reconciliation fills it in once the provider makes it known, with no action needed from the client; it is never sent as an empty string.

Exemplo:

29

ourNumberDigit
string

Check digit of ourNumber, computed by the bank and never accepted in a request. Optional: absent whenever the provider the boleto was issued at did not return it, in which case ourNumber is presented alone, with no trailing hyphen. It is absent in particular when the payee supplied ourNumber: a provider returns the digit only for numbers it assigned itself, and some providers never return it. When present, the canonical presentation is {ourNumber}-{ourNumberDigit}.

Exemplo:

"3"

paidVia
enum<string>

Leg by which the boleto was paid: BOLETO for a payment of its barcode or digitable line. Present only on a SETTLED boleto, absent on every other status. PIX, a payment of a hybrid boleto's Pix QR code, is not served: hybrid boletos (boleto with Pix) are not available on this service, and no read or list shows one.

Opções disponíveis:
BOLETO,
PIX
paymentDeadline
string<date>

Last day the boleto can be paid, YYYY-MM-DD: the one informed at issuance or, without it, the due date plus the tenant's setting for the provider or, with no setting, the provider's own default, batch items included; on LERIAN, the due date plus the agreement's paymentDeadlineDays. Absent on boletos issued before the service recorded the deadline, when the provider registers no deadline, and while LERIAN has not answered the emission.

Exemplo:

"2030-01-31"

pendingAmendment
object

The amendment request awaiting the provider's outcome. The terms above stay the ones in force until the provider confirms it. Absent when there is none: only a CREATED boleto can have one.

pendingCancellation
object

The cancellation attempt awaiting the provider's answer, including while a provider that answers at once is being called; the boleto stays CREATED until the answer. Absent when there is none.

pixLocation
string

Location of the dynamic Pix QR code of a hybrid boleto, whose payload is qrCode. Hybrid boletos (boleto with Pix) are not available on this service, so this member is absent.

Exemplo:

"pix.example.com/qr/v2/cobv/5d9a8e91c88c43db942d01a0ad92ffc3"

pixTxId
string

Identifier of the due-date Pix charge of a hybrid boleto. Hybrid boletos (boleto with Pix) are not available on this service, so this member is absent.

Exemplo:

"35dabf21d3b941e8a937409b8749f281"

providerId
string

Identifier the payment provider assigned to this boleto. Quote it when you contact the provider about this boleto.

providerReason
string

Only on a FAILED installment of a series that its provider refused from its own refusal catalog: the stable reason of the rule the request broke, which tells apart the rules one code covers (for example PAYMENT_DEADLINE_BEFORE_DUE with PBP-0832). That installment's BOLETO_FAILED carries the code as errorCode and this reason as providerReason. Absent on every other boleto, a single boleto included: the emission request is answered with its refusal.

Pattern: ^[A-Z][A-Z0-9_]{0,63}$
Exemplo:

"PAYMENT_DEADLINE_BEFORE_DUE"

qrCode
string

Pix copy-and-paste code of a hybrid boleto's Pix charge. Hybrid boletos (boleto with Pix) are not available on this service, so this member is absent.

reversedAt
string

When the boleto became REVERSED: the payment was returned to the payer; the boleto will not be paid. RFC 3339 in UTC. Present only on a REVERSED boleto, absent on every other status.

Exemplo:

"2026-11-10T17:00:00Z"

seriesId
string
settledAmount
string
settledAt
string
settlement
object
Under development

How the paid amount reaches the beneficiary's account. Present only when status is SETTLED, absent on every other status. status does not change with it: a paid boleto stays SETTLED at every stage, after a reversal or a chargeback included. Boletos settled before this member existed read mode DIRECT, state RELEASED and cycle 1.

Exemplos:
baseSituation
enum<string>
Under development

Situation of the title at the base (CIP/Nuclea), alongside status, which keeps today's rules. Present on every boleto that reached the base; absent on PENDING and FAILED, which never did. It follows status (SETTLED as PAID, CANCELED as CANCELLED, INACTIVATED as LAPSED, every other status as OPEN, REVERSED included), with exceptions recorded by the collections module: a paid title reopened at the base reads OPEN while status stays SETTLED, which is terminal; if that reopened title is then canceled or lapses, it reads CANCELLED or LAPSED and status still stays SETTLED (and a canceled one that reopens again reads OPEN); a canceled title reopened at the base reads OPEN and status goes back from CANCELED to CREATED, the transition that already exists, so the boleto can be paid again. Boletos written before this member existed are filled from their status.

Opções disponíveis:
OPEN,
PAID,
CANCELLED,
LAPSED
Exemplo:

"OPEN"