Saltar al contenido principal
POST
Cancel a consignado contract by its number

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Encabezados

X-Idempotency
string
requerido

Idempotency key of the declaration: 1 to 255 bytes of UTF-8.

Required string length: 1 - 255

Parámetros de ruta

numero_contrato
string
requerido
Required string length: 1 - 255

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
outcome
enum<string>
requerido

withdrawn, reversed or exclusion_requested: the contract was cancelled (201), as by its loan application id. awaiting_contract: the declaration is kept until the number is booked (202). external_exit_applied: an exit recorded outside the Lender resolved the declaration (202). released: the desk let the held disbursement proceed, so nothing was cancelled (202).

Opciones disponibles:
withdrawn,
reversed,
exclusion_requested,
awaiting_contract,
external_exit_applied,
released
closedCaseId
string
exclusionRequestRef
string
loanAccountId
string<uuid>
loanApplicationId
string<uuid>