Pular para o conteúdo principal
POST
Write a contract off as a credit loss

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Cabeçalhos

X-Idempotency
string

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

id
string<uuid>
obrigatório

Direct-credit loan account to write off.

Corpo

application/json
reason
string
obrigatório

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.

Exemplo:

"Uncollectable after 360 days in arrears"

Resposta

Created

additionalLoss
string
obrigatório

Loss above the allowance booked to provision expense: W - B when positive (2 d.p. string).

Exemplo:

"3850.00"

carryingAmount
string
obrigatório

Carrying amount written off (W): the book net of the withheld interest, after the held cash paid what it reached (2 d.p. string).

Exemplo:

"9850.00"

currency
string
obrigatório

ISO 4217 currency of the amounts.

Exemplo:

"BRL"

debtAtWriteOff
string
obrigatório

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

Exemplo:

"11600.00"

heldCashApplied
string
obrigatório

Held cash the write-off's receipt applied to the debt first (2 d.p. string).

Exemplo:

"150.00"

id
string<uuid>
obrigatório

Recorded write-off.

loanAccountId
string<uuid>
obrigatório

Written-off loan account.

provisionConsumed
string
obrigatório

Provision the write-off consumed: the lesser of the allowance B and W (2 d.p. string).

Exemplo:

"6000.00"

provisionReleased
string
obrigatório

Allowance beyond the loss booked as a provision reversal: B - W when positive (2 d.p. string).

Exemplo:

"0.00"

reason
string
obrigatório

Why the contract was written off.

recordedBy
string
obrigatório

Subject of the validated identity that wrote it off; empty when none reached the route.

requestId
string
obrigatório

X-Idempotency key the write-off was recorded under.

withheldDerecognized
string
obrigatório

Withheld interest cleared from rendas a apropriar (2 d.p. string).

Exemplo:

"1600.00"

writtenOffAt
string<date-time>
obrigatório

RFC 3339 instant the write-off was recorded, with fractional seconds; the server clock dates it.