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 loanexternalIds, 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-Activestatus 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
# All loans for customer 42 (by LMS id)curl -sf "$BASE/v1/loans?customerId=42&page=1&rows=25" \ -H "Authorization: Bearer $TOKEN"# Same customer, looked up by their externalIdcurl -sf "$BASE/v1/loans?customerExternalId=ext-ada-001" \ -H "Authorization: Bearer $TOKEN"# Only this customer's currently-active loanscurl -sf "$BASE/v1/loans?customerExternalId=ext-ada-001&status=Active" \ -H "Authorization: Bearer $TOKEN"# "Not yet disbursed" on your side = two statuses on ours; one callcurl -sf -G "$BASE/v1/loans" --data-urlencode "status=Submitted and pending approval,Approved" \ -H "Authorization: Bearer $TOKEN"# Everything created in a two-day window, newest firstcurl -sf "$BASE/v1/loans?fromDate=2026-09-29&toDate=2026-09-30&rows=50" \ -H "Authorization: Bearer $TOKEN"# Every loan that is overdue at this momentcurl -sf "$BASE/v1/loans?overdue=true&rows=100" \ -H "Authorization: Bearer $TOKEN"# These three loans, by your own references, with their repayment historycurl -sf "$BASE/v1/loans?externalId=loan-ext-12345,loan-ext-12346,loan-ext-12347" \ -H "Authorization: Bearer $TOKEN"# Customer-care search: this customer's loan with this disbursement reference,# within a date window. All filters AND together; a reference that is not# this customer's returns an empty page.curl -sf "$BASE/v1/loans?customerExternalId=ext-ada-001&externalId=loan-ext-12345&fromDate=2026-09-01&toDate=2026-09-30" \ -H "Authorization: Bearer $TOKEN"
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.
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
Code
When
invalid_argument
page is not a positive integer, or rows is not 1–100; customerId is not numeric; both customerId and customerExternalId were passed; status has a value outside the documented set; fromDate / toDate is not YYYY-MM-DD; toDate is before fromDate; overdue is not true or false; externalId has more than 50 references. Field failures carry validation_error with the offending field in message
too_many_requests
Over the per-caller rate or the platform is at capacity — wait Retry-After seconds and retry; see Errors
unavailable
The ledger is temporarily unreachable; retry with backoff
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.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Blackswan","description":"Blackswan partner-facing HTTP API for customers, loans, repayments, and credit decisions.","colors":{"primary":"#14213d","light":"#e5e5e5","dark":"#000000"},"logo":{"light":"https://mintcdn.com/bsa/vWtHf-rJQE_2VwyJ/logo/light.png?fit=max\u0026auto=format\u0026n=vWtHf-rJQE_2VwyJ\u0026q=85\u0026s=aab493cc77e7b1a2c0b7b5886fa28b98","dark":"https://mintcdn.com/bsa/vWtHf-rJQE_2VwyJ/logo/dark.png?fit=max\u0026auto=format\u0026n=vWtHf-rJQE_2VwyJ\u0026q=85\u0026s=0cd558ea0df493a229f0bccd3e747bce"},"favicon":"https://mintcdn.com/bsa/vWtHf-rJQE_2VwyJ/favicon.png?fit=max\u0026auto=format\u0026n=vWtHf-rJQE_2VwyJ\u0026q=85\u0026s=d92c6dd66658e104459e611d50057ba9","api":{"mdx":{"auth":{"method":"bearer"},"server":"https://api-staging.bsa.ai"}},"background":{"color":{"light":"#ffffff","dark":"#0d0d0f"}},"navbar":{"links":[{"href":"https://bsa.ai","label":"Blackswan"},{"href":"mailto:hello@bsa.ai","label":"Contact"}]},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"bsa","hasAudioNarration":false,"actualSubdomain":"bsa","customDomains":["docs.lms.bsa.ai"],"gitSource":{"type":"github","owner":"tausi-africa","repo":"bsa-api-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10baca9ffae5051c402950"},"entitlements":{},"buildId":"6af2add25c785f33431c6441","clientVersion":"0.0.4448","searchFilterCounts":[{"language":"default","tag":"Loans","count":11},{"language":"default","tag":"Customers","count":7},{"language":"default","tag":"Repayments","count":6},{"language":"default","tag":"Concepts","count":5},{"language":"default","tag":"Credit Scoring","count":2},{"language":"default","tag":"Getting Started","count":2},{"language":"default","tag":"Loan Products","count":2}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"loans/list","slug":"/loans/list","pageMetadata":{"title":"List loans","description":"Fetch a paginated list of loans, filterable by loan externalId, customer, status, creation date and overdue state.","api":"GET /v1/loans","href":"/loans/list"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Fetch a paginated list of loans, filterable by loan externalId, customer, status, creation date and overdue state.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,ParamField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Returns a page of loans. See `,_jsx(_components.a,{href:`/concepts/pagination`,children:`Pagination`}),` for the\ncommon query parameter contract.`]}),`\n`,_jsx(Heading,{level:`2`,id:`query-parameters`,children:`Query parameters`}),`\n`,_jsxs(_components.p,{children:[`All filters combine with `,_jsx(_components.strong,{children:`AND`}),`: a loan is returned only if it matches\nevery parameter you pass.`]}),`\n`,_jsx(ParamField,{query:`page`,type:`integer`,default:`1`,id:`param-page`}),`\n`,_jsx(ParamField,{query:`rows`,type:`integer`,default:`10`,id:`param-rows`}),`\n`,_jsx(ParamField,{query:`orderBy`,type:`string`,id:`param-order-by`,children:_jsxs(_components.p,{children:[`Common values: `,_jsx(_components.code,{children:`id`}),`, `,_jsx(_components.code,{children:`principal`}),`, `,_jsx(_components.code,{children:`expectedDisbursementDate`}),`.`]})}),`\n`,_jsx(ParamField,{query:`sortOrder`,type:`string`,id:`param-sort-order`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`ASC`}),` or `,_jsx(_components.code,{children:`DESC`}),`.`]})}),`\n`,_jsx(ParamField,{query:`customerId`,type:`integer`,id:`param-customer-id`,children:_jsxs(_components.p,{children:[`Restrict the result to loans belonging to a specific customer (by\ninternal LMS id). Mutually exclusive with `,_jsx(_components.code,{children:`customerExternalId`}),` —\npass one or the other, not both.`]})}),`\n`,_jsx(ParamField,{query:`customerExternalId`,type:`string`,id:`param-customer-external-id`,children:_jsxs(_components.p,{children:[`Restrict the result to loans belonging to the customer with this\npartner-supplied `,_jsx(_components.code,{children:`externalId`}),`. Mutually exclusive with `,_jsx(_components.code,{children:`customerId`}),`.\nNamed explicitly because loans have their own `,_jsx(_components.code,{children:`externalId`}),` field too\n— this one filters by the `,_jsx(_components.strong,{children:`customer’s`}),` externalId, not the loan’s.\nAn externalId that matches no customer returns an empty page\n(`,_jsx(_components.code,{children:`total: 0, items: []`}),`), not a 404 — the same contract as\n`,_jsx(_components.code,{children:`GET /v1/customers?externalId=`}),`.`]})}),`\n`,_jsx(ParamField,{query:`externalId`,type:`string`,id:`param-external-id`,children:_jsxs(_components.p,{children:[`One or more `,_jsx(_components.strong,{children:`loan`}),` `,_jsx(_components.code,{children:`externalId`}),`s, comma-separated, up to 50 per\nrequest — your own loan references, exact match. Returns those loans\nin the order given, each in the full detail shape with its\n`,_jsx(_components.code,{children:`repaymentHistory`}),`, so the transactions of several specific loans come\nback in one call instead of one `,_jsx(_components.code,{children:`GET /v1/loans/{externalId}`}),` each. A\nreference that matches no loan is simply absent (`,_jsx(_components.code,{children:`total`}),` counts the\nmatches). Combines with every other filter using `,_jsx(_components.strong,{children:`AND`}),`: with\n`,_jsx(_components.code,{children:`customerExternalId`}),` you get only those of the referenced loans that\nbelong to that customer, so a loan reference belonging to someone else\nreturns an empty page rather than their loan — the safe behaviour for\na customer-care search keyed on the customer’s phone number.\n`,_jsx(_components.code,{children:`orderBy`}),` is ignored on this form.`]})}),`\n`,_jsx(ParamField,{query:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[`One or more statuses, `,_jsx(_components.strong,{children:`comma-separated`}),`, case-insensitive exact\nmatch against the loan’s `,_jsx(_components.code,{children:`status`}),`. A loan matches if its status is any\nof them — so a state of yours that maps to two of ours is one call:\n`,_jsx(_components.code,{children:`status=Submitted and pending approval,Approved`}),` (“not yet disbursed”),\n`,_jsx(_components.code,{children:`status=Withdrawn by applicant,Rejected`}),` (“cancelled”). Accepted\nvalues: `,_jsx(_components.code,{children:`Submitted and pending approval`}),`, `,_jsx(_components.code,{children:`Approved`}),`, `,_jsx(_components.code,{children:`Active`}),`,\n`,_jsx(_components.code,{children:`Closed (obligations met)`}),`, `,_jsx(_components.code,{children:`Closed (written off)`}),`, `,_jsx(_components.code,{children:`Overpaid`}),`,\n`,_jsx(_components.code,{children:`Withdrawn by applicant`}),`, `,_jsx(_components.code,{children:`Rejected`}),`. Any other value is a\n`,_jsx(_components.code,{children:`400 invalid_argument`}),` naming the accepted set — not an empty page.\nApplied after fetching, so `,_jsx(_components.code,{children:`total`}),` is the `,_jsx(_components.em,{children:`filtered`}),` count; scans up\nto 1000 loans per call.`]})}),`\n`,_jsx(ParamField,{query:`overdue`,type:`boolean`,id:`param-overdue`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` keeps only loans that are overdue `,_jsx(_components.strong,{children:`right now`}),` — `,_jsx(_components.code,{children:`Active`}),` and\nat or past their `,_jsx(_components.code,{children:`dueDateTime`}),`, exactly as the `,_jsx(_components.code,{children:`overdue`}),` field in the\nresponse is computed; `,_jsx(_components.code,{children:`false`}),` keeps the rest. Decided per loan before\npaging, so `,_jsx(_components.code,{children:`total`}),` is the number of overdue loans in the scan, not in\nthe page. Combine with `,_jsx(_components.code,{children:`customerExternalId`}),` for one customer’s overdue\nloans. `,_jsx(_components.code,{children:`overdue=true`}),` with a non-`,_jsx(_components.code,{children:`Active`}),` `,_jsx(_components.code,{children:`status`}),` is always empty.`]})}),`\n`,_jsx(ParamField,{query:`fromDate`,type:`string`,id:`param-from-date`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`YYYY-MM-DD`}),`, inclusive. Keep only loans `,_jsx(_components.strong,{children:`created`}),` on or after this\nday (the day the loan was submitted — in your flow also its\ndisbursement day). May be used alone.`]})}),`\n`,_jsx(ParamField,{query:`toDate`,type:`string`,id:`param-to-date`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`YYYY-MM-DD`}),`, inclusive. Keep only loans created on or before this\nday. May be used alone; with `,_jsx(_components.code,{children:`fromDate`}),`, must not be earlier than it.\nWhen a date filter is present and no `,_jsx(_components.code,{children:`orderBy`}),` is given, the 1000-loan\nscan runs `,_jsx(_components.strong,{children:`newest first`}),`, so a recent window is always fully covered\nwhatever the portfolio size.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`examples`,children:`Examples`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`33`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`33`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# All loans for customer 42 (by LMS id)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -sf`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$BASE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/v1/loans?customerId=42\u0026page=1\u0026rows=25\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$TOKEN`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Same customer, looked up by their externalId`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -sf`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$BASE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/v1/loans?customerExternalId=ext-ada-001\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$TOKEN`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Only this customer's currently-active loans`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -sf`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$BASE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/v1/loans?customerExternalId=ext-ada-001\u0026status=Active\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$TOKEN`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# \"Not yet disbursed\" on your side = two statuses on ours; one call`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -sf`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -G`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$BASE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/v1/loans\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data-urlencode`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"status=Submitted and pending approval,Approved\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$TOKEN`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Everything created in a two-day window, newest first`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -sf`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$BASE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/v1/loans?fromDate=2026-09-29\u0026toDate=2026-09-30\u0026rows=50\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$TOKEN`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Every loan that is overdue at this moment`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -sf`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$BASE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/v1/loans?overdue=true\u0026rows=100\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$TOKEN`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# These three loans, by your own references, with their repayment history`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -sf`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$BASE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/v1/loans?externalId=loan-ext-12345,loan-ext-12346,loan-ext-12347\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$TOKEN`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Customer-care search: this customer's loan with this disbursement reference,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# within a date window. All filters AND together; a reference that is not`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# this customer's returns an empty page.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -sf`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$BASE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/v1/loans?customerExternalId=ext-ada-001\u0026externalId=loan-ext-12345\u0026fromDate=2026-09-01\u0026toDate=2026-09-30\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$TOKEN`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[`Each row has the `,_jsx(_components.strong,{children:`same shape as a single-loan read`}),` — balance\nroll-up, next-due summary, the full `,_jsx(_components.code,{children:`repaymentSchedule`}),` and the\n`,_jsx(_components.code,{children:`repaymentHistory`}),` — so partners can render outstanding-balance /\nnext-instalment / schedule / payment-history views without a per-loan\ndetail call.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`64`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`64`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"501\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"accountNo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"000000501\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"externalId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"loan-ext-12345\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"customerId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"42\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"customerName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Ada Lovelace\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"loanProductId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"loanProductName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"7-Day Loan\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Active\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"principal\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"approvedPrincipal\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currencyCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"TZS\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"termFrequency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`7`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"termFrequencyType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Days\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"numberOfRepayments\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"interestRatePerPeriod\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`11`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"interestRateFrequencyType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Whole term\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"principalDisbursed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"principalPaid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"principalOutstanding\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"interestCharged\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`550`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"interestPaid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"interestOutstanding\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`550`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"feeCharged\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"feePaid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"feeOutstanding\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"penaltyCharged\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"penaltyPaid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"penaltyOutstanding\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"totalRepayment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"totalOutstanding\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5550`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"totalOverpaid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"nextDueDate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-06-04\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"nextDueAmount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5550`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"overdue\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"disbursedAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-05-28T14:32:05+03:00\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"dueDateTime\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-06-04T14:32:05+03:00\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"repaymentSchedule\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"period\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"dueDate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-05-28\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"complete\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"period\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"fromDate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-05-28\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"dueDate\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-06-04\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"complete\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"principalDue\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"principalOutstanding\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"interestDue\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`550`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"interestOutstanding\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`550`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"totalDue\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5550`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"totalOutstanding\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5550`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"repaymentHistory\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: []`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"total\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`7`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"page\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"rowsPerPage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`25`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/loans/overview#the-loan-object`,children:`the loan object`}),` for the full\nfield reference.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`repaymentSchedule`}),` on list rows is `,_jsx(_components.strong,{children:`best-effort`}),`: each row is\nhydrated with a per-loan read behind the scenes, and if that read\nfails transiently the row is returned without the schedule rather\nthan failing your whole page. `,_jsx(_components.code,{children:`nextDueDate`}),` / `,_jsx(_components.code,{children:`nextDueAmount`}),` are\nstill present in that case. Treat a missing schedule on a list row\nas “retry or fetch the single loan”, not as “this loan has no\nschedule” — `,_jsx(_components.code,{children:`GET /v1/loans/{id}`}),` always carries it.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`When`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_argument`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`page`}),` is not a positive integer, or `,_jsx(_components.code,{children:`rows`}),` is not 1–100; `,_jsx(_components.code,{children:`customerId`}),` is not numeric; both `,_jsx(_components.code,{children:`customerId`}),` and `,_jsx(_components.code,{children:`customerExternalId`}),` were passed; `,_jsx(_components.code,{children:`status`}),` has a value outside the documented set; `,_jsx(_components.code,{children:`fromDate`}),` / `,_jsx(_components.code,{children:`toDate`}),` is not `,_jsx(_components.code,{children:`YYYY-MM-DD`}),`; `,_jsx(_components.code,{children:`toDate`}),` is before `,_jsx(_components.code,{children:`fromDate`}),`; `,_jsx(_components.code,{children:`overdue`}),` is not `,_jsx(_components.code,{children:`true`}),` or `,_jsx(_components.code,{children:`false`}),`; `,_jsx(_components.code,{children:`externalId`}),` has more than 50 references. Field failures carry `,_jsx(_components.code,{children:`validation_error`}),` with the offending field in `,_jsx(_components.code,{children:`message`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`too_many_requests`})}),_jsxs(_components.td,{children:[`Over the per-caller rate or the platform is at capacity — wait `,_jsx(_components.code,{children:`Retry-After`}),` seconds and retry; see `,_jsx(_components.a,{href:`/concepts/errors#retrying`,children:`Errors`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`unavailable`})}),_jsx(_components.td,{children:`The ledger is temporarily unreachable; retry with backoff`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`A `,_jsx(_components.code,{children:`customerExternalId`}),` that matches no customer is `,_jsx(_components.strong,{children:`not`}),` an error: the\nresponse is an empty page (`,_jsx(_components.code,{children:`items: []`}),`, `,_jsx(_components.code,{children:`total: 0`}),`), the same contract as\n`,_jsx(_components.code,{children:`GET /v1/customers?externalId=…`}),`, so one list handler serves both. The\ngeneric `,_jsx(_components.code,{children:`unauthenticated`}),` and `,_jsx(_components.code,{children:`permission_denied`}),` codes apply as on every\nendpoint.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"List loans","description":"Fetch a paginated list of loans, filterable by loan externalId, customer, status, creation date and overdue state.","api":"GET /v1/loans","href":"/loans/list"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Query parameters","slug":"query-parameters","depth":2,"children":[]},{"title":"Examples","slug":"examples","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Errors","slug":"errors","depth":2,"children":[]}],"codeExamples":{},"endpoint":{"title":"List loans","path":"/v1/loans","servers":[{"url":"https://api-staging.bsa.ai"}],"method":"get","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{"page":{"schema":[{"type":"integer"}]},"rows":{"schema":[{"type":"integer"}]},"orderBy":{"schema":[{"type":"string","description":"Common values: `id` , `principal` , `expectedDisbursementDate` ."}]},"sortOrder":{"schema":[{"type":"string","description":"`ASC` or `DESC` ."}]},"customerId":{"schema":[{"type":"integer","description":"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."}]},"customerExternalId":{"schema":[{"type":"string","description":"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=` ."}]},"externalId":{"schema":[{"type":"string","description":"One or more loan `externalId` s, 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."}]},"status":{"schema":[{"type":"string","description":"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."}]},"overdue":{"schema":[{"type":"boolean","description":"`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."}]},"fromDate":{"schema":[{"type":"string","description":"`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."}]},"toDate":{"schema":[{"type":"string","description":"`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."}]}},"header":{},"cookie":{},"path":{}},"body":{}},"response":{},"deprecated":false}},"jsLinks":[],"subdomain":"bsa","siteName":"Blackswan","title":"List loans - Blackswan","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-08T08:34:20.123Z","originalFileLocation":"loans/list.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Fetch a paginated list of loans, filterable by loan externalId, customer, status, creation date and overdue state.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Blackswan\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/bsa/_6Q0gFWsnj0uC_hg/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/bsa/_6Q0gFWsnj0uC_hg/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/bsa/_6Q0gFWsnj0uC_hg/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/bsa/_6Q0gFWsnj0uC_hg/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/bsa/_6Q0gFWsnj0uC_hg/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/bsa/_6Q0gFWsnj0uC_hg/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/bsa/_6Q0gFWsnj0uC_hg/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/bsa/_6Q0gFWsnj0uC_hg/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/bsa/_6Q0gFWsnj0uC_hg/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"List loans - Blackswan\">\u003cmeta data-mint-head property=\"og:description\" content=\"Fetch a paginated list of loans, filterable by loan externalId, customer, status, creation date and overdue state.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Blackswan\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.lms.bsa.ai/loans/list\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://bsa.mintlify.site/_mintlify/api/og/v2?division=Loans\u0026amp;title=List+loans\u0026amp;description=Fetch+a+paginated+list+of+loans%2C+filterable+by+loan+externalId%2C+customer%2C+status%2C+creation+date+and+overdue+state.\u0026amp;theme=04ef1c6275fc089e56d4178b\u0026amp;signature=e7cb6de080a937ca0f7f61b233b0f315082996e28fbb5e58e2a5db08d7684b8d\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"List loans - Blackswan\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Fetch a paginated list of loans, filterable by loan externalId, customer, status, creation date and overdue state.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://bsa.mintlify.site/_mintlify/api/og/v2?division=Loans\u0026amp;title=List+loans\u0026amp;description=Fetch+a+paginated+list+of+loans%2C+filterable+by+loan+externalId%2C+customer%2C+status%2C+creation+date+and+overdue+state.\u0026amp;theme=04ef1c6275fc089e56d4178b\u0026amp;signature=e7cb6de080a937ca0f7f61b233b0f315082996e28fbb5e58e2a5db08d7684b8d\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/bsa/_6Q0gFWsnj0uC_hg/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Blackswan\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#14213d\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.lms.bsa.ai/loans/list\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/loans/list.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.lms.bsa.ai/#organization\",\"name\":\"Blackswan\",\"url\":\"https://docs.lms.bsa.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/bsa/vWtHf-rJQE_2VwyJ/logo/light.png?fit=max\u0026auto=format\u0026n=vWtHf-rJQE_2VwyJ\u0026q=85\u0026s=aab493cc77e7b1a2c0b7b5886fa28b98\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.lms.bsa.ai#website\",\"name\":\"Blackswan\",\"url\":\"https://docs.lms.bsa.ai\",\"publisher\":{\"@id\":\"https://docs.lms.bsa.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.lms.bsa.ai/loans/list#webpage\",\"url\":\"https://docs.lms.bsa.ai/loans/list\",\"name\":\"List loans\",\"description\":\"Fetch a paginated list of loans, filterable by loan externalId, customer, status, creation date and overdue state.\",\"dateModified\":\"2026-10-08T08:34:20.123Z\",\"isPartOf\":{\"@id\":\"https://docs.lms.bsa.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.lms.bsa.ai/loans/list#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.lms.bsa.ai/loans/list#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Loans\",\"item\":\"https://docs.lms.bsa.ai/loans/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"List loans\",\"item\":\"https://docs.lms.bsa.ai/loans/list\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.lms.bsa.ai/loans/list#apireference\",\"headline\":\"List loans\",\"name\":\"List loans\",\"description\":\"Fetch a paginated list of loans, filterable by loan externalId, customer, status, creation date and overdue state.\",\"url\":\"https://docs.lms.bsa.ai/loans/list\",\"mainEntityOfPage\":{\"@id\":\"https://docs.lms.bsa.ai/loans/list#webpage\"},\"dateModified\":\"2026-10-08T08:34:20.123Z\",\"publisher\":{\"@id\":\"https://docs.lms.bsa.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.lms.bsa.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Blackswan\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Blackswan\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/loans/list.md","siteName":"Blackswan","nav":{"global":null,"groups":[{"group":"Getting Started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Quickstart","href":"/quickstart"}]},{"group":"Concepts","pages":[{"title":"Authentication","href":"/concepts/authentication"},{"title":"Authorization","href":"/concepts/authorization"},{"title":"IDs, dates, and money","href":"/concepts/ids-dates-money"},{"title":"Pagination","href":"/concepts/pagination"},{"title":"Errors","href":"/concepts/errors"}]},{"group":"Customers","pages":[{"title":"Customers","href":"/customers/overview"},{"title":"Create a customer","api":"POST /v1/customers","href":"/customers/create"},{"title":"List customers","api":"GET /v1/customers","href":"/customers/list"},{"title":"Get a customer","api":"GET /v1/customers/external/{customer_external_id}","href":"/customers/get"},{"title":"Update a customer","api":"PUT /v1/customers/external/{customer_external_id}","href":"/customers/update"},{"title":"Delete a customer","api":"DELETE /v1/customers/{customer_id}","href":"/customers/delete"},{"title":"Close a customer","api":"POST /v1/customers/{customer_id}/close","href":"/customers/close"}]},{"group":"Loans","pages":[{"title":"Loans","href":"/loans/overview"},{"title":"Create a loan","description":"Submit, approve, and disburse a loan in a single call. Returns an Active loan.","api":"POST /v1/loans","href":"/loans/create"},{"title":"List loans","api":"GET /v1/loans","href":"/loans/list"},{"title":"Get a loan","description":"Fetch a single loan by externalId or LMS id.","api":"GET /v1/loans/external/{loan_external_id}","href":"/loans/get"},{"title":"Update a loan","api":"PUT /v1/loans/{loan_id}","href":"/loans/update"},{"title":"Delete a loan","api":"DELETE /v1/loans/{loan_id}","href":"/loans/delete"},{"title":"Roll back a loan","api":"POST /v1/loans/external/{loan_external_id}/rollback","href":"/loans/rollback"},{"title":"Undo disbursal","api":"POST /v1/loans/{loan_id}/undo-disbursal","href":"/loans/undo-disbursal"},{"title":"Undo approval","api":"POST /v1/loans/{loan_id}/undo-approval","href":"/loans/undo-approval"},{"title":"Adjust disbursement date","api":"POST /v1/loans/external/{loan_external_id}/adjust-disbursement-date","href":"/loans/adjust-disbursement-date"},{"title":"Write off a loan","api":"POST /v1/loans/{loan_id}/writeoff","href":"/loans/writeoff"}]},{"group":"Repayments","pages":[{"title":"Repayments","href":"/repayments/overview"},{"title":"Record a repayment","api":"POST /v1/loans/external/{loan_external_id}/repayments","href":"/repayments/repay"},{"title":"Refund an overpayment","api":"POST /v1/loans/external/{loan_external_id}/refunds","href":"/repayments/refund"},{"title":"Refund a paid penalty","api":"POST /v1/loans/external/{loan_external_id}/penalties/refund","href":"/repayments/refund-penalty"},{"title":"List repayments","api":"GET /v1/loans/external/{loan_external_id}/repayments","href":"/repayments/list"},{"title":"Get a repayment","api":"GET /v1/loans/external/{loan_external_id}/repayments/{transaction_id}","href":"/repayments/get"}]},{"group":"Loan Products","pages":[{"title":"List loan products","api":"GET /v1/loan-products","href":"/loan-products/list"},{"title":"Get a loan product","api":"GET /v1/loan-products/{product_id}","href":"/loan-products/get"}]},{"group":"Credit Scoring","pages":[{"title":"Get credit scorecard","api":"GET /v1/credit-scorecard/{external_id}","href":"/credit-decisions/scorecard"},{"title":"Boost credit limit","api":"POST /v1/credit-boost","href":"/credit-decisions/boost"}]}]},"basePath":"","title":"List loans - Blackswan","deploymentId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","buildId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-BD9G1WMi.js","snippetPresets-Bcqr8I2u.js","utils-BrYn4XiY.js","style-to-object-BY3JEAdk.js","utils-CYrCnchl.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-CNFO66BS.js","conditional-requirements-CFM0id0Q.js","cloneDeep-BneVo7uA.js","_Uint8Array-n4RvRzp3.js","isObject-FP1Yky1u.js","ApiExamples-C1YMsTjy.js","usePlaygroundInputsStore-DayW4kZ9.js","shallow-DDCzdKmR.js","isEqual-CBVoazy8.js","CodeSnippets-CWandYY5.js","CodeSnippet-grFP6YU_.js","use-playground-group-access-BBqHUxQK.js","Page-DBPN_x5x.js","api-description-markdown-1J-AA_Kv.js","DynamicMarkdown-Dgh_e4rL.js","SectionHeading-BP6Np9Uh.js","MethodPill-4k_Ty_Xv.js","getPastedJson-CWUNKLcr.js","Check2Icon-Cs4FQb2J.js","axios-CsQoIw0U.js"]}