Skip to main content
GET
List loans
Returns a page of loans. See Pagination for the common query parameter contract.

Query parameters

All filters combine with AND: a loan is returned only if it matches every parameter you pass.
integer
default:"1"
integer
default:"10"
string
Common values: id, principal, expectedDisbursementDate.
string
ASC or DESC.
integer
Restrict the result to loans belonging to a specific customer (by internal LMS id). Mutually exclusive with customerExternalId — pass one or the other, not both.
string
Restrict the result to loans belonging to the customer with this partner-supplied externalId. Mutually exclusive with customerId. Named explicitly because loans have their own externalId field too — this one filters by the customer’s externalId, not the loan’s. An externalId that matches no customer returns an empty page (total: 0, items: []), not a 404 — the same contract as GET /v1/customers?externalId=.
string
One or more loan externalIds, comma-separated, up to 50 per request — your own loan references, exact match. Returns those loans in the order given, each in the full detail shape with its repaymentHistory, so the transactions of several specific loans come back in one call instead of one GET /v1/loans/{externalId} each. A reference that matches no loan is simply absent (total counts the matches). Combines with every other filter using AND: with customerExternalId you get only those of the referenced loans that belong to that customer, so a loan reference belonging to someone else returns an empty page rather than their loan — the safe behaviour for a customer-care search keyed on the customer’s phone number. orderBy is ignored on this form.
string
One or more statuses, comma-separated, case-insensitive exact match against the loan’s status. A loan matches if its status is any of them — so a state of yours that maps to two of ours is one call: status=Submitted and pending approval,Approved (“not yet disbursed”), status=Withdrawn by applicant,Rejected (“cancelled”). Accepted values: Submitted and pending approval, Approved, Active, Closed (obligations met), Closed (written off), Overpaid, Withdrawn by applicant, Rejected. Any other value is a 400 invalid_argument naming the accepted set — not an empty page. Applied after fetching, so total is the filtered count; scans up to 1000 loans per call.
boolean
true keeps only loans that are overdue right now — Active and at or past their dueDateTime, exactly as the overdue field in the response is computed; false keeps the rest. Decided per loan before paging, so total is the number of overdue loans in the scan, not in the page. Combine with customerExternalId for one customer’s overdue loans. overdue=true with a non-Active status is always empty.
string
YYYY-MM-DD, inclusive. Keep only loans created on or after this day (the day the loan was submitted — in your flow also its disbursement day). May be used alone.
string
YYYY-MM-DD, inclusive. Keep only loans created on or before this day. May be used alone; with fromDate, must not be earlier than it. When a date filter is present and no orderBy is given, the 1000-loan scan runs newest first, so a recent window is always fully covered whatever the portfolio size.

Examples

Response

Each row has the same shape as a single-loan read — balance roll-up, next-due summary, the full repaymentSchedule and the repaymentHistory — so partners can render outstanding-balance / next-instalment / schedule / payment-history views without a per-loan detail call.
See the loan object for the full field reference.
repaymentSchedule on list rows is best-effort: each row is hydrated with a per-loan read behind the scenes, and if that read fails transiently the row is returned without the schedule rather than failing your whole page. nextDueDate / nextDueAmount are still present in that case. Treat a missing schedule on a list row as “retry or fetch the single loan”, not as “this loan has no schedule” — GET /v1/loans/{id} always carries it.

Errors

A customerExternalId that matches no customer is not an error: the response is an empty page (items: [], total: 0), the same contract as GET /v1/customers?externalId=…, so one list handler serves both. The generic unauthenticated and permission_denied codes apply as on every endpoint.