GetCustomerLoanDetailsQuery
Overview
Retrieves comprehensive details for a specific loan application including all supporting documents, approval status, and processing information.
Status: 📝 Documentation in progress
Command Structure
{
"cmd": "GetCustomerLoanDetailsQuery",
"data": "{\"userId\":\"129\",\"loanQuoteId\":\"110\"}"
}
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
userId | long | Yes | Customer ID |
loanQuoteId | long | Yes | Loan application ID |
Response Fields
Returns complete loan quote information including:
- Loan amount, requested amount, approved amount, repayment amount
- Branch metadata:
branchId,branchName,branchCode,organisationCode,organisationName - Schedule metadata:
LoanRepaymentScheduleswith installment number, due date, principal, interest, total due, and outstanding balance - Approval state and current approval level
- Disbursement status
- All attached documents (identity, address, guarantors, credit reports, statements)
- Approval history and comments
CanCustomerCancel, indicating whether the authenticated customer may cancel the draftOfficerDetailsfor an admin-assisted application, including the officer's name, contact information, branch, and roles
Response Example
{
"isSuccessful": true,
"statusCode": "00",
"message": "Loan details retrieved successfully",
"data": {
"loanQuote": {
"id": 110,
"loanAmount": 500000,
"requestedAmount": 500000,
"approvedAmount": 500000,
"approvedLoanAmount": 500000,
"branchId": 23,
"branchCode": "LAG-001",
"branchName": "Ikeja Branch",
"organisationCode": "ORG-001",
"organisationName": "Main Organisation",
"loanTenor": 12,
"interestRate": 15,
"repaymentAmount": 45620.5,
"loanRepaymentSchedules": [
{
"installmentNumber": 1,
"dueDate": "2026-10-05T00:00:00",
"principalAmount": 37500,
"interestAmount": 8120.5,
"totalDue": 45620.5,
"outstandingBalance": 462500,
"status": 0,
"statusDescription": "Pending"
}
]
}
}
}
Notes
requestedAmountis the customer-requested principal.approvedAmountandapprovedLoanAmountboth resolve toLoanAmountRecommendedwhen present; otherwise they fall back toRequestedAmount.LoanRepaymentSchedulesis the canonical installment list used by scripts and document rendering.- Branch and organisation metadata are populated from the branch hierarchy: branch → area → division → organisation.
Related Commands
- CreateSelfServiceLoanQuoteCommand - Create new loan application
- CancelSelfServiceLoanQuoteCommand - Cancel a customer-owned draft before approval starts
- GetCustomerLoanGuarantorsQuery - Get guarantors only
- GetCustomerLoanCreditBureauSearchesQuery - Get credit reports only