Saltar al contenido principal
POST
Record money a written-off borrower paid

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Encabezados

X-Idempotency
string

Idempotency key of the recovery: 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-0976). X-Request-ID is never read as the key.

Parámetros de ruta

id
string<uuid>
requerido

Written-off direct-credit loan account.

Cuerpo

application/json
amount
string

Money received: a positive decimal string with at most 2 decimal places. A repeat of the same X-Idempotency key must carry the same amount and receivedAt.

Ejemplo:

"1200.00"

receivedAt
string

RFC 3339 instant the money arrived; its São Paulo day dates the entry. Not after today and not before the write-off instant.

Ejemplo:

"2027-04-15T13:00:00Z"

Respuesta

Created

amount
string
requerido

Money received (2 d.p. string).

Ejemplo:

"9000.00"

controlReleased
string
requerido

Written-off control the recovery released (2 d.p. string).

Ejemplo:

"8650.00"

currency
string
requerido

ISO 4217 currency of the amounts.

Ejemplo:

"BRL"

id
string<uuid>
requerido

Recorded recovery.

loanAccountId
string<uuid>
requerido

Written-off loan account.

receivedAt
string<date-time>
requerido

RFC 3339 instant the money arrived, with fractional seconds.

recordedAt
string<date-time>
requerido

RFC 3339 instant the recovery was recorded.

recordedBy
string
requerido

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

recoveredBefore
string
requerido

Recovered by the recoveries recorded before this one (2 d.p. string).

Ejemplo:

"1200.00"

remainingAfter
string
requerido

Debt still standing after this recovery (2 d.p. string).

Ejemplo:

"1400.00"

requestId
string
requerido

X-Idempotency key the recovery was recorded under.

taxAmount
string
requerido

PIS/COFINS booked on the taxed part; 0.00 when nothing is taxed (2 d.p. string).

Ejemplo:

"16.28"

taxedAmount
string
requerido

Part above W: new revenue, taxed by PIS/COFINS (2 d.p. string).

Ejemplo:

"350.00"

untaxedAmount
string
requerido

Part that settles the written-off amount W first: untaxed (2 d.p. string).

Ejemplo:

"8650.00"

writeOffId
string<uuid>
requerido

Write-off the recovery pays down.

reversedAt
string<date-time>

RFC 3339 instant the recovery was reversed, with fractional seconds; absent while it stands. A reversed recovery no longer counts in recoveredTotal, remainingDebt or controlOpen.

reversedBy
string

Subject that reversed it.