Returns collection of loan applications in JSON format.
/api/sacco_loan/applications?companyId={companyId}
PROPERTY | DESCRIPTION |
---|---|
Method | GET |
Response formats | JSON |
Requires authentication? | Yes |
PARAM | TYPE | REQUIRED/OPTIONAL | DESCRIPTION |
---|---|---|---|
companyId |
number | required | specify sacco company |
accountId |
number | optional | saving account id |
memberId |
number | optional | membership Id |
productId |
number | optional | saving product id |
start |
number | optional | Specify beginning of paging |
limit |
number | optional | Specify end of paging |
Response
{ "count": 19, "list": [ { "id": 37962099, "loanNumber": "L000098", "product": "NORMAL LOAN", "productId": 36886798, "dateOfApplication": 1588280400000, "payFrom": 1588280400000, "amountAppliedFor": 20000.00, "loanAmount": 20000.00, "interestRate": 12.00, "numberOfInstallments": 5.00, "repaymentFreq": "MONTHLY", "loanType": "REDUCING_INTEREST_EMI", "installmentAmount": 4120.80, "interestPaid": 603.98, "principalPaid": 20000.02, "loanBalance": -0.02, "totalLoanFee": 0.00, "status": "APPROVED", "gracePeriodMonths": 1, "payOffDate": 1598907600000, "memberNo": "M00007", "member": "ALYSA HARTFORD ", "ledgerId": 37962299, "interestPayment": 603.98, "disbursed": "NO", "disbursedAmt": 0.00, "existing": "YES", "takeOnJnlId": 37962598, "principalBal": -0.02, "interestBal": 0, "amountPaid": 20604.00, "submittedForAppraisal": "YES", "loanAmountOk": "YES", "sharesAtLoanOk": "YES", "savingAtLoanOk": "YES", "loanGuarantorsOk": "YES", "loanCollateralOk": "YES", "loanFeesOk": "YES", "loanFilesOk": "YES" }, { "id": 37962100, "loanNumber": "L000099", "product": "SUPER LOAN", "productId": 36886799, "dateOfApplication": 1596315600000, "payFrom": 1596315600000, "amountAppliedFor": 50000.00, "loanAmount": 50000.00, "interestRate": 12.00, "numberOfInstallments": 10.00, "repaymentFreq": "MONTHLY", "loanType": "REDUCING_INTEREST_EMI", "installmentAmount": 5279.10, "interestPaid": 0.00, "principalPaid": 0.00, "loanBalance": 51711.34, "totalLoanFee": 0.00, "status": "APPROVED", "gracePeriodMonths": 1, "payOffDate": 1619902800000, "memberNo": "M00008", "member": "MARILEE BRANDT ", "ledgerId": 37962300, "interestPayment": 2791.05, "disbursed": "NO", "disbursedAmt": 0.00, "existing": "YES", "takeOnJnlId": 37962601, "principalBal": 50000.00, "interestBal": 0, "amountPaid": 0.00 "submittedForAppraisal": "YES", "loanAmountOk": "YES", "sharesAtLoanOk": "YES", "savingAtLoanOk": "YES", "loanGuarantorsOk": "YES", "loanCollateralOk": "YES", "loanFeesOk": "YES", "loanFilesOk": "YES" } ] }
Returns collection loan repayment schedule in JSON format.
/api/sacco_loan/repaymentschedule?loanId={loanId}
PROPERTY | DESCRIPTION |
---|---|
Method | GET |
Response formats | JSON |
Requires authentication? | Yes |
PARAM | TYPE | REQUIRED/OPTIONAL | DESCRIPTION |
---|---|---|---|
loanId |
number | required | specify sacco company |
Response
{ "count": 3, "list": [ { "installmentNo": 1, "interestPayment": 12000.00, "principalPayment": 74548.54, "interestPmtReduction": 0.00, "principalPmtReduction": 0.00, "totalPayment": 86548.54, "cumulativeInterest": 12000.00, "principalApplied": 1200000.00, "principalAppReduction": 0.00, "repMonth": null, "repYear": 0, "repSeqnce": 1, "dueDate": 1588280400000, "dueDateFrom": null, "dueDateTo": null, "periodDate": null, "loan": null, "loanId": 37962105, "loanNumber": "L000104", "loanProduct": "NORMAL LOAN", "loanRepayments": [], "repaidPrincipal": 74548.54, "repaidInterest": null, "prepayment": null, "repaidAmount": 86548.54, "scheduleBal": 0.00, "membershipId": null, "membershipName": "SHANA REIFSTECK ", "loanLedgerId": 37962305, "interestAcId": 36767983, "interestIncome": null, "interestIncomeId": null, "interestPosted": "YES", "interestRate": 12.00, "creditReductionApplied": "NO", "withBalance": null, "withPrepayment": null, "currentMonth": null, "companyId": 36765664, "installmentFrom": 0, "exception": null, "batchId": null, "id": 37962263 }, { "installmentNo": 2, "interestPayment": 11254.51, "principalPayment": 75294.02, "interestPmtReduction": 0.00, "principalPmtReduction": 0.00, "totalPayment": 86548.54, "cumulativeInterest": 23254.51, "principalApplied": 1125451.46, "principalAppReduction": 0.00, "repMonth": null, "repYear": 0, "repSeqnce": 2, "dueDate": 1590958800000, "dueDateFrom": null, "dueDateTo": null, "periodDate": null, "loan": null, "loanId": 37962105, "loanNumber": "L000104", "loanProduct": "NORMAL LOAN", "loanRepayments": [], "repaidPrincipal": 75294.03, "repaidInterest": null, "prepayment": null, "repaidAmount": 86548.54, "scheduleBal": 0.00, "membershipId": null, "membershipName": "SHANA REIFSTECK ", "loanLedgerId": 37962305, "interestAcId": 36767983, "interestIncome": null, "interestIncomeId": null, "interestPosted": "YES", "interestRate": 12.00, "creditReductionApplied": "NO", "withBalance": null, "withPrepayment": null, "currentMonth": null, "companyId": 36765664, "installmentFrom": 0, "exception": null, "batchId": null, "id": 37962264 }, { "installmentNo": 3, "interestPayment": 10501.57, "principalPayment": 76046.96, "interestPmtReduction": 0.00, "principalPmtReduction": 0.00, "totalPayment": 86548.54, "cumulativeInterest": 33756.08, "principalApplied": 1050157.44, "principalAppReduction": 0.00, "repMonth": null, "repYear": 0, "repSeqnce": 3, "dueDate": 1593550800000, "dueDateFrom": null, "dueDateTo": null, "periodDate": null, "loan": null, "loanId": 37962105, "loanNumber": "L000104", "loanProduct": "NORMAL LOAN", "loanRepayments": [], "repaidPrincipal": 76046.97, "repaidInterest": null, "prepayment": null, "repaidAmount": 86548.54, "scheduleBal": 0.00, "membershipId": null, "membershipName": "SHANA REIFSTECK ", "loanLedgerId": 37962305, "interestAcId": 36767983, "interestIncome": null, "interestIncomeId": null, "interestPosted": "YES", "interestRate": 12.00, "creditReductionApplied": "NO", "withBalance": null, "withPrepayment": null, "currentMonth": null, "companyId": 36765664, "installmentFrom": 0, "exception": null, "batchId": null, "id": 37962265 } ] }
Returns loan ledger transactions in JSON format. ledgerId and companyId must be provided as path parameter.
/api/sacco_loan/ledger?ledgerId={ledgerId}&companyId={companyId}
PROPERTY | DESCRIPTION |
---|---|
Method | GET |
Response formats | JSON |
Requires authentication? | Yes |
Always specify companyId
param
PARAM | TYPE | REQUIRED/OPTIONAL | DESCRIPTION |
---|---|---|---|
ledgerId |
number | required | The ID for loan account ledger |
companyId |
number | required | The ID for company |
HTTP Status Code | Reason |
---|---|
200 |
Found Record |
404 |
Record not found |
405 |
Invalid input |
500 |
Internal server error |
Response
{ "count": 16, "list": [ { "txnDate": 1577826000000, "descr": "Opening Balance", "debit": 0, "credit": 0, "balance": 0, "accountName": "REIFSTECK SHANA", "txnType": "BAL", "refNo": "-", "txnNo": "-" }, { "id": 37962616, "txnDate": 1588280400000, "descr": "Loan balance l000104, Normal loan, Shana reifsteck ", "debit": 1200000.00, "credit": 0.00, "balance": 1200000.00, "accountName": "REIFSTECK SHANA", "accountId": 37962305, "accountCode": "LN#L000104", "journalId": 37962616, "txnId": 37962616, "posted": "YES", "txnType": "JNL", "user": " " }, { "id": 37962664, "txnDate": 1588280400000, "descr": "Interest for loan #l000104, Normal loan, Shana reifsteck ", "debit": 12000.00, "credit": 0.00, "balance": 1212000.00, "accountName": "REIFSTECK SHANA", "accountId": 37962305, "accountCode": "LN#L000104", "journalId": 37962664, "txnId": 37962664, "posted": "YES", "txnType": "JNL", "user": " " }, { "id": 37973195, "txnDate": 1588885200000, "descr": "Loan #l000104 - due on: 01/05/2020, Reifsteck shana", "debit": 0.00, "credit": 86548.54, "balance": 1125451.46, "accountName": "REIFSTECK SHANA", "accountId": 37962305, "accountCode": "LN#L000104", "journalId": 37973195, "txnId": 37973503, "posted": "YES", "txnType": "RCPT", "refNo": "wertyvcsfrev3", "txnNo": "RC00023", "user": "JOHN SNOW" }, { "id": 37962712, "txnDate": 1590958800000, "descr": "Interest for loan #l000104, Normal loan, Shana reifsteck ", "debit": 11254.51, "credit": 0.00, "balance": 1136705.97, "accountName": "REIFSTECK SHANA", "accountId": 37962305, "accountCode": "LN#L000104", "journalId": 37962712, "txnId": 37962712, "posted": "YES", "txnType": "JNL", "user": " " } ] }
Returns loan disbursement in JSON format. membershipId and companyId must be provided as path parameter.
/api/sacco_loan/disbursement?membershipId={membershipId}&companyId={companyId}
PROPERTY | DESCRIPTION |
---|---|
Method | GET |
Response formats | JSON |
Requires authentication? | Yes |
Always specify companyId
param
PARAM | TYPE | REQUIRED/OPTIONAL | DESCRIPTION |
---|---|---|---|
membershipId |
number | required | The ID for member |
companyId |
number | required | The ID for company |
loanId |
number | optional | The ID for loan |
HTTP Status Code | Reason |
---|---|
200 |
Found Record |
404 |
Record not found |
405 |
Invalid input |
500 |
Internal server error |
Response
{ "count": 2, "list": [ { "member": "WES LUMLEY ", "membershipId": 36768779, "amount": 950000.00, "loanId": 37962113, "loanName": "MWANGAZA LOANS", "loanNo": "L000112", "loanAmount": 950000.00, "loanType": "REDUCING_INTEREST_EMI", "status": "APPROVED", "dateOfApplication": 1583701200000, "disbursementDate": 1605387600000, "paymentMethod": "CHECK", "comments": "", "paymentId": 38996370, "paidAccountNo": null, "paidAccountName": null, "paidBank": null, "refNo": "3444444", "bankId": null, "branchId": null, "cashbookId": 37962315, "interestIncomeId": null, "companyId": 36765664, "id": 38996570 }, { "member": "NICKI REESER ", "membershipId": 36768766, "amount": 100000.00, "loanId": 38987804, "loanName": "TEST PRODUCT", "loanNo": "23330000004", "loanAmount": 400000.00, "loanType": "REDUCING_INTEREST", "status": "APPROVED", "dateOfApplication": 1605214800000, "disbursementDate": 1605214800000, "paymentMethod": "CHECK", "comments": "ok", "paymentId": 38986767, "paidAccountNo": null, "paidAccountName": null, "paidBank": null, "refNo": "232323", "bankId": null, "branchId": null, "cashbookId": 37962315, "interestIncomeId": null, "companyId": 36765664, "id": 38988104 } ] }
Returns loan guarantors in JSON format. membershipId and companyId must be provided as path parameter.
/api/sacco_loan/guarantors?membershipId={membershipId}&companyId={companyId}
PROPERTY | DESCRIPTION |
---|---|
Method | GET |
Response formats | JSON |
Requires authentication? | Yes |
Always specify companyId
param
PARAM | TYPE | REQUIRED/OPTIONAL | DESCRIPTION |
---|---|---|---|
membershipId |
number | optional | The ID for guarantor member |
loanMembershipId |
number | optional | The ID for member being guaranteed |
companyId |
number | required | The ID for company |
loanId |
number | optional | The ID for loan |
HTTP Status Code | Reason |
---|---|
200 |
Found Record |
404 |
Record not found |
405 |
Invalid input |
500 |
Internal server error |
Response
{ "count": 4, "list": [ { "memberName": "ABRIL JEANE ", "memberNo": "M00045", "loanNo": "L0030000003", "loanBalance": 0.00, "loanMembershipId": 36768769, "loanMemberName": "JERROD WILHOIT ", "loanMemberNo": "M00006", "shareAt": 25000.00, "savingAt": 0.00, "loanBalAt": 0.00, "shareSavingAt": 25000.00, "percentageGuaranteed": null, "companyId": 36765664, "id": 37995668 }, { "memberName": "JOANNE PRETTY ", "memberNo": "M00002", "loanNo": "L0030000001", "loanBalance": 0.00, "loanMembershipId": 36768782, "loanMemberName": "SAUL BURNER ", "loanMemberNo": "M00019", "shareAt": 25000.00, "savingAt": 166000.00, "loanBalAt": 0.00, "shareSavingAt": 191000.00, "percentageGuaranteed": null, "companyId": 36765664, "id": 37995665 }, { "memberName": "KASSIE JEFFERY ", "memberNo": "M00027", "loanNo": "L0030000003", "loanBalance": 0.00, "loanMembershipId": 36768769, "loanMemberName": "JERROD WILHOIT ", "loanMemberNo": "M00006", "shareAt": 25000.00, "savingAt": 10000.00, "loanBalAt": 0.00, "shareSavingAt": 35000.00, "percentageGuaranteed": null, "companyId": 36765664, "id": 37995667 }, { "memberName": "ROSSIE KAGAN ", "memberNo": "M00044", "loanNo": "L0030000003", "loanBalance": 0.00, "loanMembershipId": 36768769, "loanMemberName": "JERROD WILHOIT ", "loanMemberNo": "M00006", "shareAt": 25000.00, "savingAt": 6000.00, "loanBalAt": 0.00, "shareSavingAt": 31000.00, "percentageGuaranteed": null, "companyId": 36765664, "id": 37995666 } ] }
Returns loan defaults in JSON format. membershipId and loanProductId must be provided as path parameter.
/api/sacco_loan/loandefaults?membershipId={membershipId}&loanProductId={loanProductId}
PROPERTY | DESCRIPTION |
---|---|
Method | GET |
Response formats | JSON |
Requires authentication? | Yes |
Always specify companyId
param
PARAM | TYPE | REQUIRED/OPTIONAL | DESCRIPTION |
---|---|---|---|
membershipId |
number | optional | The ID for member applying for loan |
loanProductId |
number | optional | The ID for loan product being applied for |
HTTP Status Code | Reason |
---|---|
200 |
Found Record |
404 |
Record not found |
405 |
Invalid input |
500 |
Internal server error |
Response
{ "membershipId": 40422, "loanProductId": 25855, "amountAppliedFor": 1053591.540, "numberOfInstallments": 24, "interestRate": 12.00, "loanType": "REDUCING_INTEREST", "interestFrequency": "ANNUALLY", "repaymentFreq": "MONTHLY", "gracePeriodMonths": 0, "assignableShareAtLoan": 0, "assignableSavingAtLoan": 351197.18, "assignableShareAndSavingAtLoan": 351197.18, "maxAllowedLoanAt": 1053591.540, "requiredGuarantors": 0, "mandatoryGuarantee": 100.0, "mandatoryGuaranteeVal": 1053591.5400, "minOwnGuarantee": 34.0, "minOwnGuaranteeVal": 358221.12360, "minGuarantorsGuarantee": 66.0, "minGuarantorsGuaranteeVal": 695370.41640, "totalInterest": 131698.94, "totalLoanPayment": 1185290.49, "loanMonthlyPayment": 43899.64, "dueDate": 0, "projection": { "totalInterest": 131698.94, "totalPrincipal": 1053591.55, "totalPayment": 1185290.49, "monthlyPayment": 43899.64, "numberOfInstallments": 24, "schedules": [ { "installmentNo": 1, "initInstallmentNo": 0, "interestPayment": 10535.91, "principalPayment": 43899.64, "totalPayment": 54435.56, "cumulativeInterest": 10535.91, "principalApplied": 1053591.54, "repYear": 0, "repSeqnce": 1, "installmentFrom": 0, "todayScheduleMarker": 0 }, { "installmentNo": 2, "initInstallmentNo": 0, "interestPayment": 10096.91, "principalPayment": 43899.64, "totalPayment": 53996.56, "cumulativeInterest": 20632.83, "principalApplied": 1009691.89, "repYear": 0, "repSeqnce": 2, "installmentFrom": 0, "todayScheduleMarker": 0 } ] } }
Save loan application.
/api/sacco_loan/save
PROPERTY | DESCRIPTION |
---|---|
Method | POST |
Request representations | application/json |
Requires authentication? | Yes |
{ "membershipId": number [required] membership ID, "loanProductId": number [required] loan product/type ID, "amountAppliedFor": number [required] amount applied for, "numberOfInstallments": number [required] number of repayment installments, "assignableShareAtLoan": number [optional] Assignable Shares amount, "assignableSavingAtLoan": number [optional] Assignable Savings amount, "assignableShareAndSavingAtLoan": number [optional] Assignable Shares + Saving Amount }
HTTP Status Code | Reason |
---|---|
200 |
Successfully saved |
405 |
Invalid input |
500 |
Internal server error |
Payload
{ "membershipId": 132323, "loanProductId": 2323, "amountAppliedFor": 50000, "numberOfInstallments": 12, "assignableShareAtLoan": 0, "assignableSavingAtLoan": 20000, "assignableShareAndSavingAtLoan": 20000 }
Response
{ "success": "true", "message": "successful" }
Loads loan projection - calculation and schedules.
/api/sacco_loan/projection
PROPERTY | DESCRIPTION |
---|---|
Method | POST |
Request representations | application/json |
Requires authentication? | Yes |
{ "loanAmount": number [required] amount applied for, "feeAsPrincipal": number [optional] fees charged as principal, "interestRate": number [required] interest rate to be applied, "numberOfInstallments": number [required] number of repayment installments, "installmentAmount": number [required] installment amount, "interestType": enum [required] ['FLAT_INTEREST','FLAT_INTEREST_EMI','FLAT_INTEREST_ON_PRINCIPAL_AMOUNT','REDUCING_INTEREST','REDUCING_INTEREST_EMI'], "interestFrequency": enum [required] ['DAILY','WEEKLY','MONTHLY','ANNUALLY'], "repaymentFrequency": enum [required] ['DAILY','WEEKLY','MONTHLY','ANNUALLY'] }
HTTP Status Code | Reason |
---|---|
200 |
Successfully saved |
405 |
Invalid input |
500 |
Internal server error |
Payload
{ "loanAmount": 10000, "feeAsPrincipal": 0, "interestRate": 10, "numberOfInstallments" : 10, "installmentAmount" : 0, "interestType" : "REDUCING_INTEREST", "interestFrequency" : "MONTHLY", "repaymentFrequency" : "ANNUALLY" }
Response
{ "totalInterest": 5500, "totalPrincipal": 10000, "totalPayment": 15500, "monthlyPayment": 1000, "numberOfInstallments": 10, "schedules": [ { "installmentNo": 1, "initInstallmentNo": 0, "interestPayment": 1000, "principalPayment": 1000, "totalPayment": 2000, "cumulativeInterest": 1000, "principalApplied": 10000, "repYear": 0, "repSeqnce": 1, "installmentFrom": 0, "todayScheduleMarker": 0 }, { "installmentNo": 2, "initInstallmentNo": 0, "interestPayment": 900, "principalPayment": 1000, "totalPayment": 1900, "cumulativeInterest": 1900, "principalApplied": 9000, "repYear": 0, "repSeqnce": 2, "installmentFrom": 0, "todayScheduleMarker": 0 } ] }
Save Guarantor nomination.
/api/sacco_loan/saveguarantor
PROPERTY | DESCRIPTION |
---|---|
Method | POST |
Request representations | application/json |
Requires authentication? | Yes |
{ "membershipId": number [required] membership ID, "loanId": number [required] loan ID, }
HTTP Status Code | Reason |
---|---|
200 |
Successfully saved |
405 |
Invalid input |
500 |
Internal server error |
Payload
{ "membershipId": 132323, "loanId": 2323 }
Response
{ "success": "true", "message": "successful" }
Upload loan file
/api/sacco_loan/file_upload
PROPERTY | DESCRIPTION |
---|---|
Method | POST |
Request representations | application/json |
Requires authentication? | Yes |
{ "loanId": number [required] Loan ID, "fileName": text [required] Name of file, "fileBaseSixFour": text base64 encoded [required] file, }
HTTP Status Code | Reason |
---|---|
200 |
Successfully saved |
405 |
Invalid input |
500 |
Internal server error |
Payload
{ "loanId": 0000, "fileName": "2323", "fileBaseSixFour": "iVBORw0KGgoAAAANSUhEUgAAAPsAAABSCAYAAACSYaKAAAAABHNCSVQICAgIfAhkiAAAABl0RVh0U29mdHdhcmUAZ25vbWUtc2NyZWVuc2hvdO8Dvz4AABNYSURBVHic7V17kFTVmf91z7One6bnCQTXTWQgjyoWfNSaFQRUItlEkywx6pYuYoFliC5ERVSIOJPlZcA14m6Bm0WsBV3FVRKziYm4koiBRLPKQ62UGRh3yw0w70d3T8+ru/ePnunpnr7n3PO+t3vmVzUFfc853/fd0+d3v+9859zTnv9ZeFkCAODxwAoewnVS/ZFCrsu28ohlNIF0mcT7YhTNUMGmjyTqqpKZSKjXySOTqa5NHbtimg5b/YRyUZnEIn55xPui6C8EoHigCcgSIrq4TFcRXbbvZdrT2oo+CEZlsrT3eBjqeUAlg12xx0MmBpN+znZCMm1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T9ltvSCQQ62xP/U6bp5T8u295ASFOS4TGJggvYYOQR5xozwDT26d1K+j+l39CvK8PBeUVyQu8e6R1d4iR8FDwHljIpqN/WOQK6zWwNdepMePi8/EAA2SPdXag64kfoPCCCwGPOnVEz6EpBGKCau+erMAiRM2AYpVjU8e9Xp1vzOTbSoLWBN0oIocPoaC2DsX1MzF4+o8mVOqF0IoFcamAvLrAqy99cLLaxzugpYiuIX8xCWZYk13R8ls6el98Dt7ycqUyWRFrb6dX4M3KU2VB6ARoZYRPr68aOjw6IObV82BbsxJwrIR4/veqv7SurfNndrlliyxfEVvw6aARjFu3baH9ufhOvdAhTXRaMlJAJzfZFYbwKubsqqahHGTXPme3RC4lOJTPPyXvRVdSTqs+AaJTxblxPLhw7I6DM2R3I1Qe4GDfkCIywRYO6yY9o3x7ezWtRKhqM4GQv2RXmZV3ILvMPP9VTXoOedLZamNenTdkzk94yUtYubFWqXR5RLU3kQznue5tlKS85Bdsx2abYN847NX5OeEuDpHsF1h6I6SbSVloDZl9eQikzEXvg6rK3g7bLD25IX8bZtEaiU5XLNJIUJlGOLRHJC/CeP4NNlRhZtqMNWYQzziP1wx2OyRsNdX/Iln4HIdLyW4iLFIdsst4MvY5shODkU+vTT3R8N1pr84bwrsQgmTn9KROboBwy9IOE+HdRXp+kksQXRRu3ZrLO+Y1h/DACNkdS9IphNjgN+jdmdXxJclUE19MJstSoa1isTJhhVZqcme8cyesEwkze+PFQEoECiTKBPJxVD2iZcy28BtsuT3Spp/UDG4HiW7Kq+dBCA8A/w88SawjYN5OvgAAAABJRU5ErkJggg==" }
Response
{ "success": "true", "message": "successful" }
Returns loan files in JSON format. loanId must be provided as path parameter.
/api/sacco_loan/files?loanId={loanId}
PROPERTY | DESCRIPTION |
---|---|
Method | GET |
Response formats | JSON |
Requires authentication? | Yes |
Always specify loanId
param
PARAM | TYPE | REQUIRED/OPTIONAL | DESCRIPTION |
---|---|---|---|
loanId |
number | optional | The ID of the loan |
HTTP Status Code | Reason |
---|---|
200 |
Found Record |
404 |
Record not found |
405 |
Invalid input |
500 |
Internal server error |
Response
{ "count": 0, "list": [ { "docName": "FVsF1682848332186", "notes": "File 1", "docType": "PDF", "numOfPages": 0, "rootFilePath": "/home/majoris/Servers/wildfly-13.0.0.Final/appfiles//uploads/fms/sacco/loan/", "rootFileName": "FVsF1682848332186", "viewPath": "/appfiles/uploads/fms/sacco/loan/FVsF1682848332186.pdf", "resize": false, "resizeWidth": 0, "resizeHeight": 0, "saccoLoanId": 9758213, "id": 13467381 }, { "docName": "NaEa1682849029037", "notes": "File 2", "docType": "PDF", "numOfPages": 0, "rootFilePath": "/home/majoris/Servers/wildfly-13.0.0.Final/appfiles//uploads/fms/sacco/loan/", "rootFileName": "NaEa1682849029037", "viewPath": "/appfiles/uploads/fms/sacco/loan/NaEa1682849029037.pdf", "resize": false, "resizeWidth": 0, "resizeHeight": 0, "saccoLoanId": 9758213, "id": 13467382 } ] }