Write a contract off as a credit loss
Writes a direct-credit contract off as a credit loss (Res. CMN 4.966 art. 49) in one transaction. The held cash first pays the debt as a receipt; the entry then clears the contract’s book as the ledger holds it against rendas a apropriar for the withheld interest and the provision allowance B, booking W - B to provision expense or B - W to provision reversal, and the contract leaves the book as written off. The write-off is irreversible: money recovered later is a recovery, recorded at POST /api/v1/br/loan-accounts//credit-loss-recoveries. A contract with nothing to write off is refused (LENDER-0969): when the held cash pays all a receipt reaches and some is left, run the full payoff, which discounts it; when the book carries no loss, the detail names the deferred fee or adjustment to wait out when amortizing it would leave a loss. A consignado contract is refused. The write-off is keyed on X-Idempotency alone; redelivering the same key with the same reason replays the write-off and moves nothing; the same key with another reason is refused.
Autorizações
JWT bearer token issued by the identity provider.
Cabeçalhos
Idempotency key of the write-off: 1 to 255 bytes of UTF-8. The route refuses a request without it, or with a blank, longer or non-UTF-8 one (LENDER-0965). X-Request-ID is never read as the key.
Parâmetros de caminho
Direct-credit loan account to write off.
Corpo
Why the contract is written off: 1 to 500 characters, edge spaces trimmed. A repeat of the same X-Idempotency key must carry the same reason.
"Uncollectable after 360 days in arrears"
Resposta
Created
Loss above the allowance booked to provision expense: W - B when positive (2 d.p. string).
"3850.00"
Carrying amount written off (W): the book net of the withheld interest, after the held cash paid what it reached (2 d.p. string).
"9850.00"
ISO 4217 currency of the amounts.
"BRL"
Debt D the borrower still owes after the write-off: the contract's full payoff of the write-off day, frozen at the write-off; recoveries pay it down (2 d.p. string).
"11600.00"
Held cash the write-off's receipt applied to the debt first (2 d.p. string).
"150.00"
Recorded write-off.
Written-off loan account.
Provision the write-off consumed: the lesser of the allowance B and W (2 d.p. string).
"6000.00"
Allowance beyond the loss booked as a provision reversal: B - W when positive (2 d.p. string).
"0.00"
Why the contract was written off.
Subject of the validated identity that wrote it off; empty when none reached the route.
X-Idempotency key the write-off was recorded under.
Withheld interest cleared from rendas a apropriar (2 d.p. string).
"1600.00"
RFC 3339 instant the write-off was recorded, with fractional seconds; the server clock dates it.

