Skip to main content
POST
Cancel a consignado contract by its number

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Headers

X-Idempotency
string
required

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

Required string length: 1 - 255

Path Parameters

numero_contrato
string
required
Required string length: 1 - 255

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

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

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