Saltar al contenido principal
POST
Record repayment

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Encabezados

X-Idempotency
string

Idempotency key of the payment: 1 to 128 characters of letters, digits and - _ . :. The route refuses a request without it, or with a blank or unusable one (LENDER-0301). X-Request-ID is never read as the key.

Ejemplo:

"550e8400-e29b-41d4-a716-446655440011"

Parámetros de ruta

id
string<uuid>
requerido

Loan account identifier (UUID).

Ejemplo:

"550e8400-e29b-41d4-a716-446655440000"

Cuerpo

application/json
amount
string
requerido

Repayment amount in major currency units (e.g. "125.00"). Must be positive with at most 2 fractional digits.

Ejemplo:

"125.00"

effectiveDate
string

The moment the money moved, as a full RFC 3339 instant with a time and an offset. A bare YYYY-MM-DD calendar date is refused with LENDER-0348. Omit it and transactionDate, and Lender stamps the tenant's business now.

Ejemplo:

"2026-06-14T17:30:00Z"

transactionDate
string

The moment the money moved, as a full RFC 3339 instant, read when effectiveDate is absent. A bare YYYY-MM-DD calendar date is refused with LENDER-0348.

Ejemplo:

"2026-06-14T17:30:00Z"

Respuesta

Created

allocations
object[] | null
requerido

Per-installment allocation breakdown.

appliedAmount
string
requerido

Amount applied to the loan (2 d.p. string).

Ejemplo:

"125.00"

backdated
boolean
requerido

True if the repayment effective date is before the business date.

effectiveDate
string
requerido

YYYY-MM-DD São Paulo day of the instant the money moved: the one the request named, or the tenant's business now Lender stamped when it named none. A replay answers the day of the original payment.

Ejemplo:

"2026-06-14"

loanAccountId
string
requerido

Loan account UUID.

Ejemplo:

"550e8400-e29b-41d4-a716-446655440000"

overpaymentAmount
string
requerido

Part of the payment that no instalment due on or before the effective date absorbed (2 d.p. string). It is not an excess over the whole balance: instalments due later take none of the payment, so paying ahead of the schedule lands here.

Ejemplo:

"0.00"

transactionId
string
requerido

Recorded repayment transaction UUID.

Ejemplo:

"550e8400-e29b-41d4-a716-446655440001"

prepaidInstallment
object

The instalment this payment covers ahead of the schedule: on a product version that prepays automatically, an overpaymentAmount of at least the day's present value of the next instalment promises it, and it closes at that present value on its due date from the held overpayment. Omitted when the payment promises nothing.

requestId
string

X-Idempotency key echoed from the request.

Ejemplo:

"550e8400-e29b-41d4-a716-446655440010"