m2pfintech

Preview loan cancellation amounts

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.

POST
/loan/cancel/preview

Header Parameters

TENANT*string

Tenant identifier for the request.

Request Body

application/json

loanId*string

The loan identifier to preview cancellation for.

entityId*string

The entity (customer) identifier.

interest?string

Action to take on an amount component during loan cancellation.

Value in"WAIVE" | "COLLECT"
charges?string

Action to take on an amount component during loan cancellation.

Value in"WAIVE" | "COLLECT"
date?string

Effective date for cancellation calculation.

Formatdate
transactionId?string

Optional transaction ID reference.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://uat-m2p-ccms.m2pfintech.com/loan/cancel/preview" \  -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"
}