Saltar al contenido principal
POST
Cancel loan application

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Encabezados

X-Idempotency
string
requerido

Idempotency key. A resend with the same key and request answers the first response with X-Idempotency-Replayed: true; the same key with another request is refused 422 IDEMPOTENCY_KEY_REUSE.

Ejemplo:

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

Parámetros de ruta

id
string<uuid>
requerido

Loan application identifier.

Ejemplo:

"3fa85f64-5717-4562-b3fc-2c963f66afa6"

Cuerpo

application/json
reason
enum<string>
requerido

Why the contract is cancelled. The jurisdiction maps it to its own exclusion reason and judges whether it fits the contract's state.

Opciones disponibles:
withdrawal_right,
fraud,
court_order,
death,
other
Ejemplo:

"withdrawal_right"

note
string

Optional free text, at most 512 bytes, kept exactly as sent.

Maximum string length: 512
Ejemplo:

"Borrower withdrew within the legal window."

refund
object

The refund the borrower returned, declared by the caller. Required to cancel a disbursed contract the Lender must reverse; refused before disbursement (LENDER-0272).

Respuesta

Created

cancellationId
string<uuid>
requerido

The cancellation recorded (UUID).

loanApplicationId
string<uuid>
requerido

The loan application cancelled (UUID).

outcome
enum<string>
requerido

withdrawn: the proposal was withdrawn. reversed: the disbursed contract was reversed and the refund recorded. exclusion_requested: the exclusion was requested and the contract stays open for a loss decision.

Opciones disponibles:
withdrawn,
reversed,
exclusion_requested
closedCaseId
string

The open exit case this cancellation closed. ABSENT when it closed none.

exclusionRequestRef
string

Reference of the rail exclusion command. ABSENT when the cancellation requested none.

loanAccountId
string<uuid>

The loan account. ABSENT when the loan was never disbursed.