Shifts the effective disbursal date on an Active loan. Use this when
the partner’s wallet credit was delayed (e.g. pending → confirmed two
days later) and the LMS-recorded disbursement date no longer matches
the day the customer actually received the money.Interest re-accrues from the new date, and the
repaymentSchedule is recalculated so the next
due-date math matches reality.
A loan with recorded repayments is rejected with 409 aborted
(adjust_has_repayments). The adjustment reverses and re-books the
disbursement, which would cascade-reverse any repayments — so erasing
them must be an explicit choice. Have the repayment(s) reversed by the
operator team first, then adjust.A loan that already carries a posted overdue penalty is likewise
rejected with 409 aborted (adjust_has_penalty): moving the
disbursement date would move dueDateTime under a penalty that has
already been charged. Waive or reverse the penalty first.
The adjustment also moves the loan’s disbursedAt and
dueDateTime: the due instant shifts
by whole days to the corrected date at the original time of day, in step
with the LMS due date, so the penalty fires relative to when the customer
actually had the money.
Date constraints
The new date must not be in the future — pass today or any past day.
The new date must not be before the loan’s approval date. Because
POST /v1/loans approves on the same day it disburses, the new date
must be on or after the original disbursement date.
For the realistic delayed-wallet flow both constraints are satisfied
naturally: the partner calls this endpoint on the day the wallet
credit actually confirms, which is between the original
approval/disbursement day and today.Two equivalent forms — prefer the externalId form for partner integrations.
Path parameters
string
required
The loan’s externalId. On the /v1/loans/{loan_id}/adjust-disbursement-date
form, this is the numeric LMS id instead.
Request body
string
required
ISO-8601 YYYY-MM-DD. The corrected disbursal date.
string
Optional. Reason for the adjustment, captured in the LMS audit log.
Examples
# By loan externalId (recommended)curl -sf -X POST "$BASE/v1/loans/external/loan-ext-12345/adjust-disbursement-date" \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "actualDisbursementDate": "2026-05-30", "note": "Wallet credit confirmed 2 days after original disbursement" }'# Same effect, by LMS idcurl -sf -X POST "$BASE/v1/loans/501/adjust-disbursement-date" \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{"actualDisbursementDate": "2026-05-30"}'
Response
200 OK returns the loan object with the new
disbursal date, recomputed schedule, and adjusted next-due fields.
How it works
The wrapper performs undo-disbursal then re-disburse against the
LMS with the corrected date. These are two separate LMS commands, so
the wrapper makes them atomic from the partner’s point of view: it
records the current disbursement date first, and if re-disbursing at the
new date fails it automatically rolls the loan back to the original
date. Either the adjustment succeeds (loan Active, new schedule), or
it fails cleanly with the loan left in its original Active state — the
loan is never stranded in Approved.The only exception is the rare case where the re-disbursal and the
automatic rollback both fail; the response is then a 500 whose message
states the loan is in Approved and names the original date to
re-disburse manually.
Errors
Code
When
not_found
No loan with that id or externalId (loan_not_found)
failed_precondition
The loan has no disbursement to adjust (loan_no_disbursement), or the LMS refused the date — in the future, or before the loan’s approval date (domain_rule_violation)
aborted
The loan has recorded repayments (adjust_has_repayments) or a posted overdue penalty (adjust_has_penalty) — clear those before adjusting the date
invalid_argument
actualDisbursementDate missing or not ISO YYYY-MM-DD (validation_error)
internal
Re-disbursal failed and automatic rollback also failed — loan is in Approved and needs manual re-disbursal at its original date. sub_code is manual_redisbursal_required; like every internal response the message carries no detail (the original date is in our logs), so treat this sub_code as “do not retry, contact us”.
{"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/adjust-disbursement-date","slug":"/loans/adjust-disbursement-date","pageMetadata":{"title":"Adjust disbursement date","description":"Shift an active loan's disbursal date when the partner-side wallet credit landed later than the LMS recorded.","api":"POST /v1/loans/external/{loan_external_id}/adjust-disbursement-date","href":"/loans/adjust-disbursement-date"},"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: \"Shift an active loan’s disbursal date when the partner-side wallet credit landed later than the LMS recorded.\"\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`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,ParamField,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Shifts the effective disbursal date on an `,_jsx(_components.code,{children:`Active`}),` loan. Use this when\nthe partner’s wallet credit was delayed (e.g. pending → confirmed two\ndays later) and the LMS-recorded disbursement date no longer matches\nthe day the customer actually received the money.`]}),`\n`,_jsxs(_components.p,{children:[`Interest re-accrues from the new date, and the\n`,_jsx(_components.a,{href:`/loans/overview`,children:_jsx(_components.code,{children:`repaymentSchedule`})}),` is recalculated so the next\ndue-date math matches reality.`]}),`\n`,_jsxs(Warning,{children:[_jsxs(_components.p,{children:[`A loan with `,_jsx(_components.strong,{children:`recorded repayments`}),` is rejected with `,_jsx(_components.code,{children:`409 aborted`}),`\n(`,_jsx(_components.code,{children:`adjust_has_repayments`}),`). The adjustment reverses and re-books the\ndisbursement, which would cascade-reverse any repayments — so erasing\nthem must be an explicit choice. Have the repayment(s) reversed by the\noperator team first, then adjust.`]}),_jsxs(_components.p,{children:[`A loan that already carries a `,_jsx(_components.strong,{children:`posted overdue penalty`}),` is likewise\nrejected with `,_jsx(_components.code,{children:`409 aborted`}),` (`,_jsx(_components.code,{children:`adjust_has_penalty`}),`): moving the\ndisbursement date would move `,_jsx(_components.code,{children:`dueDateTime`}),` under a penalty that has\nalready been charged. Waive or reverse the penalty first.`]})]}),`\n`,_jsxs(_components.p,{children:[`The adjustment also moves the loan’s `,_jsx(_components.code,{children:`disbursedAt`}),` and\n`,_jsx(_components.a,{href:`/loans/overview#overdue-penalty`,children:_jsx(_components.code,{children:`dueDateTime`})}),`: the due instant shifts\nby whole days to the corrected date at the original time of day, in step\nwith the LMS due date, so the penalty fires relative to when the customer\nactually had the money.`]}),`\n`,_jsx(Heading,{level:`2`,id:`date-constraints`,children:`Date constraints`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`The new date `,_jsx(_components.strong,{children:`must not be in the future`}),` — pass today or any past day.`]}),`\n`,_jsxs(_components.li,{children:[`The new date `,_jsx(_components.strong,{children:`must not be before the loan’s approval date.`}),` Because\n`,_jsx(_components.code,{children:`POST /v1/loans`}),` approves on the same day it disburses, the new date\nmust be on or after the original disbursement date.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`For the realistic delayed-wallet flow both constraints are satisfied\nnaturally: the partner calls this endpoint on the day the wallet\ncredit actually confirms, which is between the original\napproval/disbursement day and today.`}),`\n`,_jsx(_components.p,{children:`Two equivalent forms — prefer the externalId form for partner integrations.`}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`loan_external_id`,type:`string`,required:true,id:`param-loan-external-id`,children:_jsxs(_components.p,{children:[`The loan’s externalId. On the `,_jsx(_components.code,{children:`/v1/loans/{loan_id}/adjust-disbursement-date`}),`\nform, this is the numeric LMS id instead.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request body`}),`\n`,_jsx(ParamField,{body:`actualDisbursementDate`,type:`string`,required:true,id:`param-actual-disbursement-date`,children:_jsxs(_components.p,{children:[`ISO-8601 `,_jsx(_components.code,{children:`YYYY-MM-DD`}),`. The corrected disbursal date.`]})}),`\n`,_jsx(ParamField,{body:`note`,type:`string`,id:`param-note`,children:_jsx(_components.p,{children:`Optional. Reason for the adjustment, captured in the LMS audit log.`})}),`\n`,_jsx(Heading,{level:`2`,id:`examples`,children:`Examples`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,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:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# By loan externalId (recommended)`})}),`\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:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_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/external/loan-ext-12345/adjust-disbursement-date\"`}),_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:`\"`}),_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:` \"Content-Type: application/json\"`}),_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:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"actualDisbursementDate\": \"2026-05-30\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"note\": \"Wallet credit confirmed 2 days after original disbursement\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_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 effect, 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:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_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/501/adjust-disbursement-date\"`}),_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:`\"`}),_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:` \"Content-Type: application/json\"`}),_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:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"actualDisbursementDate\": \"2026-05-30\"}'`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`200 OK`}),` returns the `,_jsx(_components.a,{href:`/loans/overview`,children:`loan object`}),` with the new\ndisbursal date, recomputed schedule, and adjusted next-due fields.`]}),`\n`,_jsx(Heading,{level:`2`,id:`how-it-works`,children:`How it works`}),`\n`,_jsxs(_components.p,{children:[`The wrapper performs `,_jsx(_components.code,{children:`undo-disbursal`}),` then re-`,_jsx(_components.code,{children:`disburse`}),` against the\nLMS with the corrected date. These are two separate LMS commands, so\nthe wrapper makes them `,_jsx(_components.strong,{children:`atomic from the partner’s point of view`}),`: it\nrecords the current disbursement date first, and if re-disbursing at the\nnew date fails it automatically rolls the loan back to the original\ndate. Either the adjustment succeeds (loan `,_jsx(_components.code,{children:`Active`}),`, new schedule), or\nit fails cleanly with the loan left in its original `,_jsx(_components.code,{children:`Active`}),` state — the\nloan is never stranded in `,_jsx(_components.code,{children:`Approved`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`The only exception is the rare case where the re-disbursal `,_jsx(_components.em,{children:`and`}),` the\nautomatic rollback both fail; the response is then a `,_jsx(_components.code,{children:`500`}),` whose message\nstates the loan is in `,_jsx(_components.code,{children:`Approved`}),` and names the original date to\nre-disburse manually.`]}),`\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:`not_found`})}),_jsxs(_components.td,{children:[`No loan with that id or externalId (`,_jsx(_components.code,{children:`loan_not_found`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`failed_precondition`})}),_jsxs(_components.td,{children:[`The loan has no disbursement to adjust (`,_jsx(_components.code,{children:`loan_no_disbursement`}),`), or the LMS refused the date — in the future, or before the loan’s approval date (`,_jsx(_components.code,{children:`domain_rule_violation`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`aborted`})}),_jsxs(_components.td,{children:[`The loan has recorded repayments (`,_jsx(_components.code,{children:`adjust_has_repayments`}),`) or a posted overdue penalty (`,_jsx(_components.code,{children:`adjust_has_penalty`}),`) — clear those before adjusting the date`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_argument`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`actualDisbursementDate`}),` missing or not ISO `,_jsx(_components.code,{children:`YYYY-MM-DD`}),` (`,_jsx(_components.code,{children:`validation_error`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`internal`})}),_jsxs(_components.td,{children:[`Re-disbursal failed and automatic rollback also failed — loan is in `,_jsx(_components.code,{children:`Approved`}),` and needs manual re-disbursal at its original date. `,_jsx(_components.code,{children:`sub_code`}),` is `,_jsx(_components.code,{children:`manual_redisbursal_required`}),`; like every `,_jsx(_components.code,{children:`internal`}),` response the message carries no detail (the original date is in our logs), so treat this sub_code as “do not retry, contact us”.`]})]})]})]})]})}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":"Adjust disbursement date","description":"Shift an active loan's disbursal date when the partner-side wallet credit landed later than the LMS recorded.","api":"POST /v1/loans/external/{loan_external_id}/adjust-disbursement-date","href":"/loans/adjust-disbursement-date"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Date constraints","slug":"date-constraints","depth":2,"children":[]},{"title":"Path parameters","slug":"path-parameters","depth":2,"children":[]},{"title":"Request body","slug":"request-body","depth":2,"children":[]},{"title":"Examples","slug":"examples","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"How it works","slug":"how-it-works","depth":2,"children":[]},{"title":"Errors","slug":"errors","depth":2,"children":[]}],"codeExamples":{},"endpoint":{"title":"Adjust disbursement date","path":"/v1/loans/external/{loan_external_id}/adjust-disbursement-date","servers":[{"url":"https://api-staging.bsa.ai"}],"method":"post","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":{},"header":{},"cookie":{},"path":{"loan_external_id":{"schema":[{"type":"string","description":"The loan’s externalId. On the `/v1/loans/{loan_id}/adjust-disbursement-date` form, this is the numeric LMS id instead.","required":true}]}}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"actualDisbursementDate":[{"type":"string","description":"ISO-8601 `YYYY-MM-DD` . The corrected disbursal date.","required":true}],"note":[{"type":"string","description":"Optional. Reason for the adjustment, captured in the LMS audit log."}]}}],"examples":{"example":{"value":{"actualDisbursementDate":"\u003cstring>","note":"\u003cstring>"}}}}}},"response":{},"deprecated":false}},"jsLinks":[],"subdomain":"bsa","siteName":"Blackswan","title":"Adjust disbursement date - Blackswan","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-16T05:21:50.814Z","originalFileLocation":"loans/adjust-disbursement-date.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=\"Shift an active loan\u0026#x27;s disbursal date when the partner-side wallet credit landed later than the LMS recorded.\">\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=\"Adjust disbursement date - Blackswan\">\u003cmeta data-mint-head property=\"og:description\" content=\"Shift an active loan\u0026#x27;s disbursal date when the partner-side wallet credit landed later than the LMS recorded.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Blackswan\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.lms.bsa.ai/loans/adjust-disbursement-date\">\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=Adjust+disbursement+date\u0026amp;description=Shift+an+active+loan%27s+disbursal+date+when+the+partner-side+wallet+credit+landed+later+than+the+LMS+recorded.\u0026amp;theme=04ef1c6275fc089e56d4178b\u0026amp;signature=3c0b8c767201db8e432b86d89a14353123c3b89c64c1116d2ca29875bed4a520\">\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=\"Adjust disbursement date - Blackswan\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Shift an active loan\u0026#x27;s disbursal date when the partner-side wallet credit landed later than the LMS recorded.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://bsa.mintlify.site/_mintlify/api/og/v2?division=Loans\u0026amp;title=Adjust+disbursement+date\u0026amp;description=Shift+an+active+loan%27s+disbursal+date+when+the+partner-side+wallet+credit+landed+later+than+the+LMS+recorded.\u0026amp;theme=04ef1c6275fc089e56d4178b\u0026amp;signature=3c0b8c767201db8e432b86d89a14353123c3b89c64c1116d2ca29875bed4a520\">\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/adjust-disbursement-date\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/loans/adjust-disbursement-date.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/adjust-disbursement-date#webpage\",\"url\":\"https://docs.lms.bsa.ai/loans/adjust-disbursement-date\",\"name\":\"Adjust disbursement date\",\"description\":\"Shift an active loan's disbursal date when the partner-side wallet credit landed later than the LMS recorded.\",\"dateModified\":\"2026-10-16T05:21:50.814Z\",\"isPartOf\":{\"@id\":\"https://docs.lms.bsa.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.lms.bsa.ai/loans/adjust-disbursement-date#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.lms.bsa.ai/loans/adjust-disbursement-date#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Loans\",\"item\":\"https://docs.lms.bsa.ai/loans/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Adjust disbursement date\",\"item\":\"https://docs.lms.bsa.ai/loans/adjust-disbursement-date\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.lms.bsa.ai/loans/adjust-disbursement-date#apireference\",\"headline\":\"Adjust disbursement date\",\"name\":\"Adjust disbursement date\",\"description\":\"Shift an active loan's disbursal date when the partner-side wallet credit landed later than the LMS recorded.\",\"url\":\"https://docs.lms.bsa.ai/loans/adjust-disbursement-date\",\"mainEntityOfPage\":{\"@id\":\"https://docs.lms.bsa.ai/loans/adjust-disbursement-date#webpage\"},\"dateModified\":\"2026-10-16T05:21:50.814Z\",\"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/adjust-disbursement-date.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","api":"POST /v1/loans","href":"/loans/create"},{"title":"List loans","api":"GET /v1/loans","href":"/loans/list"},{"title":"Get a loan","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","description":"Reverse an approval and return the loan to submitted state.","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","description":"Write off the outstanding balance of a delinquent 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":"Adjust disbursement date - 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"]}