GetLoanQuoteActivityQuery
Overview​
Returns a comment-free chronological activity log for a loan application — every stage transition, action taken, and timestamp. Intended for timeline and audit-trail UI components where user comments should not be shown.
For the full record including actor comments, use GetLoanApprovalHistoryQuery.
Command Structure​
{
"cmd": "GetLoanQuoteActivityQuery",
"data": "{\"loanRequestId\":110}"
}
Parameters​
| Parameter | Type | Required | Description |
|---|---|---|---|
loanRequestId | long | Yes | ID of the loan application |
Response​
{
"ok": true,
"statusCode": "00",
"message": "4 activity record(s) found.",
"outData": {
"Activity": [
{
"Id": 1,
"LoanRequestId": 110,
"ApproverId": 12,
"ApprovalLevel": 0,
"ApprovalLevelDescription": "Relationship Manager",
"Stage": "Initiate Approval",
"Action": "Started",
"ActionDescription": "The approval process for the loan has been initiated",
"ActionDate": "2026-06-01T09:00:00Z"
},
{
"Id": 2,
"LoanRequestId": 110,
"ApproverId": 8,
"ApprovalLevel": 1,
"ApprovalLevelDescription": "Branch Manager",
"Stage": "Branch Manager Approval",
"Action": "Fully Approved",
"ActionDescription": "[Process] State changed from 'Pending Approval' to 'Fully Approved' (Task: Branch Manager Approval)",
"ActionDate": "2026-06-02T11:30:00Z"
},
{
"Id": 3,
"LoanRequestId": 110,
"ApproverId": 5,
"ApprovalLevel": 0,
"ApprovalLevelDescription": "Relationship Manager",
"Stage": "Send Offer Letter",
"Action": "Sent",
"ActionDescription": "An offer letter has been sent to the customer",
"ActionDate": "2026-06-04T09:15:00Z"
},
{
"Id": 4,
"LoanRequestId": 110,
"ApproverId": 5,
"ApprovalLevel": 0,
"ApprovalLevelDescription": "Relationship Manager",
"Stage": "Disbursement",
"Action": "Disbursed",
"ActionDescription": "Loan has been disbursed to the customer",
"ActionDate": "2026-06-05T14:00:00Z"
}
]
}
}
Response Fields​
| Field | Description |
|---|---|
Id | Unique record ID |
LoanRequestId | Loan application ID |
ApproverId | Internal user ID of the actor |
ApprovalLevel | Numeric approval level |
ApprovalLevelDescription | Human-readable level name |
Stage | The task or stage at which this action occurred (e.g. Branch Manager Approval, Send Offer Letter) |
Action | The outcome at this stage (e.g. Approved, Rejected, Returned, Sent, Disbursed, Started) |
ActionDescription | System-generated description of the state change |
ActionDate | UTC timestamp |
Commentis intentionally excluded. Use GetLoanApprovalHistoryQuery to retrieve comments.
Common Action Values​
Action | Meaning |
|---|---|
Started | Approval process initiated |
Approved | Approved at the current level |
Fully Approved | Approved at all required levels |
Rejected | Permanently rejected |
Returned | Returned for correction |
Pending | Awaiting action at this stage |
Sent | Offer letter sent to customer |
Completed | Setup step completed (disbursement details, collection details) |
Disbursed | Loan funds released to customer |
No Change | Action recorded but no state transition was needed |
Permissions​
Requires one of: ViewLoanActivities, ViewLoanRequests, or DisburseLoan.
Related Commands​
- GetLoanApprovalHistoryQuery — full record including comments
- InitiateApproveLoanRequestCommand
- ApproveLoanRequestCommand
- RejectLoanRequestCommand