Skip to main content
GET
Get a remittance receipt

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Headers

X-Organization-Id
string

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

Path Parameters

remittance_id
string<uuid>
required

Identifier of the remittance.

Example:

"019a7c1e-4b2d-7f30-9c11-2a5e8d0f4b70"

Response

OK. The remittance receipt.

agreementId
string<uuid>
required

The CNAB agreement the file header names.

Example:

"019a7c1e-4b2d-7f30-9c11-2a5e8d0f4b61"

alerts
enum<string>[]
required

NSA_GAP: the NSA skips numbers. NSA_OUT_OF_ORDER: the NSA is below the last accepted. The file is processed in both cases.

Available options:
NSA_GAP,
NSA_OUT_OF_ORDER
contentSha256
string
required

SHA-256 of the normalized file (accents removed, CRLF), lowercase hex. Part of the remittance identity with the agreement and the NSA.

Pattern: ^[0-9a-f]{64}$
counts
object
required
fileGenerationDate
string<date>
required

Generation date of the file header (G016), always present.

Example:

"2026-11-16"

id
string<uuid> | null
required

Identifier of the remittance; null only on a DRY_RUN.

notices
enum<string>[]
required

Fields taken as information only. MESSAGES_NOT_SENT: messages of the batch header, R and S are not sent to the boleto. ACCEPT_FLAG_INFORMATIONAL: the accept flag (25.3P) is kept but not sent. PROTEST_DAYS_IGNORED: protest days (37.3P) ignored with protest code 3 or 7.

Available options:
MESSAGES_NOT_SENT,
ACCEPT_FLAG_INFORMATIONAL,
PROTEST_DAYS_IGNORED
nsa
integer<int64>
required

NSA of the file header (G018).

Required range: 1 <= x <= 999999
Example:

43

receivedAt
string<date-time>
required

When the file was received, RFC 3339 in UTC.

recordCount
integer<int64>
required

Records in the file, headers and trailers included.

requestedBy
string
required

Subject of the token that sent the file.

Maximum string length: 255
sizeBytes
integer<int64>
required

Size of the file as sent.

Required range: 0 <= x <= 4194304
status
enum<string>
required

VALIDATED: stored, no line started yet. PROCESSING: lines being executed. COMPLETED: every line EXECUTED or REJECTED (also at once, when every line was rejected at validation). DRY_RUN: the answer of a dry run, never stored. Treat the list as open.

Available options:
VALIDATED,
PROCESSING,
COMPLETED,
DRY_RUN
titleCount
integer<int64>
required

Titles (P segments with their companions) in the file; one line each.

completedAt
string<date-time> | null

When every line ended, RFC 3339 in UTC; null before.

expectedNsa
integer<int64> | null

The NSA expected (last accepted + 1) when this one differs from it; null otherwise and on a DRY_RUN. 1000000 means the 6-digit range of G018 is exhausted: no NSA above the last one is accepted, and a lower NSA still free is accepted with NSA_OUT_OF_ORDER.

Required range: 1 <= x <= 1000000
fileGeneratedAt
string<date-time> | null

Generation date and time of the file header (G016, G017), read as BrasΓ­lia time and answered in UTC; null when the header has no time.

lines
object[]

Only on a DRY_RUN, every title line with its outcome (id, boletoId and executedAt null). Absent otherwise.