Pular para o conteúdo principal
GET
Get a write-off

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Parâmetros de caminho

write_off_id
string<uuid>
obrigatório

Identifier of the write-off.

Exemplo:

"5b0c1e2d-3f4a-4b5c-8d6e-7f8091a2b3c4"

Resposta

OK. The write-off.

amount
string
obrigatório

Amount of the write-off in reais, as a decimal string with two decimal places: the one Núclea notified, or the title's when the write-off carries none.

Maximum string length: 32
Pattern: ^[0-9]{1,15}(\.[0-9]{1,2})?$
Exemplo:

"1000.00"

cancelled
boolean
obrigatório

Whether the write-off was cancelled.

Exemplo:

false

creditState
enum<string>
obrigatório

Where the write-off's credit is. NONE: no credit, because the write-off moves no money or was cancelled before its credit was owed. TO_RELEASE: credit waiting for its release. RELEASED: credit released to the account. REVERSED: credit reversed before its release, the write-off cancelled. CHARGEBACK_PENDING: a reversal after the release that the ledger refused, waiting to be processed again. CHARGED_BACK: credit reversed after its release.

Opções disponíveis:
NONE,
TO_RELEASE,
RELEASED,
REVERSED,
CHARGEBACK_PENDING,
CHARGED_BACK
Exemplo:

"TO_RELEASE"

held
boolean
obrigatório

Whether the release of the write-off's credit is held; holdReason says why.

Exemplo:

false

id
string<uuid>
obrigatório

Identifier of the write-off.

Exemplo:

"5b0c1e2d-3f4a-4b5c-8d6e-7f8091a2b3c4"

organizationId
string<uuid>
obrigatório
read-only

Midaz organization of the title's account.

Exemplo:

"0192a3b4-5c6d-7e8f-9a0b-1c2d3e4f5a6b"

origin
enum<string>
obrigatório

Message the write-off reached the PCR by. DDA0108R2: a write-off notice by message. ADDA108RR2: a write-off notice by file. ADDA114RR2: a write-off notice of the receiving contingency file. ADDA120: the lapse of the title after its payment deadline, which carries neither an identifier nor an amount of Núclea. DESTINATARIA: a write-off by the Destinatária, which carries no amount.

Opções disponíveis:
DDA0108R2,
ADDA108RR2,
ADDA114RR2,
ADDA120,
DESTINATARIA
Exemplo:

"DDA0108R2"

pcrWriteOffId
string | null
obrigatório

Identifier Núclea gave the write-off (NumIdentcBaixa); null only on the lapse of the title (origin ADDA120), which carries none.

Pattern: ^[0-9]{1,19}$
Exemplo:

"2026101400000098765"

receivedAt
string<date-time>
obrigatório

When collections received the notice of the write-off, RFC 3339 in UTC; not when the write-off happened (writeOffAt).

Exemplo:

"2026-11-10T16:43:05Z"

route
enum<string>
obrigatório

Route the write-off settles by. CMP: a SILOC cycle. STR: the STR, outside the cycles. INTRABANK: inside the institution, on the write-off itself. PIX: Pix, outside the cycles. NONE: no money moves, so the write-off never makes a credit.

Opções disponíveis:
CMP,
STR,
INTRABANK,
PIX,
NONE
Exemplo:

"STR"

settlementState
enum<string>
obrigatório

Where the money of the write-off is on its route. AWAITING_SETTLEMENT: not settled yet. SETTLED: settled, at settledAt. NOT_SETTLED: a CMP write-off its cycle did not settle. NO_MOVEMENT: route NONE, with nothing to settle.

Opções disponíveis:
AWAITING_SETTLEMENT,
SETTLED,
NOT_SETTLED,
NO_MOVEMENT
Exemplo:

"AWAITING_SETTLEMENT"

titleId
string<uuid>
obrigatório

Collections title the write-off is of.

Exemplo:

"7c9e6679-7425-40de-944b-e07fc1f90ae7"

writeOffAt
string<date-time> | null
obrigatório

When the write-off happened at Núclea (DtHrSitBaixa), RFC 3339 in UTC: the base of the credit release date and of the cancellation deadline. Null only on route NONE, on the lapse of the title, which carries none.

Exemplo:

"2026-11-10T16:42:00Z"

accountId
string<uuid>

Midaz account of the title, the account that issues it: the write-off's credit always goes to it, under a pooled account too.

Exemplo:

"0192a3b4-5c6d-7e8f-9a0b-1c2d3e4f5a6d"

cancellationDeadline
string<date-time> | null

End of the period in which the write-off can be cancelled, RFC 3339 in UTC: the one the PCR gave or, when it gave none, 23:59:59 in Brasília of the first business day of the SILOC calendar after the settlement date of the route. Null only on route NONE.

Exemplo:

"2026-11-12T02:59:59Z"

creditReleaseDate
string<date> | null

First day the credit can be released: the write-off's movement day plus the title's creditDelayBusinessDays business days of the SILOC calendar. The movement day is the civil date of writeOffAt in Brasília, or the next business day when it falls on a weekend or holiday. The release waits for this date and for the settlement and, under the title's releasePolicy AFTER_CANCELLATION_WINDOW, for the end of the cancellation deadline. Null until the credit is owed, and always on route NONE.

Exemplo:

"2026-11-12"

expectedCycleDate
string<date> | null

Date of the SILOC cycle the write-off is expected to settle in; null when the PCR gave none.

Exemplo:

"2026-11-11"

holdReason
enum<string> | null

Why the release is held. STR_UNCONFIRMED: an STR write-off whose credit nobody confirmed yet. NOT_SETTLED_IN_CYCLE: a CMP write-off its cycle did not settle. SETTLEMENT_OVERDUE: a CMP write-off still without its settlement past its expected cycle and the tolerance. NEGOTIATED: a write-off of a boleto flagged as negotiated. Null when the release is not held.

Opções disponíveis:
STR_UNCONFIRMED,
NOT_SETTLED_IN_CYCLE,
SETTLEMENT_OVERDUE,
NEGOTIATED
scheduledRelease
object | null

Manual release an operator scheduled for a date, cancellable until it; null when none is scheduled.

settledAt
string<date-time> | null

When the money of the write-off settled on its route, RFC 3339 in UTC; null while it has not.

Exemplo:

"2026-11-11T08:20:00Z"

type
string | null

Type of the write-off at Núclea (TpBaixa), such as 0 for a full interbank write-off or 9 for a full write-off via STR; null on the lapse of the title.

Pattern: ^[0-9]{1,2}$
Exemplo:

"9"