Skip to main content

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​

ParameterTypeRequiredDescription
loanRequestIdlongYesID 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​

FieldDescription
IdUnique record ID
LoanRequestIdLoan application ID
ApproverIdInternal user ID of the actor
ApprovalLevelNumeric approval level
ApprovalLevelDescriptionHuman-readable level name
StageThe task or stage at which this action occurred (e.g. Branch Manager Approval, Send Offer Letter)
ActionThe outcome at this stage (e.g. Approved, Rejected, Returned, Sent, Disbursed, Started)
ActionDescriptionSystem-generated description of the state change
ActionDateUTC timestamp

Comment is intentionally excluded. Use GetLoanApprovalHistoryQuery to retrieve comments.

Common Action Values​

ActionMeaning
StartedApproval process initiated
ApprovedApproved at the current level
Fully ApprovedApproved at all required levels
RejectedPermanently rejected
ReturnedReturned for correction
PendingAwaiting action at this stage
SentOffer letter sent to customer
CompletedSetup step completed (disbursement details, collection details)
DisbursedLoan funds released to customer
No ChangeAction recorded but no state transition was needed

Permissions​

Requires one of: ViewLoanActivities, ViewLoanRequests, or DisburseLoan.