Enroll in autopay
POSThttps://sandbox.api.lendeasy.ai/v1/loans/{loanId}/autopay Bearer token ·
ENROLL_LMS_AUTOPAYCreates the loan’s single current enrollment from a verified instrument, timing policy, and amount policy. A Regulation E authorization reference is required to activate. FULL_DUE enrollments must leave enough statement lead time for the ten-day advance notice.
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. |
| loanId required in path | string | Stable opaque loan identifier. |
| LendEasy-Case optional in header | string | Open servicing-case reference for this borrower. Required on human servicing mutations when case management is enabled; automation never sends it. |
| 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 |
|---|---|---|
| instrumentId required | integer | |
| authorizationRef required | string | |
| timingPolicy required | object | |
| initiateDaysBeforeDue | integer | |
| businessDayConvention | string | |
| amountPolicy required | object | |
| type | string |