Skip to main content
GET
Get a write-off

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Path Parameters

write_off_id
string<uuid>
required

Identifier of the write-off.

Example:

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

Response

OK. The write-off.

amount
string
required

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

"1000.00"

cancelled
boolean
required

Whether the write-off was cancelled.

Example:

false

creditState
enum<string>
required

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.

Available options:
NONE,
TO_RELEASE,
RELEASED,
REVERSED,
CHARGEBACK_PENDING,
CHARGED_BACK
Example:

"TO_RELEASE"

held
boolean
required

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

Example:

false

id
string<uuid>
required

Identifier of the write-off.

Example:

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

organizationId
string<uuid>
required
read-only

Midaz organization of the title's account.

Example:

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

origin
enum<string>
required

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.

Available options:
DDA0108R2,
ADDA108RR2,
ADDA114RR2,
ADDA120,
DESTINATARIA
Example:

"DDA0108R2"

pcrWriteOffId
string | null
required

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

"2026101400000098765"

receivedAt
string<date-time>
required

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

Example:

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

route
enum<string>
required

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.

Available options:
CMP,
STR,
INTRABANK,
PIX,
NONE
Example:

"STR"

settlementState
enum<string>
required

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.

Available options:
AWAITING_SETTLEMENT,
SETTLED,
NOT_SETTLED,
NO_MOVEMENT
Example:

"AWAITING_SETTLEMENT"

titleId
string<uuid>
required

Collections title the write-off is of.

Example:

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

writeOffAt
string<date-time> | null
required

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.

Example:

"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.

Example:

"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.

Example:

"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.

Example:

"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.

Example:

"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.

Available options:
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.

Example:

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

"9"