Skip to main content

RemoveLoanDeductionCommand

Overview​

Removes a deduction from a loan application by its code. Returns details of the deleted deduction.

Command Structure​

{
"cmd": "RemoveLoanDeductionCommand",
"data": "{\"loanRequestId\":110,\"code\":\"CLI\"}"
}

Parameters​

ParameterTypeRequiredDescription
loanRequestIdlongYesID of the loan application
codestringYesCode of the deduction to remove

Validations​

  • Deduction with the given code must exist on the loan — returns an error if not found

Response​

{
"ok": true,
"statusCode": "00",
"message": "Deduction removed successfully.",
"outData": {
"Id": 7,
"Name": "Credit Life Insurance",
"Code": "CLI",
"DisbursementFee": 1.0,
"DisbursementFeeCalculation": 1,
"CreatedBy": "finance.officer",
"CreatedAt": "2026-06-10T10:00:00Z"
}
}