Skip to main content
POST
Record a payoff refund

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Headers

X-Idempotency
string

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

Path Parameters

id
string<uuid>
required

Settled loan account.

Body

application/json
amount
string
required

Amount paid to the borrower (2 d.p. string): above zero and at most what the contract still owes.

Example:

"297.48"

refundedAt
string<date-time>

RFC 3339 instant the money left by Pix or TED, between the contract's settlement and now, tolerating 5 minutes of client clock skew. Defaults to now.

Example:

"2026-10-07T15:00:00Z"

Response

Created

amount
string
required

Amount refunded (2 d.p. string).

Example:

"297.48"

amountOutstanding
string
required

What the client still has to pay the borrower (2 d.p. string).

Example:

"197.48"

amountRefunded
string
required

What the client has recorded as paid back so far (2 d.p. string).

Example:

"100.00"

amountToRefund
string
required

The held cash left on the settled contract, whatever settled it, owed back to the borrower: what the borrower's payments left unapplied and the interest moved there for days after the exit (2 d.p. string).

Example:

"297.48"

id
string<uuid>
required

Recorded refund.

loanAccountId
string<uuid>
required

Settled loan account.

refundedAt
string<date-time>
required

RFC 3339 instant the money left.

requestId
string
required

X-Idempotency key the refund was recorded under.

settledAt
string<date-time>
required

RFC 3339 instant the contract settled.