Pular para o conteúdo principal
POST
Cancel loan application

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Cabeçalhos

X-Idempotency
string
obrigatório

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.

Exemplo:

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

Parâmetros de caminho

id
string<uuid>
obrigatório

Loan application identifier.

Exemplo:

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

Corpo

application/json
reason
enum<string>
obrigatório

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

Opções disponíveis:
withdrawal_right,
fraud,
court_order,
death,
other
Exemplo:

"withdrawal_right"

note
string

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

Maximum string length: 512
Exemplo:

"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).

Resposta

Created

cancellationId
string<uuid>
obrigatório

The cancellation recorded (UUID).

loanApplicationId
string<uuid>
obrigatório

The loan application cancelled (UUID).

outcome
enum<string>
obrigatório

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.

Opções disponíveis:
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.