Saltar al contenido principal
POST
Create prepayment quote

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Encabezados

X-Idempotency
string
requerido

Canonical idempotency request ID. Required: a full-settlement quote issues a payment demand to the borrower, so without a key a retry cannot be told apart from a second demand.

Parámetros de ruta

id
string<uuid>
requerido

Loan account identifier.

Cuerpo

application/json
amount
string
requerido

Prepayment amount in major currency units (e.g. "100.00").

Ejemplo:

"42000.00"

quoteType
enum<string>
requerido

Discriminator: partial principal prepayment.

Opciones disponibles:
partial
amortization
enum<string>

How the partial shortens the contract: reduce_term keeps every instalment and ends the contract earlier; reduce_installment keeps the remaining due dates and lowers the instalments to equal ones. When absent, existing earliest-open-principal behavior applies. A consignado contract only reduces the term: reduce_installment is refused with 422 (LENDER-0952). A contract with payment rules only reduces the term: reduce_installment or no choice is refused with 422 (LENDER-0953).

Opciones disponibles:
reduce_term,
reduce_installment
Ejemplo:

"reduce_term"

businessDate
string

Optional valuation date (RFC3339 or YYYY-MM-DD); defaults to now (UTC).

Ejemplo:

"2026-06-14"

overridePdd
boolean

When true, overrides the PDD stage gate during quote generation.

Respuesta

Created

accruedInterest
string
requerido

Interest a full settlement charges on top of the principal up to the payoff day: accrued and unpaid, less what a standing automatic-prepayment promise earned by then, as the payment that promised an instalment counts at its present value that day; zero on a partial. Decimal string, scale 2.

Ejemplo:

"111.74"

arrearsFees
string
requerido

Fees of the instalments due on or before the valuation day, paid first by a partial prepayment; zero on a full settlement. Decimal string, scale 2.

Ejemplo:

"0.00"

arrearsInterest
string
requerido

Interest of the instalments due on or before the valuation day, paid first by a partial prepayment; zero on a full settlement. Decimal string, scale 2.

Ejemplo:

"0.00"

arrearsLateCharges
string
requerido

Late fine and mora of the instalments due on or before the valuation day, paid first by a partial prepayment; zero on a full settlement. Decimal string, scale 2.

Ejemplo:

"7.00"

arrearsPrincipal
string
requerido

Principal of the instalments due on or before the valuation day, which a partial prepayment pays before retiring principal; zero on a full settlement and when nothing is due. Decimal string, scale 2.

Ejemplo:

"300.00"

chargeRebate
string
requerido

Rebate of unaccrued charges and fees credited on prepayment, as a decimal string, scale 2.

Ejemplo:

"120.00"

consumerProtectionRegime
string
requerido

Consumer-protection regime label applied to the prepayment terms.

createdAt
string
requerido

RFC3339 UTC timestamp when the quote was created.

Ejemplo:

"2026-06-14T12:00:00Z"

currency
string
requerido

ISO 4217 currency code of the loan and quote.

Ejemplo:

"BRL"

expiresAt
string
requerido

RFC3339 UTC timestamp after which the quote is no longer valid.

Ejemplo:

"2026-06-14T12:00:00Z"

fees
string
requerido

Applied charges the schedule holds open on the payoff day, charged on top of the principal on a full settlement; zero on a partial, whose charges stay on the instalments that bill them. Decimal string, scale 2.

Ejemplo:

"25.00"

grossAmount
string
requerido

Retired settlement principal being paid off (equals the outstanding principal for a full settlement; on a partial, the principal retired once the arrears are paid), as a decimal string, scale 2.

Ejemplo:

"42000.00"

heldCashApplied
string
requerido

Cash the contract already holds, paid ahead of its due dates, that the prepayment spends before asking the borrower for the rest: on a partial at most the amount asked, the rest staying held for the due dates, and on an automatic-prepayment version never the present value already promised to an instalment. Decimal string, scale 2.

Ejemplo:

"507.27"

id
string
requerido

Unique identifier (UUID) of the prepayment quote.

Ejemplo:

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

interestRebate
string
requerido

Mandatory interest rebate (juros nao incorridos) disclosed on prepayment, as a decimal string, scale 2. On a full settlement it is the interest not yet incurred on the payoff day.

Ejemplo:

"1250.75"

iofReconciliation
string
requerido

IOF adjustment as a decimal string, scale 2. Defined-principal loans report zero because IOF is not refunded on early payoff.

Ejemplo:

"0.00"

jurisdictionCode
string
requerido

ISO jurisdiction code governing the quote (e.g. "BR").

Ejemplo:

"BR"

lateCharges
string
requerido

Late fine and mora open on the payoff day, charged on top of the principal on a full settlement; zero on a partial. Decimal string, scale 2.

Ejemplo:

"7.00"

loanAccountId
string
requerido

UUID of the loan account the quote was generated for.

Ejemplo:

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

netSettlementAmount
string
requerido

Net cash payable to settle: gross settlement principal plus accrued interest, late charges and applied charges, minus charge rebate, plus any IOF due, plus on a partial the arrears it pays first, minus the held cash it spends, never below zero, as a decimal string, scale 2. At zero the borrower pays nothing and a full settlement issues no charge; held cash above a payoff is owed back on the payoff refund desk. Interest rebate is disclosure-only; defined-principal loans report zero IOF reconciliation because IOF is not refunded.

Ejemplo:

"41992.23"

principalOutstanding
string
requerido

Outstanding principal at quote time as a decimal string in major currency units, scale 2.

Ejemplo:

"42000.00"

profileVersion
string
requerido

Jurisdiction profile version used to compute the quote.

Ejemplo:

"1.0.0"

quoteType
string
requerido

Quote variant: partial (principal prepayment) or full_settlement.

Ejemplo:

"partial"

rebateMandatory
boolean
requerido

True when regulation mandates applying the interest rebate to this quote.

acceptedAt
string

RFC3339 UTC timestamp when the quote was accepted; empty while still pending.

Ejemplo:

"2026-06-14T12:00:00Z"

acceptedTransactionId
string

Identifier of the settlement transaction that accepted the quote; empty while still pending.

Ejemplo:

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

amortization
string

How the partial shortens the contract: reduce_term (the instalments stay, the contract ends earlier) or reduce_installment (the due dates stay, the instalments fall). Echoes an explicit choice; omitted when no choice was made or on a full settlement.

Ejemplo:

"reduce_term"

payoffPurpose
string

Who pays this frozen payoff: borrower_prepayment or portability. Omitted when the quote does not state one.

Ejemplo:

"portability"

slaDueAt
string

RFC3339 UTC full-settlement SLA deadline; omitted for partial quotes.

Ejemplo:

"2026-06-19T12:00:00Z"