Skip to main content

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​

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

FieldDescription
IdDeduction record ID
LoanRequestIdLinked loan application ID
NameDeduction label
CodeUnique code within the loan
DeductionAmount or percentage value
DeductionCalculationDescHuman-readable calculation type
DeductionCalculationEnum value (0=Flat, 1=% Loan, 2=% Disbursed)
CreatedByUsername who added the deduction
CreatedAtUTC timestamp

Deduction Calculation Types​

ValueDescription
0Flat amount — deducted as-is
1Percentage of loan amount
2Percentage of disbursed amount