Prepay loan account
Appends an immutable prepayment schedule version and recalculation trigger. BR accounts require quoteId; amount-only prepayment is available only for non-BR accounts. When both are provided, amount must equal the quote’s net settlement amount, or the request yields 422 (LENDER-0351). Idempotency is enforced through the X-Idempotency header; a reused key with different facts yields 422 (IDEMPOTENCY_KEY_REUSE). A missing required BR quote, malformed UUID, or invalid amount yields 422. Deduplication is by key ALONE: an amount-only settlement resent under a NEW key books a SECOND settlement, so retry under the ORIGINAL key. A BR quote is one-shot and bounds this by itself — a new key carrying an already-accepted quoteId is refused with 409 (LENDER-0355) and writes nothing, while a new key carrying a new quote is a newly priced settlement and is meant to book. A retry of the same request after the contract closed answers 201 with the version it wrote. A partial whose money is dated before a payment no reversal undid (a reversed due-day settlement still counts), a prepayment or a reschedule the contract holds, on an earlier São Paulo day or at an earlier instant, is refused with 409 (LENDER-0302) and writes nothing. Money dated on a São Paulo civil day after today is refused with 422 (LENDER-0395) and writes nothing; a later hour of today is accepted. A quote accepted with money dated on a São Paulo civil day before the contract’s disbursement is refused with 422 (LENDER-0985) and writes nothing. A partial quote settled while a full-settlement quote on the contract is still payable is refused with 409 (LENDER-0375) and writes nothing; liveQuoteId and liveQuoteExpiresAt name that quote.
Encabezados
Parámetros de ruta
Cuerpo
Respuesta
Created
Present only when a reschedule was a SUBSTANTIAL renegotiation under Res. CMN 4.966/2021 art. 22: this contract was ended (scheduleVersion is its last ladder, at zero) and a replacement contract now carries the debt. Never present on a restructuring, which stays on its contract. Omitted on every other outcome.

