Create a loan application
POSThttps://sandbox.api.lendeasy.ai/v1/loans Bearer token ·
CREATE_LOANCreates a loan application for a customer against an active product; the clientId is the numeric value of the LendEasy customerId. Dates are parsed with the supplied dateFormat and locale. With command=calculateLoanSchedule the same body returns the computed amortization schedule — periods and totals — without persisting anything, which is how schedules are previewed before origination.
Path & query parameters
| Field | Type | Description |
|---|---|---|
| LendEasy-Tenant required in header | string | Tenant selector: lowercase letters, digits, and hyphens, 1-64 characters. Exactly one instance; the only tenant selector honored. |
| command optional in query | string | Omit to create the application; calculateLoanSchedule returns a non-persisting schedule preview. One of calculateLoanSchedule. |
| Idempotency-Key optional in header | string | Optional 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
| Field | Type | Description |
|---|---|---|
| clientId required | integer | |
| productId required | integer | |
| loanType required | string | |
| principal required | integer | |
| loanTermFrequency required | integer | |
| loanTermFrequencyType required | integer | |
| numberOfRepayments required | integer | |
| repaymentEvery required | integer | |
| repaymentFrequencyType required | integer | |
| interestRatePerPeriod required | number | |
| interestType required | integer | |
| interestCalculationPeriodType required | integer | |
| amortizationType required | integer | |
| transactionProcessingStrategyCode required | string | |
| expectedDisbursementDate required | string | |
| submittedOnDate required | string | |
| externalId required | string | Caller-controlled identifier unique within the tenant and resource type. |
| dateFormat required | string | |
| locale required | string | |
| charges required | array<object> | |
| chargeId | integer | |
| amount | integer | Decimal monetary amount encoded as a string. |
Recipes using this endpoint
📘 Originate a loan →