Customers can use this endpoint to record a partial repayment for their loan. This is typically used after making a bank transfer to the repayment account.
Get repayment instructions using GET /repayment-instructions/{loan-application-id}
Make a bank transfer to the provided account with the repayment reference
Record the repayment using this endpoint
Some loans use third-party collection services. Manual repayments via this API may not be allowed for such loans. The system will return an error if manual repayment is not permitted.
Request Headers
string
required
The JWT Access Token obtained from the /login or /refresh-token endpoint.
string
required
Unique idempotency key for the request to prevent duplicate processing.
string
required
The date and time at which the request was initiated (ISO 8601 format).
string
required
The IP address of the customer making the request.
string
required
Unique identifier for the interaction/session.
string
default:"application/json"
required
Must be application/json.
Path Parameters
string
required
The unique identifier (UUID) of the user making the repayment. This must match the authenticated user.
Request Body
number
required
The amount to be repaid. Must be greater than zero and cannot exceed the total payable amount.
string
required
The unique identifier (UUID) of the customer making the repayment. Must match the authenticated user.
string
required
The unique identifier (UUID) of the loan account being repaid.
string
required
The unique identifier (UUID) of the bank account from which the payment was made. This must be a bank account that belongs to the customer.
string
The payment reference number from the bank transfer. This should match the reference provided in the repayment instructions.
string
The date when the payment was made (ISO 8601 format). If not provided, the current date is used.
string
Optional description or narration for the payment.
Response
Returns confirmation of the repayment submission with details.
string
default:"SUCCESS"
Overall status of the API request.
object
Repayment confirmation details.
Show data object
string
Unique identifier for the repayment record.
number
The amount that was repaid.
string
Name of the customer who made the repayment.
string
Email address of the customer.
string
Name of the loan product.
string
Payment reference number for the repayment.
string
default:"PENDING_VERIFICATION"
Status of the repayment verification. Options: PENDING_VERIFICATION, VERIFIED, REJECTED.
Loan Not Found: No active loan found for the provided customer ID
Loan Closed: The loan is already closed and cannot be repaid
Unauthorized: The customer ID does not match the authenticated user
Manual Repayment Not Allowed: The loan uses third-party collection and manual repayments are not permitted
Invalid Amount: Repayment amount is zero, negative, or exceeds total payable
Bank Account Mismatch: The bank account does not belong to the customer
Missing Loan Application: Loan application ID is missing for the customer loan record
Repayment Flow
See the complete repayment flow documentation
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"FinCode Platform","colors":{"primary":"#734CDC","light":"#734CDC","dark":"#79359F"},"logo":{"light":"https://mintcdn.com/fincode/8bMKpNvzhWMZ8TuP/logo/logo.png?fit=max\u0026auto=format\u0026n=8bMKpNvzhWMZ8TuP\u0026q=85\u0026s=db1240518f55835a324cde1e8377682d","dark":"https://mintcdn.com/fincode/8bMKpNvzhWMZ8TuP/logo/logo.png?fit=max\u0026auto=format\u0026n=8bMKpNvzhWMZ8TuP\u0026q=85\u0026s=db1240518f55835a324cde1e8377682d","href":"https://docs.fincode.technology"},"favicon":"https://mintcdn.com/fincode/ryDAHkGMzsGXiEgb/favicon.svg?fit=max\u0026auto=format\u0026n=ryDAHkGMzsGXiEgb\u0026q=85\u0026s=bc4af5ca2aa38e3d5a719288084c0e4e","appearance":{"default":"light"},"navbar":{"primary":{"type":"button","label":"Contact Sales","href":"https://fincode.co.uk/contact-us/"}},"footer":{"socials":{"github":"https://github.com/fincodeuk","linkedin":"https://linkedin.com/company/fincodeUk","twitter":"https://twitter.com/fincodehq"}},"contextual":{"options":["copy","view","chatgpt","claude","cursor"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"fincode","hasAudioNarration":false,"actualSubdomain":"fincode","customDomains":["docs.fincode.technology"],"gitSource":{"type":"github","owner":"trillionclues-fincode","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6af6ff7d565e709b752983ff","clientVersion":"0.0.4167","searchFilterCounts":[{"language":"default","tag":"API Reference","count":152},{"language":"default","tag":"Customer Identity \u0026 Access Management","count":59},{"language":"default","tag":"Lending","count":37},{"language":"default","tag":"Remittance","count":26},{"language":"default","tag":"Getting Started","count":17},{"language":"default","tag":"Deposit Engine","count":15},{"language":"default","tag":"Core Flows","count":14},{"language":"default","tag":"Ledger Engine","count":12},{"language":"default","tag":"Songhai Exchange (Payment Switch)","count":12},{"language":"default","tag":"Savings \u0026 Investment","count":11}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"workos-onboarding","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":"assistant-v5","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":"workos-sso-scim","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":"workos-signup","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":"workos-enabled","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":"sso-setup-deadline-banner","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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api/lending/repay-loan","slug":"/api/lending/repay-loan","pageMetadata":{"title":"Repay Loan","api":"POST https://{your-domain}.fincode.software/api/v1/services/user/repay-loan/{user-id}","description":"Allows customers to make a partial repayment for their loan.","href":"/api/lending/repay-loan"},"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: \"Allows customers to make a partial repayment for their loan.\"\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={code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Card,CodeBlock,CodeGroup,Expandable,Heading,Note,ParamField,ResponseField,Warning}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Customers can use this endpoint to record a partial repayment for their loan. This is typically used after making a bank transfer to the repayment account.`}),`\n`,`\n`,_jsxs(Note,{children:[_jsx(_components.p,{children:`Before making a repayment, customers should:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Get repayment instructions using `,_jsx(_components.code,{children:`GET /repayment-instructions/{loan-application-id}`})]}),`\n`,_jsx(_components.li,{children:`Make a bank transfer to the provided account with the repayment reference`}),`\n`,_jsx(_components.li,{children:`Record the repayment using this endpoint`}),`\n`]})]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Some loans use third-party collection services. Manual repayments via this API may not be allowed for such loans. The system will return an error if manual repayment is not permitted.`})}),`\n`,_jsx(Heading,{level:`2`,id:`request-headers`,children:`Request Headers`}),`\n`,_jsx(ParamField,{header:`X-Auth-Token`,type:`string`,required:true,id:`param-x-auth-token`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`JWT Access Token`}),` obtained from the `,_jsx(_components.code,{children:`/login`}),` or `,_jsx(_components.code,{children:`/refresh-token`}),` endpoint.`]})}),`\n`,_jsx(ParamField,{header:`x-idempotency-key`,type:`string`,required:true,id:`param-x-idempotency-key`,children:_jsx(_components.p,{children:`Unique idempotency key for the request to prevent duplicate processing.`})}),`\n`,_jsx(ParamField,{header:`x-fapi-auth-date`,type:`string`,required:true,id:`param-x-fapi-auth-date`,children:_jsx(_components.p,{children:`The date and time at which the request was initiated (ISO 8601 format).`})}),`\n`,_jsx(ParamField,{header:`x-fapi-customer-ip-address`,type:`string`,required:true,id:`param-x-fapi-customer-ip-address`,children:_jsx(_components.p,{children:`The IP address of the customer making the request.`})}),`\n`,_jsx(ParamField,{header:`x-fapi-interaction-id`,type:`string`,required:true,id:`param-x-fapi-interaction-id`,children:_jsx(_components.p,{children:`Unique identifier for the interaction/session.`})}),`\n`,_jsx(ParamField,{header:`Content-Type`,type:`string`,required:true,default:`application/json`,id:`param-content-type`,children:_jsxs(_components.p,{children:[`Must be `,_jsx(_components.code,{children:`application/json`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path Parameters`}),`\n`,_jsx(ParamField,{path:`user-id`,type:`string`,required:true,id:`param-user-id`,children:_jsx(_components.p,{children:`The unique identifier (UUID) of the user making the repayment. This must match the authenticated user.`})}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`repaymentAmount`,type:`number`,required:true,id:`param-repayment-amount`,children:_jsx(_components.p,{children:`The amount to be repaid. Must be greater than zero and cannot exceed the total payable amount.`})}),`\n`,_jsx(ParamField,{body:`customerId`,type:`string`,required:true,id:`param-customer-id`,children:_jsx(_components.p,{children:`The unique identifier (UUID) of the customer making the repayment. Must match the authenticated user.`})}),`\n`,_jsx(ParamField,{body:`accountId`,type:`string`,required:true,id:`param-account-id`,children:_jsx(_components.p,{children:`The unique identifier (UUID) of the loan account being repaid.`})}),`\n`,_jsx(ParamField,{body:`bankAccountId`,type:`string`,required:true,id:`param-bank-account-id`,children:_jsx(_components.p,{children:`The unique identifier (UUID) of the bank account from which the payment was made. This must be a bank account that belongs to the customer.`})}),`\n`,_jsx(ParamField,{body:`repaymentReference`,type:`string`,id:`param-repayment-reference`,children:_jsx(_components.p,{children:`The payment reference number from the bank transfer. This should match the reference provided in the repayment instructions.`})}),`\n`,_jsx(ParamField,{body:`paymentDate`,type:`string`,id:`param-payment-date`,children:_jsx(_components.p,{children:`The date when the payment was made (ISO 8601 format). If not provided, the current date is used.`})}),`\n`,_jsx(ParamField,{body:`paymentNarration`,type:`string`,id:`param-payment-narration`,children:_jsx(_components.p,{children:`Optional description or narration for the payment.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(_components.p,{children:`Returns confirmation of the repayment submission with details.`}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,default:`SUCCESS`,id:`param-status`,children:_jsx(_components.p,{children:`Overall status of the API request.`})}),`\n`,_jsxs(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:[_jsx(_components.p,{children:`Repayment confirmation details.`}),_jsxs(Expandable,{title:`data object`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:_jsx(_components.p,{children:`Unique identifier for the repayment record.`})}),_jsx(ResponseField,{name:`repaymentAmount`,type:`number`,id:`param-repayment-amount-1`,children:_jsx(_components.p,{children:`The amount that was repaid.`})}),_jsx(ResponseField,{name:`customerName`,type:`string`,id:`param-customer-name`,children:_jsx(_components.p,{children:`Name of the customer who made the repayment.`})}),_jsx(ResponseField,{name:`email`,type:`string`,id:`param-email`,children:_jsx(_components.p,{children:`Email address of the customer.`})}),_jsx(ResponseField,{name:`loanProductName`,type:`string`,id:`param-loan-product-name`,children:_jsx(_components.p,{children:`Name of the loan product.`})}),_jsx(ResponseField,{name:`repaymentReference`,type:`string`,id:`param-repayment-reference-1`,children:_jsx(_components.p,{children:`Payment reference number for the repayment.`})}),_jsx(ResponseField,{name:`verificationStatus`,type:`string`,default:`PENDING_VERIFICATION`,id:`param-verification-status`,children:_jsxs(_components.p,{children:[`Status of the repayment verification. Options: `,_jsx(_components.code,{children:`PENDING_VERIFICATION`}),`, `,_jsx(_components.code,{children:`VERIFIED`}),`, `,_jsx(_components.code,{children:`REJECTED`}),`.`]})}),_jsx(ResponseField,{name:`message`,type:`string`,id:`param-message`,children:_jsx(_components.p,{children:`Message confirming the repayment submission.`})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`code-examples`,children:`Code Examples`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`16`,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:`16`,children:[_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:` --location`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://{your-domain}.fincode.software/api/v1/services/user/repay-loan/123e4567-e89b-12d3-a456-426614174000'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'X-Auth-Token: YOUR_JWT_ACCESS_TOKEN'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'x-idempotency-key: unique-key-12345'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'x-fapi-auth-date: 2024-01-15T10:30:00Z'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'x-fapi-customer-ip-address: 192.168.1.1'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'x-fapi-interaction-id: interaction-12345'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--data `}),_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:` \"repaymentAmount\": 50000,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"customerId\": \"123e4567-e89b-12d3-a456-426614174000\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"accountId\": \"223e4567-e89b-12d3-a456-426614174001\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"bankAccountId\": \"323e4567-e89b-12d3-a456-426614174002\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"repaymentReference\": \"REF-2024-01-15-001\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"paymentDate\": \"2024-01-15T10:00:00Z\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"paymentNarration\": \"Monthly installment payment\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Node.js`,numberOfLines:`62`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`62`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` axios`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` require`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'axios'`}),_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:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` BASE_URL`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://{your-domain}.fincode.software/api/v1/services/user'`}),_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:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` repayLoan`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`accessToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`userId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`repaymentData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` try`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` axios`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`post`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`BASE_URL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/repay-loan/`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`userId`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` repaymentAmount:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` repaymentData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`amount`}),_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\":`#9CDCFE`},children:` customerId:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` repaymentData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customerId`}),_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\":`#9CDCFE`},children:` accountId:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` repaymentData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`accountId`}),_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\":`#9CDCFE`},children:` bankAccountId:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` repaymentData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`bankAccountId`}),_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\":`#9CDCFE`},children:` repaymentReference:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` repaymentData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`reference`}),_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\":`#9CDCFE`},children:` paymentDate:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` repaymentData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`paymentDate`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ||`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Date`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toISOString`}),_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\":`#9CDCFE`},children:` paymentNarration:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` repaymentData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`narration`}),_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'X-Auth-Token'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` accessToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'x-idempotency-key'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `key-\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Date`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`now`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`()`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'x-fapi-auth-date'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Date`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toISOString`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'x-fapi-customer-ip-address'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '192.168.1.1'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'x-fapi-interaction-id'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `interaction-\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Date`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`now`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`()`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`}),_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`,_jsx(_components.span,{className:`line`,children:_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:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` repayment`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_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\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Repayment submitted successfully:'`}),_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\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`- Repayment ID: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`repayment`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_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\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`- Amount: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`repayment`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`repaymentAmount`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_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\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`- Status: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`repayment`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`verificationStatus`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_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\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`- Message: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`repayment`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_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:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` repayment`}),_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:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`catch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_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\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Failed to submit repayment:'`}),_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\":`#9CDCFE`},children:` error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ||`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`})]}),`\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:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` error`}),_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`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Usage Example`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` accessToken`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'YOUR_JWT_ACCESS_TOKEN'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` userId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '123e4567-e89b-12d3-a456-426614174000'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// First, get repayment instructions`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Then make bank transfer`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Finally, record the repayment`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`repayLoan`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`accessToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`userId`}),_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\":`#9CDCFE`},children:` amount:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 50000`}),_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\":`#9CDCFE`},children:` customerId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '123e4567-e89b-12d3-a456-426614174000'`}),_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\":`#9CDCFE`},children:` accountId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '223e4567-e89b-12d3-a456-426614174001'`}),_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\":`#9CDCFE`},children:` bankAccountId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '323e4567-e89b-12d3-a456-426614174002'`}),_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\":`#9CDCFE`},children:` reference:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'REF-2024-01-15-001'`}),_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\":`#9CDCFE`},children:` paymentDate:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '2024-01-15T10:00:00Z'`}),_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\":`#9CDCFE`},children:` narration:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Monthly installment payment'`}),_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`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`error-responses`,children:`Error Responses`}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,default:`FAILED`,id:`param-status-1`,children:_jsxs(_components.p,{children:[`Status will be `,_jsx(_components.code,{children:`FAILED`}),` if an error occurs.`]})}),`\n`,_jsx(ResponseField,{name:`message`,type:`string`,id:`param-message-1`,children:_jsx(_components.p,{children:`Error message describing what went wrong.`})}),`\n`,_jsx(Heading,{level:`3`,id:`common-error-scenarios`,children:`Common Error Scenarios`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Loan Not Found`}),`: No active loan found for the provided customer ID`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Loan Closed`}),`: The loan is already closed and cannot be repaid`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Unauthorized`}),`: The customer ID does not match the authenticated user`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Manual Repayment Not Allowed`}),`: The loan uses third-party collection and manual repayments are not permitted`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Invalid Amount`}),`: Repayment amount is zero, negative, or exceeds total payable`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Bank Account Mismatch`}),`: The bank account does not belong to the customer`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Missing Loan Application`}),`: Loan application ID is missing for the customer loan record`]}),`\n`]}),`\n`,_jsx(Card,{title:`Repayment Flow`,href:`/lending/repayment-flow`,children:_jsx(_components.p,{children:`See the complete repayment flow documentation`})})]})}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":"Repay Loan","api":"POST https://{your-domain}.fincode.software/api/v1/services/user/repay-loan/{user-id}","description":"Allows customers to make a partial repayment for their loan.","href":"/api/lending/repay-loan"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Card,CodeBlock,CodeGroup,Expandable,Heading,Note,ParamField,RequestExample,ResponseField,Warning}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Customers can use this endpoint to record a partial repayment for their loan. This is typically used after making a bank transfer to the repayment account.`}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL POST`,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`https://`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`{your-domain}`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`.fincode.software/api/v1/services/user/repay-loan/`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`{user-id}`})]}),`\n`]})})})}),`\n`,_jsxs(Note,{children:[_jsx(_components.p,{children:`Before making a repayment, customers should:`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Get repayment instructions using `,_jsx(_components.code,{children:`GET /repayment-instructions/{loan-application-id}`})]}),`\n`,_jsx(_components.li,{children:`Make a bank transfer to the provided account with the repayment reference`}),`\n`,_jsx(_components.li,{children:`Record the repayment using this endpoint`}),`\n`]})]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Some loans use third-party collection services. Manual repayments via this API may not be allowed for such loans. The system will return an error if manual repayment is not permitted.`})}),`\n`,_jsx(Heading,{level:`2`,id:`request-headers`,children:`Request Headers`}),`\n`,_jsx(ParamField,{header:`X-Auth-Token`,type:`string`,required:true,id:`param-x-auth-token`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`JWT Access Token`}),` obtained from the `,_jsx(_components.code,{children:`/login`}),` or `,_jsx(_components.code,{children:`/refresh-token`}),` endpoint.`]})}),`\n`,_jsx(ParamField,{header:`x-idempotency-key`,type:`string`,required:true,id:`param-x-idempotency-key`,children:_jsx(_components.p,{children:`Unique idempotency key for the request to prevent duplicate processing.`})}),`\n`,_jsx(ParamField,{header:`x-fapi-auth-date`,type:`string`,required:true,id:`param-x-fapi-auth-date`,children:_jsx(_components.p,{children:`The date and time at which the request was initiated (ISO 8601 format).`})}),`\n`,_jsx(ParamField,{header:`x-fapi-customer-ip-address`,type:`string`,required:true,id:`param-x-fapi-customer-ip-address`,children:_jsx(_components.p,{children:`The IP address of the customer making the request.`})}),`\n`,_jsx(ParamField,{header:`x-fapi-interaction-id`,type:`string`,required:true,id:`param-x-fapi-interaction-id`,children:_jsx(_components.p,{children:`Unique identifier for the interaction/session.`})}),`\n`,_jsx(ParamField,{header:`Content-Type`,type:`string`,required:true,default:`application/json`,id:`param-content-type`,children:_jsxs(_components.p,{children:[`Must be `,_jsx(_components.code,{children:`application/json`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path Parameters`}),`\n`,_jsx(ParamField,{path:`user-id`,type:`string`,required:true,id:`param-user-id`,children:_jsx(_components.p,{children:`The unique identifier (UUID) of the user making the repayment. This must match the authenticated user.`})}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`repaymentAmount`,type:`number`,required:true,id:`param-repayment-amount`,children:_jsx(_components.p,{children:`The amount to be repaid. Must be greater than zero and cannot exceed the total payable amount.`})}),`\n`,_jsx(ParamField,{body:`customerId`,type:`string`,required:true,id:`param-customer-id`,children:_jsx(_components.p,{children:`The unique identifier (UUID) of the customer making the repayment. Must match the authenticated user.`})}),`\n`,_jsx(ParamField,{body:`accountId`,type:`string`,required:true,id:`param-account-id`,children:_jsx(_components.p,{children:`The unique identifier (UUID) of the loan account being repaid.`})}),`\n`,_jsx(ParamField,{body:`bankAccountId`,type:`string`,required:true,id:`param-bank-account-id`,children:_jsx(_components.p,{children:`The unique identifier (UUID) of the bank account from which the payment was made. This must be a bank account that belongs to the customer.`})}),`\n`,_jsx(ParamField,{body:`repaymentReference`,type:`string`,id:`param-repayment-reference`,children:_jsx(_components.p,{children:`The payment reference number from the bank transfer. This should match the reference provided in the repayment instructions.`})}),`\n`,_jsx(ParamField,{body:`paymentDate`,type:`string`,id:`param-payment-date`,children:_jsx(_components.p,{children:`The date when the payment was made (ISO 8601 format). If not provided, the current date is used.`})}),`\n`,_jsx(ParamField,{body:`paymentNarration`,type:`string`,id:`param-payment-narration`,children:_jsx(_components.p,{children:`Optional description or narration for the payment.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(_components.p,{children:`Returns confirmation of the repayment submission with details.`}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,default:`SUCCESS`,id:`param-status`,children:_jsx(_components.p,{children:`Overall status of the API request.`})}),`\n`,_jsxs(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:[_jsx(_components.p,{children:`Repayment confirmation details.`}),_jsxs(Expandable,{title:`data object`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:_jsx(_components.p,{children:`Unique identifier for the repayment record.`})}),_jsx(ResponseField,{name:`repaymentAmount`,type:`number`,id:`param-repayment-amount-1`,children:_jsx(_components.p,{children:`The amount that was repaid.`})}),_jsx(ResponseField,{name:`customerName`,type:`string`,id:`param-customer-name`,children:_jsx(_components.p,{children:`Name of the customer who made the repayment.`})}),_jsx(ResponseField,{name:`email`,type:`string`,id:`param-email`,children:_jsx(_components.p,{children:`Email address of the customer.`})}),_jsx(ResponseField,{name:`loanProductName`,type:`string`,id:`param-loan-product-name`,children:_jsx(_components.p,{children:`Name of the loan product.`})}),_jsx(ResponseField,{name:`repaymentReference`,type:`string`,id:`param-repayment-reference-1`,children:_jsx(_components.p,{children:`Payment reference number for the repayment.`})}),_jsx(ResponseField,{name:`verificationStatus`,type:`string`,default:`PENDING_VERIFICATION`,id:`param-verification-status`,children:_jsxs(_components.p,{children:[`Status of the repayment verification. Options: `,_jsx(_components.code,{children:`PENDING_VERIFICATION`}),`, `,_jsx(_components.code,{children:`VERIFIED`}),`, `,_jsx(_components.code,{children:`REJECTED`}),`.`]})}),_jsx(ResponseField,{name:`message`,type:`string`,id:`param-message`,children:_jsx(_components.p,{children:`Message confirming the repayment submission.`})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`code-examples`,children:`Code Examples`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`16`,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:`16`,children:[_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:` --location`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://{your-domain}.fincode.software/api/v1/services/user/repay-loan/123e4567-e89b-12d3-a456-426614174000'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'X-Auth-Token: YOUR_JWT_ACCESS_TOKEN'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'x-idempotency-key: unique-key-12345'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'x-fapi-auth-date: 2024-01-15T10:30:00Z'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'x-fapi-customer-ip-address: 192.168.1.1'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'x-fapi-interaction-id: interaction-12345'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_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:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--data `}),_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:` \"repaymentAmount\": 50000,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"customerId\": \"123e4567-e89b-12d3-a456-426614174000\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"accountId\": \"223e4567-e89b-12d3-a456-426614174001\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"bankAccountId\": \"323e4567-e89b-12d3-a456-426614174002\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"repaymentReference\": \"REF-2024-01-15-001\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"paymentDate\": \"2024-01-15T10:00:00Z\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"paymentNarration\": \"Monthly installment payment\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Node.js`,numberOfLines:`62`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`62`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` axios`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` require`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'axios'`}),_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:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` BASE_URL`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://{your-domain}.fincode.software/api/v1/services/user'`}),_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:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` repayLoan`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`accessToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`userId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`repaymentData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` try`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` axios`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`post`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`BASE_URL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/repay-loan/`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`userId`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` repaymentAmount:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` repaymentData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`amount`}),_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\":`#9CDCFE`},children:` customerId:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` repaymentData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`customerId`}),_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\":`#9CDCFE`},children:` accountId:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` repaymentData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`accountId`}),_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\":`#9CDCFE`},children:` bankAccountId:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` repaymentData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`bankAccountId`}),_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\":`#9CDCFE`},children:` repaymentReference:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` repaymentData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`reference`}),_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\":`#9CDCFE`},children:` paymentDate:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` repaymentData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`paymentDate`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ||`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Date`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toISOString`}),_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\":`#9CDCFE`},children:` paymentNarration:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` repaymentData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`narration`}),_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'X-Auth-Token'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` accessToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'x-idempotency-key'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `key-\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Date`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`now`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`()`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'x-fapi-auth-date'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Date`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toISOString`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'x-fapi-customer-ip-address'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '192.168.1.1'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'x-fapi-interaction-id'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `interaction-\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Date`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`now`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`()`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`}),_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`,_jsx(_components.span,{className:`line`,children:_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:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` repayment`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_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\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Repayment submitted successfully:'`}),_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\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`- Repayment ID: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`repayment`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_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\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`- Amount: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`repayment`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`repaymentAmount`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_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\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`- Status: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`repayment`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`verificationStatus`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_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\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`- Message: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`repayment`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_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:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` repayment`}),_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:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`catch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_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\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Failed to submit repayment:'`}),_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\":`#9CDCFE`},children:` error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ||`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`})]}),`\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:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` error`}),_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`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Usage Example`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` accessToken`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'YOUR_JWT_ACCESS_TOKEN'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` userId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '123e4567-e89b-12d3-a456-426614174000'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// First, get repayment instructions`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Then make bank transfer`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Finally, record the repayment`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`repayLoan`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`accessToken`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`userId`}),_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\":`#9CDCFE`},children:` amount:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 50000`}),_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\":`#9CDCFE`},children:` customerId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '123e4567-e89b-12d3-a456-426614174000'`}),_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\":`#9CDCFE`},children:` accountId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '223e4567-e89b-12d3-a456-426614174001'`}),_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\":`#9CDCFE`},children:` bankAccountId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '323e4567-e89b-12d3-a456-426614174002'`}),_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\":`#9CDCFE`},children:` reference:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'REF-2024-01-15-001'`}),_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\":`#9CDCFE`},children:` paymentDate:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '2024-01-15T10:00:00Z'`}),_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\":`#9CDCFE`},children:` narration:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Monthly installment payment'`}),_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`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`error-responses`,children:`Error Responses`}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,default:`FAILED`,id:`param-status-1`,children:_jsxs(_components.p,{children:[`Status will be `,_jsx(_components.code,{children:`FAILED`}),` if an error occurs.`]})}),`\n`,_jsx(ResponseField,{name:`message`,type:`string`,id:`param-message-1`,children:_jsx(_components.p,{children:`Error message describing what went wrong.`})}),`\n`,_jsx(Heading,{level:`3`,id:`common-error-scenarios`,children:`Common Error Scenarios`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Loan Not Found`}),`: No active loan found for the provided customer ID`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Loan Closed`}),`: The loan is already closed and cannot be repaid`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Unauthorized`}),`: The customer ID does not match the authenticated user`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Manual Repayment Not Allowed`}),`: The loan uses third-party collection and manual repayments are not permitted`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Invalid Amount`}),`: Repayment amount is zero, negative, or exceeds total payable`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Bank Account Mismatch`}),`: The bank account does not belong to the customer`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Missing Loan Application`}),`: Loan application ID is missing for the customer loan record`]}),`\n`]}),`\n`,_jsx(Card,{title:`Repayment Flow`,href:`/lending/repayment-flow`,children:_jsx(_components.p,{children:`See the complete repayment flow documentation`})})]})}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":"Repay Loan","api":"POST https://{your-domain}.fincode.software/api/v1/services/user/repay-loan/{user-id}","description":"Allows customers to make a partial repayment for their loan.","href":"/api/lending/repay-loan"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Request Headers","slug":"request-headers","depth":2,"children":[]},{"title":"Path Parameters","slug":"path-parameters","depth":2,"children":[]},{"title":"Request Body","slug":"request-body","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Code Examples","slug":"code-examples","depth":2,"children":[]},{"title":"Error Responses","slug":"error-responses","depth":2,"children":[{"title":"Common Error Scenarios","slug":"common-error-scenarios","depth":3,"children":[]}]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL POST","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"1\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">https://\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">{your-domain}\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">.fincode.software/api/v1/services/user/repay-loan/\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">{user-id}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Repay Loan","path":"/api/v1/services/user/repay-loan/{user-id}","servers":[{"url":"https://{your-domain}.fincode.software"}],"method":"post","request":{"security":[],"parameters":{"query":{},"header":{"X-Auth-Token":{"schema":[{"type":"string","description":"The JWT Access Token obtained from the `/login` or `/refresh-token` endpoint.","required":true}]},"x-idempotency-key":{"schema":[{"type":"string","description":"Unique idempotency key for the request to prevent duplicate processing.","required":true}]},"x-fapi-auth-date":{"schema":[{"type":"string","description":"The date and time at which the request was initiated (ISO 8601 format).","required":true}]},"x-fapi-customer-ip-address":{"schema":[{"type":"string","description":"The IP address of the customer making the request.","required":true}]},"x-fapi-interaction-id":{"schema":[{"type":"string","description":"Unique identifier for the interaction/session.","required":true}]},"Content-Type":{"schema":[{"type":"string","description":"Must be `application/json` .","required":true}]}},"cookie":{},"path":{"user-id":{"schema":[{"type":"string","description":"The unique identifier (UUID) of the user making the repayment. This must match the authenticated user.","required":true}]}}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"repaymentAmount":[{"type":"number","description":"The amount to be repaid. Must be greater than zero and cannot exceed the total payable amount.","required":true}],"customerId":[{"type":"string","description":"The unique identifier (UUID) of the customer making the repayment. Must match the authenticated user.","required":true}],"accountId":[{"type":"string","description":"The unique identifier (UUID) of the loan account being repaid.","required":true}],"bankAccountId":[{"type":"string","description":"The unique identifier (UUID) of the bank account from which the payment was made. This must be a bank account that belongs to the customer.","required":true}],"repaymentReference":[{"type":"string","description":"The payment reference number from the bank transfer. This should match the reference provided in the repayment instructions."}],"paymentDate":[{"type":"string","description":"The date when the payment was made (ISO 8601 format). If not provided, the current date is used."}],"paymentNarration":[{"type":"string","description":"Optional description or narration for the payment."}]}}],"examples":{"example":{"value":{"repaymentAmount":123,"customerId":"\u003cstring>","accountId":"\u003cstring>","bankAccountId":"\u003cstring>","repaymentReference":"\u003cstring>","paymentDate":"\u003cstring>","paymentNarration":"\u003cstring>"}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"status":[{"type":"string","description":"Status will be `FAILED` if an error occurs."}],"data":[{"type":"object","properties":{"id":[{"type":"string","description":"Unique identifier for the repayment record."}],"repaymentAmount":[{"type":"number","description":"The amount that was repaid."}],"customerName":[{"type":"string","description":"Name of the customer who made the repayment."}],"email":[{"type":"string","description":"Email address of the customer."}],"loanProductName":[{"type":"string","description":"Name of the loan product."}],"repaymentReference":[{"type":"string","description":"Payment reference number for the repayment."}],"verificationStatus":[{"type":"string","description":"Status of the repayment verification. Options: `PENDING_VERIFICATION` , `VERIFIED` , `REJECTED` ."}],"message":[{"type":"string","description":"Message confirming the repayment submission."}]},"description":"Repayment confirmation details."}],"message":[{"type":"string","description":"Error message describing what went wrong."}]}}],"examples":{"example":{"value":{"status":"\u003cstring>","data":{"id":"\u003cstring>","repaymentAmount":123,"customerName":"\u003cstring>","email":"\u003cstring>","loanProductName":"\u003cstring>","repaymentReference":"\u003cstring>","verificationStatus":"\u003cstring>","message":"\u003cstring>"},"message":"\u003cstring>"}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"fincode","siteName":"FinCode Platform","title":"Repay Loan - FinCode Platform","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-23T14:17:46.140Z","originalFileLocation":"api/lending/repay-loan.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=\"light\"}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=\"Allows customers to make a partial repayment for their loan.\">\u003cmeta data-mint-head name=\"application-name\" content=\"FinCode Platform\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/fincode/F2sLn9W_rtCfFlNs/_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/fincode/F2sLn9W_rtCfFlNs/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/fincode/F2sLn9W_rtCfFlNs/_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/fincode/F2sLn9W_rtCfFlNs/_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/fincode/F2sLn9W_rtCfFlNs/_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/fincode/F2sLn9W_rtCfFlNs/_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/fincode/F2sLn9W_rtCfFlNs/_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/fincode/F2sLn9W_rtCfFlNs/_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/fincode/F2sLn9W_rtCfFlNs/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Repay Loan - FinCode Platform\">\u003cmeta data-mint-head property=\"og:description\" content=\"Allows customers to make a partial repayment for their loan.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"FinCode Platform\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.fincode.technology/api/lending/repay-loan\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://fincode.mintlify.site/_mintlify/api/og/v2?division=API+Endpoints\u0026amp;title=Repay+Loan\u0026amp;description=Allows+customers+to+make+a+partial+repayment+for+their+loan.\u0026amp;theme=5cb295c43f2caf87cf931732\u0026amp;signature=adc42aa47bec9e838511f66bee3aafc4748cf1680545c78a7148571b8898187c\">\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=\"Repay Loan - FinCode Platform\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Allows customers to make a partial repayment for their loan.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://fincode.mintlify.site/_mintlify/api/og/v2?division=API+Endpoints\u0026amp;title=Repay+Loan\u0026amp;description=Allows+customers+to+make+a+partial+repayment+for+their+loan.\u0026amp;theme=5cb295c43f2caf87cf931732\u0026amp;signature=adc42aa47bec9e838511f66bee3aafc4748cf1680545c78a7148571b8898187c\">\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/fincode/F2sLn9W_rtCfFlNs/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"FinCode Platform\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#734CDC\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.fincode.technology/api/lending/repay-loan\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/lending/repay-loan.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.fincode.technology/#organization\",\"name\":\"FinCode Platform\",\"url\":\"https://docs.fincode.technology\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/fincode/8bMKpNvzhWMZ8TuP/logo/logo.png?fit=max\u0026auto=format\u0026n=8bMKpNvzhWMZ8TuP\u0026q=85\u0026s=db1240518f55835a324cde1e8377682d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.fincode.technology#website\",\"name\":\"FinCode Platform\",\"url\":\"https://docs.fincode.technology\",\"publisher\":{\"@id\":\"https://docs.fincode.technology/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.fincode.technology/api/lending/repay-loan#webpage\",\"url\":\"https://docs.fincode.technology/api/lending/repay-loan\",\"name\":\"Repay Loan\",\"description\":\"Allows customers to make a partial repayment for their loan.\",\"dateModified\":\"2026-07-23T14:17:46.140Z\",\"isPartOf\":{\"@id\":\"https://docs.fincode.technology#website\"},\"breadcrumb\":{\"@id\":\"https://docs.fincode.technology/api/lending/repay-loan#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.fincode.technology/api/lending/repay-loan#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Endpoints\",\"item\":\"https://docs.fincode.technology/api/lending/get-application\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Repay Loan\",\"item\":\"https://docs.fincode.technology/api/lending/repay-loan\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.fincode.technology/api/lending/repay-loan#apireference\",\"headline\":\"Repay Loan\",\"name\":\"Repay Loan\",\"description\":\"Allows customers to make a partial repayment for their loan.\",\"url\":\"https://docs.fincode.technology/api/lending/repay-loan\",\"mainEntityOfPage\":{\"@id\":\"https://docs.fincode.technology/api/lending/repay-loan#webpage\"},\"dateModified\":\"2026-07-23T14:17:46.140Z\",\"publisher\":{\"@id\":\"https://docs.fincode.technology/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.fincode.technology#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"FinCode Platform\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"FinCode Platform\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api/lending/repay-loan.md","siteName":"FinCode Platform","nav":{"global":null,"tabs":[{"tab":"Home","pages":[{"title":"Home","href":""}]},{"tab":"Remittance","pages":[{"title":"Remittance","href":"/remittance/overview"}]},{"tab":"Lending","groups":[{"group":"Getting Started","pages":[{"title":"Overview","icon":"atom","href":"/lending/overview"},{"title":"Process Flow","icon":"diagram-project","href":"/lending/process-flow"}]},{"group":"Core Flows","pages":[{"title":"Loan Lifecycle","icon":"arrows-spin","href":"/lending/loan-lifecycle"},{"title":"Underwriting","icon":"file-signature","href":"/lending/underwriting"},{"title":"Disbursement \u0026 Withdrawal","icon":"money-bill-transfer","href":"/lending/disbursement"},{"title":"Repayment Flow","icon":"money-bill-transfer","href":"/lending/repayment-flow"}]},{"group":"API Endpoints","pages":[{"title":"Get Application","openapi":"GET /admin/loan-application/{loan-application-id}","href":"/api/lending/get-application"},{"title":"List Loan Products","openapi":"GET /user/list-products","href":"/api/lending/list-products"},{"title":"Eligibility Questions","openapi":"GET /user/loan-eligibility-questions/{productId}","href":"/api/lending/loan-eligibility-questions"},{"title":"Loan History","openapi":"GET /user/get-loan-history/{customerId}","href":"/api/lending/get-loan-history"},{"title":"Customers Total Loan","openapi":"GET /user/get-total/{customerId}","href":"/api/lending/get-total-loan"},{"title":"Get Loan Offer","openapi":"GET /user/get-loan-offer","href":"/api/lending/get-loan-offer"},{"title":"Available Banks","openapi":"GET /user/get-available-banks/","href":"/api/lending/get-available-banks"},{"title":"Verify Bank Account","openapi":"GET /user/verify-bank-account/{bankCode}/{accountNumber}","href":"/api/lending/verify-bank-account"},{"title":"List Bank Accounts","openapi":"GET /user/list-customer-bank-accounts/{customerId}","href":"/api/lending/list-customer-bank-accounts"},{"title":"Transfer History","openapi":"GET /user/transfer-history/{customerId}","href":"/api/lending/transfer-history"},{"title":"Manage Loans","openapi":"GET /user/manage-loans/{customerId}","href":"/api/lending/manage-loans"},{"title":"List Repayments","openapi":"GET /admin/repayments/list","href":"/api/lending/list-repayments"},{"title":"Transfer Status","api":"GET https://{your-domain}.fincode.software/api/v1/services/user/check-transfer-status/{transactionReference}","href":"/api/lending/transfer-status"},{"title":"Get Loan Terms","api":"GET https://{your-domain}.fincode.software/api/v1/services/user/get-loan-terms/{organisationId}","href":"/api/lending/get-loan-terms"},{"title":"Pending Repayments","api":"GET https://{your-domain}.fincode.software/api/v1/services/user/pending-repayments/{user-id}","href":"/api/lending/pending-repayments"},{"title":"Repaid Transactions","api":"GET https://{your-domain}.fincode.software/api/v1/services/user/repaid-transactions/{user-id}","href":"/api/lending/repaid-transactions"},{"title":"Repayment Instructions","api":"GET https://{your-domain}.fincode.software/api/v1/services/user/repayment-instructions/{loan-application-id}","href":"/api/lending/repayment-instructions"},{"title":"Loan Details with Payment History","api":"GET https://{your-domain}.fincode.software/api/v1/services/user/loan-details-with-payment-history/{loan-application-id}","href":"/api/lending/loan-details-with-payment-history"},{"title":"View Bank Account","api":"GET https://{your-domain}.fincode.software/api/v1/services/user/view-bank-account/{account-id}","href":"/api/lending/view-bank-account"},{"title":"Loan Application Details","api":"GET https://{your-domain}.fincode.software/api/v1/services/user/loan-application-details/{loan-application-id}","href":"/api/lending/loan-application-details"},{"title":"List Customer Repayments","api":"GET https://{your-domain}.fincode.software/api/v1/services/user/list-customer-repayments/{customer-id}","href":"/api/lending/list-customer-repayments"},{"title":"Update Loan Offer","api":"PUT https://{your-domain}.fincode.software/api/v1/services/user/update-application/{loan-application-id}","href":"/api/lending/update-application"},{"title":"Accept Loan Offer","openapi":"PUT /user/accept-loan-offer/{loanApplicationId}/accept","href":"/api/lending/accept-loan-offer"},{"title":"Reject Loan Offer","openapi":"PUT /user/accept-loan-offer/{loanApplicationId}/reject","href":"/api/lending/reject-loan-offer"},{"title":"Accept Loan Terms","openapi":"PUT /user/accept-terms-and-conditions/{loanApplicationId}","href":"/api/lending/accept-loan-terms"},{"title":"Transfer Funds to Bank","api":"POST https://{your-domain}.fincode.software/api/v1/services/user/transfer-funds-to-bank","href":"/api/lending/transfer-funds"},{"title":"Payoff Loan","api":"POST https://{your-domain}.fincode.software/api/v1/services/user/payoff-loan","description":"Allows customers to pay off their entire loan balance in a single transaction.","href":"/api/lending/payoff-loan"},{"title":"Repay Loan","api":"POST https://{your-domain}.fincode.software/api/v1/services/user/repay-loan/{user-id}","href":"/api/lending/repay-loan"},{"title":"Calculate APR","api":"POST https://{your-domain}.fincode.software/api/v1/services/user/calculate-apr","description":"Calculates the Annual Percentage Rate (APR) for a loan application based on the loan amount, interest rate, and fees.","href":"/api/lending/calculate-apr"},{"title":"Add Bank Account","api":"POST https://{your-domain}.fincode.software/api/v1/services/user/create-bank-account","href":"/api/lending/add-bank-account"},{"title":"Request Loan","openapi":"POST /user/request-loan","href":"/api/lending/loan-request"}]}]},{"tab":"Savings \u0026 Investment","pages":[{"title":"Savings \u0026 Investment","href":"/investment/overview"}]},{"tab":"Customer Identity \u0026 Access Management","pages":[{"title":"Customer Identity \u0026 Access Management","href":"/ciam/overview"}]},{"tab":"Payment Switch","pages":[{"title":"Payment Switch","href":"/songhai-exchange/overview"}]},{"tab":"Ledger Engine","pages":[{"title":"Ledger Engine","href":"/ledger/overview"}]},{"tab":"Deposit Engine","pages":[{"title":"Deposit Engine","href":"/deposit-engine/overview"}]},{"tab":"API Reference","groups":[{"group":"Introduction","pages":[{"title":"API Reference","icon":"code","href":"/api/authentication"}]},{"group":"Authentication","pages":[{"title":"Login","openapi":"PUT /securitymanagement/login","href":"/api/auth/login"},{"title":"Logout","openapi":"PUT /securitymanagement/logout","href":"/api/auth/logout"},{"title":"Refresh Token","openapi":"PUT /securitymanagement/refresh-token","href":"/api/auth/refresh-token"}]},{"group":"Security \u0026 Utilities","pages":[{"title":"List Countries","openapi":"GET /utilitiesmanagement/list-all-countries","href":"/api/security/list-countries"},{"title":"Active Countries","openapi":"GET /utilitiesmanagement/active-countries","href":"/api/security/active-countries"},{"title":"Password Policy","openapi":"GET /admin/security/view-password-policy","href":"/api/security/password-policy"},{"title":"Fetch Preference","openapi":"GET /admin/organisation-preference-management/fetch-organisaction-preference","href":"/api/security/fetch-preference"}]},{"group":"Remittance","pages":[{"title":"Wallet Account List","openapi":"GET /walletmanagement/walletaccountlist","href":"/api/transactions/wallet-account"},{"title":"Find All Beneficiary","openapi":"GET /usermanagement/find-all-beneficiery","href":"/api/transactions/beneficiary-list"},{"title":"Transaction Types","openapi":"GET /transactionmanagement/transaction-types","href":"/api/transactions/transaction-types"},{"title":"Beneficiary Details","openapi":"GET /usermanagement/view-beneficiery-details/{beneficiaryId}","href":"/api/transactions/beneficiary-details"},{"title":"Delivery Currencies","openapi":"GET /quote/supported-delivery-currencies/{sendingCountryCode}/{receivingCountryCode}/{deliveryMethod}/{sendingCurrencyCode}","href":"/api/transactions/delivery-currencies"},{"title":"Destination Countries","openapi":"GET /quote/destination-country-by-delivery-method/{sendingCountryCode}/{deliveryMethod}","href":"/api/transactions/destination-countries"},{"title":"Supported Currencies","openapi":"GET /quote/supported-currencies/{sendingCountryCode}/{receivingCountryCode}/{deliveryMethod}","href":"/api/transactions/supported-currencies"},{"title":"Validate Recipient Account","openapi":"GET /usermanagement/validate-bank-account","href":"/api/transactions/validate-account"},{"title":"List Supported Banks","openapi":"GET /bankmanagement/list-supported-banks-iso3/{country}","href":"/api/transactions/list-supported-banks"},{"title":"Required Bank Fields","openapi":"GET /bankmanagement/required-bank-fields/{country}","href":"/api/transactions/required-bank-fields"},{"title":"List Mobile Operators","openapi":"GET /admin/bank/config/find-all-mobile-operator/{country}","href":"/api/transactions/list-mobile-operators"},{"title":"Add Bank Details","openapi":"POST /bankmanagement/add-bank-details-key-value-pairs","href":"/api/transactions/add-bank-details"},{"title":"Get Transaction Quote","openapi":"POST /quote/callQuote","href":"/api/transactions/call-quote"},{"title":"Payment Methods","api":"POST /paymentmanagement/supported-payment-methods","href":"/api/transactions/payment-methods"},{"title":"Create Beneficiary","openapi":"POST /usermanagement/new-beneficiary","href":"/api/transactions/create-beneficiary"},{"title":"Customer Transaction History","openapi":"POST /transactionmanagement/history-data","href":"/api/transactions/history-data"},{"title":"Check Transaction Status","openapi":"GET /transactionmanagement/checktransactionstatus/{transaction_identification_number}","href":"/api/transactions/check-transaction-status"},{"title":"Fetch Transaction Details","openapi":"GET /transactionmanagement/fetch-payable-type/{pcn}/{payable_type}","href":"/api/transactions/fetch-transaction-details"},{"title":"Create Transaction","openapi":"POST /transactionmanagement/create-transaction","href":"/api/transactions/create-transaction"},{"title":"Create Transaction (Direct)","openapi":"POST /transactionmanagement/create-transaction","href":"/api/transactions/create-transaction-direct"}]},{"group":"Lending","pages":[{"title":"Get Application","openapi":"GET /admin/loan-application/{loan-application-id}","href":"/api/lending/get-application"},{"title":"List Loan Products","openapi":"GET /user/list-products","href":"/api/lending/list-products"},{"title":"Eligibility Questions","openapi":"GET /user/loan-eligibility-questions/{productId}","href":"/api/lending/loan-eligibility-questions"},{"title":"Loan History","openapi":"GET /user/get-loan-history/{customerId}","href":"/api/lending/get-loan-history"},{"title":"Customers Total Loan","openapi":"GET /user/get-total/{customerId}","href":"/api/lending/get-total-loan"},{"title":"Get Loan Offer","openapi":"GET /user/get-loan-offer","href":"/api/lending/get-loan-offer"},{"title":"Available Banks","openapi":"GET /user/get-available-banks/","href":"/api/lending/get-available-banks"},{"title":"Verify Bank Account","openapi":"GET /user/verify-bank-account/{bankCode}/{accountNumber}","href":"/api/lending/verify-bank-account"},{"title":"List Bank Accounts","openapi":"GET /user/list-customer-bank-accounts/{customerId}","href":"/api/lending/list-customer-bank-accounts"},{"title":"Transfer History","openapi":"GET /user/transfer-history/{customerId}","href":"/api/lending/transfer-history"},{"title":"Manage Loans","openapi":"GET /user/manage-loans/{customerId}","href":"/api/lending/manage-loans"},{"title":"List Repayments","openapi":"GET /admin/repayments/list","href":"/api/lending/list-repayments"},{"title":"Transfer Status","api":"GET https://{your-domain}.fincode.software/api/v1/services/user/check-transfer-status/{transactionReference}","href":"/api/lending/transfer-status"},{"title":"Get Loan Terms","api":"GET https://{your-domain}.fincode.software/api/v1/services/user/get-loan-terms/{organisationId}","href":"/api/lending/get-loan-terms"},{"title":"Pending Repayments","api":"GET https://{your-domain}.fincode.software/api/v1/services/user/pending-repayments/{user-id}","href":"/api/lending/pending-repayments"},{"title":"Repaid Transactions","api":"GET https://{your-domain}.fincode.software/api/v1/services/user/repaid-transactions/{user-id}","href":"/api/lending/repaid-transactions"},{"title":"Repayment Instructions","api":"GET https://{your-domain}.fincode.software/api/v1/services/user/repayment-instructions/{loan-application-id}","href":"/api/lending/repayment-instructions"},{"title":"Loan Details with Payment History","api":"GET https://{your-domain}.fincode.software/api/v1/services/user/loan-details-with-payment-history/{loan-application-id}","href":"/api/lending/loan-details-with-payment-history"},{"title":"View Bank Account","api":"GET https://{your-domain}.fincode.software/api/v1/services/user/view-bank-account/{account-id}","href":"/api/lending/view-bank-account"},{"title":"Loan Application Details","api":"GET https://{your-domain}.fincode.software/api/v1/services/user/loan-application-details/{loan-application-id}","href":"/api/lending/loan-application-details"},{"title":"List Customer Repayments","api":"GET https://{your-domain}.fincode.software/api/v1/services/user/list-customer-repayments/{customer-id}","href":"/api/lending/list-customer-repayments"},{"title":"Update Loan Offer","api":"PUT https://{your-domain}.fincode.software/api/v1/services/user/update-application/{loan-application-id}","href":"/api/lending/update-application"},{"title":"Accept Loan Offer","openapi":"PUT /user/accept-loan-offer/{loanApplicationId}/accept","href":"/api/lending/accept-loan-offer"},{"title":"Reject Loan Offer","openapi":"PUT /user/accept-loan-offer/{loanApplicationId}/reject","href":"/api/lending/reject-loan-offer"},{"title":"Accept Loan Terms","openapi":"PUT /user/accept-terms-and-conditions/{loanApplicationId}","href":"/api/lending/accept-loan-terms"},{"title":"Transfer Funds to Bank","api":"POST https://{your-domain}.fincode.software/api/v1/services/user/transfer-funds-to-bank","href":"/api/lending/transfer-funds"},{"title":"Payoff Loan","api":"POST https://{your-domain}.fincode.software/api/v1/services/user/payoff-loan","description":"Allows customers to pay off their entire loan balance in a single transaction.","href":"/api/lending/payoff-loan"},{"title":"Repay Loan","api":"POST https://{your-domain}.fincode.software/api/v1/services/user/repay-loan/{user-id}","href":"/api/lending/repay-loan"},{"title":"Calculate APR","api":"POST https://{your-domain}.fincode.software/api/v1/services/user/calculate-apr","description":"Calculates the Annual Percentage Rate (APR) for a loan application based on the loan amount, interest rate, and fees.","href":"/api/lending/calculate-apr"},{"title":"Add Bank Account","api":"POST https://{your-domain}.fincode.software/api/v1/services/user/create-bank-account","href":"/api/lending/add-bank-account"},{"title":"Request Loan","openapi":"POST /user/request-loan","href":"/api/lending/loan-request"}]},{"group":"Ledger Engine","pages":[{"title":"Account Balance","openapi":"GET /ledger/account-balance/{account_id}","href":"/api/ledger/account-balance"},{"title":"Ledger History","openapi":"GET /ledger/account-ledger-history/{account_id}/{page}/{size}","href":"/api/ledger/ledger-history"},{"title":"Ledger History by ID","openapi":"GET /ledger/account-ledger-history-interaction-id","href":"/api/ledger/ledger-history-interaction-id"},{"title":"Ledger History by Idempotency Key","openapi":"GET /ledger/account-ledger-history-idempotencykey","href":"/api/ledger/ledger-history-idempotency-key"},{"title":"List Accounts","openapi":"GET /account-maintenance/list-accounts/{account-owner-id}","href":"/api/ledger/list-accounts"},{"title":"Change Account Permission","openapi":"GET /account-maintenance/change-account-permission/{id}/{permission}","href":"/api/ledger/change-account-permission"},{"title":"Post to Account","openapi":"POST /gateway/post-account","href":"/api/ledger/post-account"}]},{"group":"Savings \u0026 Investment","pages":[{"title":"Get Total Investments","openapi":"GET /get-total/{user-id}","href":"/api/investment/get-total-investments"},{"title":"List Customer Portfolios","openapi":"GET /portfolios/{customer-id}","href":"/api/investment/list-portfolios"},{"title":"Get Investment Quote","openapi":"GET /quote/get-quote/{product-id}/{number-of-units-to-purchase}","href":"/api/investment/get-quote"},{"title":"Fund Wallet","openapi":"PUT /wallet/fund-wallet/{wallet-id}/{amount}","href":"/api/investment/fund-wallet"},{"title":"Create Investment Application","openapi":"POST /apply","href":"/api/investment/create-investment-application"}]},{"group":"Deposit Engine","pages":[{"title":"List Awaiting Payments","openapi":"GET /paymentmanagement/awaiting-payments","href":"/api/deposit-engine/awaiting-payments"},{"title":"Bank Pay Later (Wallet)","openapi":"PUT /paymentmanagement/bank-iwillpaylater-wallet/{pcn}/{payableType_String}","href":"/api/deposit-engine/bank-iwillpaylater"},{"title":"Awaiting Payment Actions","openapi":"POST /paymentmanagement/awaiting-payment-actions","href":"/api/deposit-engine/awaiting-payment-actions"},{"title":"Payment Methods Charges","openapi":"POST /paymentmanagement/payment-methods-charges","href":"/api/deposit-engine/payment-methods-charges"},{"title":"Notify Bank Transfer Payment","openapi":"POST /paymentmanagement/notify-bank-transfer-payment","href":"/api/deposit-engine/notify-bank-transfer-payment"},{"title":"Supported Payment Methods","openapi":"POST /paymentmanagement/supported-payment-methods","href":"/api/deposit-engine/supported-payment-methods"},{"title":"Make Payment from Wallet","openapi":"POST /paymentmanagement/makepaymentfromwalletaccount","href":"/api/deposit-engine/make-payment-from-wallet"},{"title":"Fund Customer Wallet by Payment Token","openapi":"POST /paymentmanagement/processpaymentwithpaymenttoken","href":"/api/deposit-engine/process-payment-with-token"},{"title":"Process Card Payment","openapi":"POST /paymentmanagement/process-card-payment","href":"/api/deposit-engine/process-card-payment"}]},{"group":"Customer Identity \u0026 Access Management","pages":[{"title":"Customer Profile","openapi":"GET /usermanagement/profile","href":"/api/ciam/profile"},{"title":"Get Customer By ID","openapi":"GET /admin/customer-management/profile/{id}","href":"/api/ciam/customer-by-id"},{"title":"Deactivate User Account","openapi":"GET /usermanagement/deactivate-user-account/{id}","href":"/api/ciam/deactivate-user"},{"title":"Activate User Account","openapi":"GET /usermanagement/activate-user-account/{id}","href":"/api/ciam/activate-user"},{"title":"Find Customer By Name or Phone","openapi":"GET /usermanagement/find-customer-by-name-or-phone-no/{search-criteria}","href":"/api/ciam/find-customer-by-name-or-phone-no"},{"title":"Generate and send otp toemail","href":"/api/ciam/generate-and-send-otp-toemail"},{"title":"List Employees","openapi":"GET /admin/employee-management/list-employees","href":"/api/ciam/list-employees"},{"title":"Start/Continue Verification","openapi":"GET /admin/compliance/continue-enrolment","href":"/api/ciam/continue-enrolment"},{"title":"Get Dynamic Fields","openapi":"GET /dynamicfields/dynamic-fields-group/{processGroupCode}","href":"/api/ciam/dynamic-fields"},{"title":"Get Pay Centre By ID","openapi":"GET /admin/pay-centre-management/pay-centre-by/{id}","href":"/api/ciam/pay-centre-by-id"},{"title":"List Connectors","openapi":"GET /admin/connector-management/list-connectors","href":"/api/ciam/list-connectors"},{"title":"Reset Password","openapi":"GET /securitymanagement/reset-password/{email}","href":"/api/ciam/reset-password"},{"title":"KYC Detail By ID","openapi":"GET /admin/compliance/kyc-detail/{id}","href":"/api/ciam/kyc-detail-by-id"},{"title":"Dynamic Fields Group","openapi":"GET /dynamicfields/dynamic-fields-group/{groupName}","href":"/api/ciam/dynamic-fields-group"},{"title":"View Password Policy","openapi":"GET /admin/security/view-password-policy","href":"/api/ciam/view-password-policy"},{"title":"Fetch Organisation Preference","openapi":"GET /admin/organisation-preference-management/fetch-organisaction-preference","href":"/api/ciam/fetch-organisaction-preference"},{"title":"List Customers","openapi":"GET /admin/customer-management/list-customers","href":"/api/ciam/list-customers"},{"title":"Verify Customer","openapi":"GET /admin/customer-management/verify-customer/{id}","href":"/api/ciam/verify-customer"},{"title":"KYC Requirements by Country","openapi":"GET /compliance/kyc-requirements-by-isocountry/{countryIso}/{triggerPoint}","href":"/api/ciam/kyc-requirements-by-isocountry"},{"title":"Awaiting Compliance Requirements","openapi":"GET /compliance/awaiting-compliance-requirements","href":"/api/ciam/awaiting-compliance-requirements"},{"title":"Pre-Transaction Compliance Checklist","openapi":"PUT /compliance/customer-compliance-checklist","href":"/api/ciam/compliance-checklist"},{"title":"Organisation Compliance Policy","openapi":"GET /compliance/list-organisation-compliance-policy","href":"/api/ciam/list-organisation-compliance-policy"},{"title":"List Pay Centers by Type","openapi":"GET /branches/list-paycenters-by-type/{type}","href":"/api/ciam/list-paycenters-by-type"},{"title":"List Attached Dynamic Forms","openapi":"GET /admin/compliance/list-attached-form","href":"/api/ciam/cra-forms"},{"title":"List AML Rules","openapi":"GET /admin/compliance/list-aml-rules","href":"/api/ciam/list-aml-rules"},{"title":"Change Password","openapi":"PUT /securitymanagement/change-password","href":"/api/ciam/change-password"},{"title":"Edit Customer Profile","openapi":"PUT /usermanagement/profile-edit","href":"/api/ciam/edit-profile"},{"title":"Update Connector Instance","openapi":"PUT /admin/connector-management/update-connector-instance","href":"/api/ciam/update-connector-instance"},{"title":"Delete Customer Bank Details","openapi":"DELETE /bankmanagement/delete-customer-bank-details/{account-owner-id}/{bank-detail-id}","href":"/api/ciam/delete-customer-bank-details"},{"title":"Awaiting Payments","openapi":"PUT /admin/payment-management/awaiting-payments","href":"/api/ciam/awaiting-payments"},{"title":"Upload Profile Picture","openapi":"PUT /documentmanagement/upload-profile-picture","href":"/api/ciam/upload-profile-picture"},{"title":"Edit Employee","openapi":"PUT /admin/employee-management/edit-employee/{id}","href":"/api/ciam/edit-employee"},{"title":"Update Organisation Preference","openapi":"PUT /admin/organisation-preference-management/update-organisaction-preference","href":"/api/ciam/update-organisaction-preference"},{"title":"Deactivate AML Rule","openapi":"PUT /admin/compliance/deactivate-aml-rule/{id}","href":"/api/ciam/deactivate-aml-rule"},{"title":"Activate AML Rule","openapi":"PUT /admin/compliance/activate-aml-rule/{id}","href":"/api/ciam/activate-aml-rule"},{"title":"Update AML Rules","openapi":"PUT /admin/compliance/update-aml-rules","href":"/api/ciam/update-aml-rules"},{"title":"Edit KYC Rule","openapi":"PUT /admin/compliance/edit-kyc-rule","href":"/api/ciam/edit-kyc-rule"},{"title":"Create Transaction PIN","openapi":"POST /usermanagement/create-transaction-pin","href":"/api/ciam/create-transaction-pin"},{"title":"Create Customer","openapi":"POST /usermanagement/register-customer","href":"/api/ciam/create-customer"},{"title":"Verify Login OTP","openapi":"POST /securitymanagement/verify-login-otp","href":"/api/ciam/verify-login-otp"},{"title":"Submit CRA Form","openapi":"POST /admin/compliance/submit-cra","href":"/api/ciam/submit-cra"},{"title":"Create User PIN","openapi":"POST /securitymanagement/create-user-pin","href":"/api/ciam/create-user-pin"},{"title":"List Pay Points","openapi":"POST /branches/listpaypoints","href":"/api/ciam/listpaypoints"},{"title":"List Payout Points","openapi":"POST /branches/listpayoutpoints","href":"/api/ciam/listpayoutpoints"},{"title":"Add Default Charge","openapi":"POST /admin/fee-management/add-default-charge","href":"/api/ciam/add-default-charge"},{"title":"Create Connector Instance","openapi":"POST /admin/connector-management/create-connector-instance","href":"/api/ciam/create-connector-instance"},{"title":"Product Payment Details","openapi":"POST /admin/account-product/payment-details","href":"/api/ciam/product-payment-details"},{"title":"List Payment Collectors by Address","openapi":"POST /branches/listpaymentcollectorsbyaddress","href":"/api/ciam/listpaymentcollectorsbyaddress"},{"title":"List Allocated Payout Points","openapi":"POST /branches/listallocatedpayoutpoints","href":"/api/ciam/listallocatedpayoutpoints"},{"title":"Payout Center Branches","openapi":"POST /branches/payoutCenter","href":"/api/ciam/payoutCenter-branches"},{"title":"Documents Required For Transaction","openapi":"POST /complaince/documents-required-for-transaction","href":"/api/ciam/documents-required-for-transaction"},{"title":"Submit KYC Documents","openapi":"POST /documentmanagement/attach-documents","href":"/api/ciam/attach-documents"},{"title":"Initiate Compliance Action","openapi":"GET /compliance/initiate-awaiting-compliance-action/{customer-kyc-record-id}","href":"/api/ciam/initiate-compliance-action"},{"title":"Initiate External KYC Provider","openapi":"POST /compliance/external-provider/initiate","href":"/api/ciam/initiate-external-provider"},{"title":"External Screening Webhook","openapi":"POST /compliance/external-screening/webhooks/{provider-code}","href":"/api/ciam/external-screening-webhook"},{"title":"Verify Contact","openapi":"POST /compliance/external-provider/verify-contact","href":"/api/ciam/verify-contact"},{"title":"OTP Verification","openapi":"GET /securitymanagement/otp-verification/{email}/{verification-code}","href":"/api/ciam/otp-verification"},{"title":"Add KYC Rule","openapi":"POST /admin/compliance/add-kyc-rule","href":"/api/ciam/add-kyc-rule"},{"title":"Delete API Connector Instance","openapi":"DELETE /admin/connector-management/delete-api-connector-instance/{id}","href":"/api/ciam/delete-api-connector-instance"}]},{"group":"Songhai Exchange (Payment Switch)","pages":[{"title":"Change Password","openapi":"PUT /v1/services/usermanagement/change-password/{id}","href":"/api/songhai-exchange/change-password"},{"title":"Generate Token","openapi":"POST /oauth/token","href":"/api/songhai-exchange/generate-token"},{"title":"Exchange Rate","openapi":"POST /gateway/quote","href":"/api/songhai-exchange/exchange-rate"},{"title":"Create Transaction","openapi":"POST /gateway/transaction/banktransfers","href":"/api/songhai-exchange/create-transaction"},{"title":"Check Transaction Status","openapi":"POST /gateway/transaction/checkstatus","href":"/api/songhai-exchange/transaction-status"},{"title":"Client End-of-Day Report","openapi":"POST /gateway/list-end-Of-day-position-report","href":"/api/songhai-exchange/end-of-day-report"},{"title":"Generating Wallet Account Statement","openapi":"POST /v1/services/walletmanagement/walletledgerbyclient/{startDate}/{endDate}/{currency}/","href":"/api/songhai-exchange/wallet-account-statement"},{"title":"Bank Account Validation","openapi":"POST /gateway/v2/account-number-validation","href":"/api/songhai-exchange/bank-account-validation"},{"title":"Mobile Money Creation","openapi":"POST /gateway/v3/transaction/mobilemoney","href":"/api/songhai-exchange/mobile-money-creation"},{"title":"Mobile Money Validation","openapi":"POST /gateway/account-number-validation","href":"/api/songhai-exchange/mobile-money-validation"},{"title":"Domiciliary Account (Account Number)","openapi":"POST /gateway/create-domiciliary-bank-account","href":"/api/songhai-exchange/domiciliary-account-with-account-number"},{"title":"Domiciliary Account (BVN)","openapi":"POST /gateway/create-domiciliary-bank-account-with-bvn","href":"/api/songhai-exchange/domiciliary-account-with-bvn"}]},{"group":"Webhooks \u0026 Events","pages":[{"title":"Webhooks","href":"/api/webhooks"},{"title":"Webhook Security","href":"/api/webhook-security"}]},{"group":"Testing \u0026 Tools","pages":[{"title":"Postman collection","href":"/api/postman-collection"}]}]}]},"basePath":"","title":"Repay Loan - FinCode Platform","buildId":"dpl_9RFrWkXdFTJCytfx6jAofvAaEXr6","deploymentId":"dpl_9RFrWkXdFTJCytfx6jAofvAaEXr6","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-BgGj2PGS.js","utils-BhNOqRKb.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BAgRNUZo.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CGkb0TPw.js","snippetPresets-ChLkL1a6.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-Ef10Jrbx.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-DlVCnjU8.js","shallow-BA55zJxQ.js","getApiPlaygroundDisplay-DR09dKtp.js","CodeSnippet-BZ8J8Kll.js","CodeSnippets-CcguVheG.js","Page-C7x-eUfk.js","getPastedJson-D5UqeqBp.js","icon-DpD0l99C.js","MethodPill-Wg2NXsp_.js","DuplicateIcon-CCSyX8lh.js","createIcon-C4Ukv9HX.js","DynamicMarkdown-RhjEuCHC.js","SectionHeading-DL1MykRq.js","axios-vUo_bRtp.js"]}