Skip to main content
POST
Cancel loan application

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Headers

X-Idempotency
string
required

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.

Example:

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

Path Parameters

id
string<uuid>
required

Loan application identifier.

Example:

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

Body

application/json
reason
enum<string>
required

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

Available options:
withdrawal_right,
fraud,
court_order,
death,
other
Example:

"withdrawal_right"

note
string

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

Maximum string length: 512
Example:

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

Response

Created

cancellationId
string<uuid>
required

The cancellation recorded (UUID).

loanApplicationId
string<uuid>
required

The loan application cancelled (UUID).

outcome
enum<string>
required

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.

Available options:
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.