Closes a customer. The customer can no longer hold new loans or
accounts but historical records remain queryable. Closure cannot be
undone — there is no “reopen” endpoint.
Customers with open loans or active savings accounts cannot be
closed. Close those first.
No customer with that id or externalId (customer_not_found)
failed_precondition
Customer has open loans/accounts, or is already closed (domain_rule_violation)
invalid_argument
Missing closureDate or closureReasonId, or a closureReasonId that is not configured on the deployment (validation_error)
{"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":"customers/close","slug":"/customers/close","pageMetadata":{"title":"Close a customer","description":"Permanently close an active customer.","api":"POST /v1/customers/{customer_id}/close","href":"/customers/close"},"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: \"Permanently close an active customer.\"\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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._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:[_jsx(_components.p,{children:`Closes a customer. The customer can no longer hold new loans or\naccounts but historical records remain queryable. Closure cannot be\nundone — there is no “reopen” endpoint.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Customers with `,_jsx(_components.strong,{children:`open loans or active savings accounts cannot be\nclosed.`}),` Close those first.`]})}),`\n`,_jsxs(_components.p,{children:[`Two equivalent forms — see `,_jsx(_components.a,{href:`/customers/overview#addressing-a-customer`,children:`Addressing a customer`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`customer_id`,type:`string`,required:true,id:`param-customer-id`,children:_jsxs(_components.p,{children:[`LMS id, or the externalId on the\n`,_jsx(_components.code,{children:`/external/{customer_external_id}/close`}),` form.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request body`}),`\n`,_jsx(ParamField,{body:`closureDate`,type:`string`,required:true,id:`param-closure-date`,children:_jsxs(_components.p,{children:[`ISO-8601 `,_jsx(_components.code,{children:`YYYY-MM-DD`}),`. The effective date of closure.`]})}),`\n`,_jsx(ParamField,{body:`closureReasonId`,type:`integer`,required:true,id:`param-closure-reason-id`,children:_jsx(_components.p,{children:`Closure reason code. Valid values are configured per deployment.`})}),`\n`,_jsx(Heading,{level:`2`,id:`examples`,children:`Examples`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,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:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# 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/customers/42/close\"`}),_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:` '{\"closureDate\": \"2026-12-31\", \"closureReasonId\": 17}'`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# By 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:`#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/customers/external/ext-ada-001/close\"`}),_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:` '{\"closureDate\": \"2026-12-31\", \"closureReasonId\": 17}'`})]}),`\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:`/customers/overview`,children:`customer object`}),` with\n`,_jsx(_components.code,{children:`status=\"Closed\"`}),`.`]}),`\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 customer with that id or externalId (`,_jsx(_components.code,{children:`customer_not_found`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`failed_precondition`})}),_jsxs(_components.td,{children:[`Customer has open loans/accounts, or is already closed (`,_jsx(_components.code,{children:`domain_rule_violation`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_argument`})}),_jsxs(_components.td,{children:[`Missing `,_jsx(_components.code,{children:`closureDate`}),` or `,_jsx(_components.code,{children:`closureReasonId`}),`, or a `,_jsx(_components.code,{children:`closureReasonId`}),` that is not configured on the deployment (`,_jsx(_components.code,{children:`validation_error`}),`)`]})]})]})]})]})}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":"Close a customer","description":"Permanently close an active customer.","api":"POST /v1/customers/{customer_id}/close","href":"/customers/close"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"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":"Errors","slug":"errors","depth":2,"children":[]}],"codeExamples":{},"endpoint":{"title":"Close a customer","path":"/v1/customers/{customer_id}/close","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":{"customer_id":{"schema":[{"type":"string","description":"LMS id, or the externalId on the `/external/{customer_external_id}/close` form.","required":true}]}}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"closureDate":[{"type":"string","description":"ISO-8601 `YYYY-MM-DD` . The effective date of closure.","required":true}],"closureReasonId":[{"type":"integer","description":"Closure reason code. Valid values are configured per deployment.","required":true}]}}],"examples":{"example":{"value":{"closureDate":"\u003cstring>","closureReasonId":123}}}}}},"response":{},"deprecated":false}},"jsLinks":[],"subdomain":"bsa","siteName":"Blackswan","title":"Close a customer - Blackswan","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-16T08:55:42.754Z","originalFileLocation":"customers/close.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=\"Permanently close an active customer.\">\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=\"Close a customer - Blackswan\">\u003cmeta data-mint-head property=\"og:description\" content=\"Permanently close an active customer.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Blackswan\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.lms.bsa.ai/customers/close\">\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=Customers\u0026amp;title=Close+a+customer\u0026amp;description=Permanently+close+an+active+customer.\u0026amp;theme=04ef1c6275fc089e56d4178b\u0026amp;signature=f1bdb3910136332f52bf72adcf3408a9f245623904860a1104c73294ae94dcb3\">\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=\"Close a customer - Blackswan\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Permanently close an active customer.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://bsa.mintlify.site/_mintlify/api/og/v2?division=Customers\u0026amp;title=Close+a+customer\u0026amp;description=Permanently+close+an+active+customer.\u0026amp;theme=04ef1c6275fc089e56d4178b\u0026amp;signature=f1bdb3910136332f52bf72adcf3408a9f245623904860a1104c73294ae94dcb3\">\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/customers/close\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/customers/close.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/customers/close#webpage\",\"url\":\"https://docs.lms.bsa.ai/customers/close\",\"name\":\"Close a customer\",\"description\":\"Permanently close an active customer.\",\"dateModified\":\"2026-09-16T08:55:42.754Z\",\"isPartOf\":{\"@id\":\"https://docs.lms.bsa.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.lms.bsa.ai/customers/close#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.lms.bsa.ai/customers/close#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Customers\",\"item\":\"https://docs.lms.bsa.ai/customers/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Close a customer\",\"item\":\"https://docs.lms.bsa.ai/customers/close\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.lms.bsa.ai/customers/close#apireference\",\"headline\":\"Close a customer\",\"name\":\"Close a customer\",\"description\":\"Permanently close an active customer.\",\"url\":\"https://docs.lms.bsa.ai/customers/close\",\"mainEntityOfPage\":{\"@id\":\"https://docs.lms.bsa.ai/customers/close#webpage\"},\"dateModified\":\"2026-09-16T08:55:42.754Z\",\"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":"/customers/close.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","description":"Permanently remove a customer record.","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","description":"One-shot loan origination via POST /loans — submit, approve, and disburse in a single call.","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","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":"Close a customer - 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"]}