RejectLoanRequestCommand
Overview​
Rejects a loan application at the current approval level. The loan is moved to Rejected status and cannot proceed further. A rejection comment is mandatory.
Authorization​
Caller must hold a role with rejection authority: Branch Manager, Area Manager, Division Manager, Credit Admin, Head Credit Admin, Control Officer, Finance, MD, or GMD.
Command Structure​
{
"cmd": "RejectLoanRequestCommand",
"data": "{\"loanRequestId\":110,\"comment\":\"Insufficient income to service the requested amount\"}"
}
Parameters​
| Parameter | Type | Required | Description |
|---|---|---|---|
loanRequestId | long | Yes | ID of the loan application |
comment | string | Yes | Mandatory rejection reason |
Validations​
- Loan must be in
PendingApproval,PartialApproval, orReturnedstate - Caller must have a role with rejection authority and appropriate branch access
Process​
- Validates loan state and user role
- Checks for an active workflow
UserTask— signals it withoutcome=rejectedif found - Sets
ApprovalStatus→"Rejected"and records in approval history - Persists changes
Response​
{
"ok": true,
"statusCode": "00",
"message": "Loan request rejected successfully.",
"outData": {
"LoanRequestId": 110,
"comment": "Insufficient income to service the requested amount"
}
}