LendEasy/Docs
Get API keys
API ReferenceLMS APILoansApprove, reject, withdraw, or terminate a loan

Approve, reject, withdraw, or terminate a loan

POSThttps://sandbox.api.lendeasy.ai/v1/loans/{loanId} Bearer token · APPROVE_LOAN | REJECT_LOAN | WITHDRAW_LOAN | CONTRACT_TERMINATION_LOAN

Executes a lifecycle command selected by the command parameter: approve (approvedOnDate, optional approvedLoanAmount and expectedDisbursementDate), reject (rejectedOnDate), withdrawnByApplicant (withdrawnOnDate), and the governed contractTermination and undoContractTermination. Governed commands require a LendEasy-Case header when case management is enabled, and maker-checker may park the command for a second approver. Disbursement has no public command — money moves through the funding API.

Path & query parameters

FieldTypeDescription
LendEasy-Tenant required in headerstringTenant selector: lowercase letters, digits, and hyphens, 1-64 characters. Exactly one instance; the only tenant selector honored.
loanId required in pathstringStable opaque loan identifier.
command required in querystringLifecycle command to execute. One of approve · reject · withdrawnByApplicant · contractTermination · undoContractTermination.
LendEasy-Case optional in headerstringOpen servicing-case reference for this borrower. Required on human servicing mutations when case management is enabled; automation never sends it.
Idempotency-Key optional in headerstringOptional stable key (1-50 chars) for this one logical mutation. Replays of a completed request return the original result with x-served-from-cache: true; an in-flight duplicate returns 409 with Retry-After. Omitted keys are server-generated per attempt.

Body parameters

FieldTypeDescription
approvedOnDate requiredstring
approvedLoanAmount requiredinteger
expectedDisbursementDate requiredstring
dateFormat requiredstring
locale requiredstring
Unified search across guides, recipes & the API referenceEsc