Cancel a loan
Executes the cancellation of a loan. Reverses loan disbursement, collects or waives outstanding interest and charges based on the specified actions. An external transaction ID can optionally be provided.
Header Parameters
Tenant identifier for the request.
Request Body
application/json
The loan identifier to cancel.
The entity (customer) identifier.
Action to take on an amount component during loan cancellation.
"WAIVE" | "COLLECT"Action to take on an amount component during loan cancellation.
"WAIVE" | "COLLECT"Effective date for cancellation.
dateOptional reference transaction ID.
External transaction identifier for the cancellation.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://uat-m2p-ccms.m2pfintech.com/loan/cancel" \ -H "TENANT: string" \ -H "Content-Type: application/json" \ -d '{ "loanId": "string", "entityId": "string" }'{
"loanId": "string",
"principal": 0,
"interest": 0,
"interestTax": 0,
"fee": 0,
"feeTax": 0,
"totalPayableAmount": 0
}{
"code": "string",
"message": "string",
"details": "string",
"timestamp": "2019-08-24T14:15:22Z"
}{
"code": "string",
"message": "string",
"details": "string",
"timestamp": "2019-08-24T14:15:22Z"
}{
"code": "string",
"message": "string",
"details": "string",
"timestamp": "2019-08-24T14:15:22Z"
}Fetch due amount via BBPS POST
Fetches outstanding due amount for a customer identified by their contact number and card number, intended for BBPS (Bharat Bill Payment System) integrations. Returns customer name alongside the standard due response.
Preview loan cancellation amounts POST
Calculates and returns a preview of the amounts payable or waiveable for cancelling a loan. Indicates breakdown of principal, interest, taxes, and fees based on chosen actions for interest and charges.
