GetLoanDeductionsQuery
Overview​
Retrieves all deductions configured for a specific loan application. Deductions are per-loan additions (insurance, legal fees, processing extras, etc.) separate from the product-level disbursement fee.
Command Structure​
{
"cmd": "GetLoanDeductionsQuery",
"data": "{\"loanRequestId\":110}"
}
Parameters​
| Parameter | Type | Required | Description |
|---|---|---|---|
loanRequestId | long | Yes | ID of the loan application |
Response​
{
"ok": true,
"statusCode": "00",
"message": "Loan deductions retrieved successfully.",
"outData": [
{
"Id": 7,
"LoanRequestId": 110,
"Name": "Credit Life Insurance",
"Code": "CLI",
"Deduction": 1.0,
"DeductionCalculationDesc": "Percentage of Loan Amount",
"DeductionCalculation": 1,
"CreatedBy": "finance.officer",
"CreatedAt": "2026-06-10T10:00:00Z"
}
]
}
Response Fields​
| Field | Description |
|---|---|
Id | Deduction record ID |
LoanRequestId | Linked loan application ID |
Name | Deduction label |
Code | Unique code within the loan |
Deduction | Amount or percentage value |
DeductionCalculationDesc | Human-readable calculation type |
DeductionCalculation | Enum value (0=Flat, 1=% Loan, 2=% Disbursed) |
CreatedBy | Username who added the deduction |
CreatedAt | UTC timestamp |
Deduction Calculation Types​
| Value | Description |
|---|---|
0 | Flat amount — deducted as-is |
1 | Percentage of loan amount |
2 | Percentage of disbursed amount |