m2pfintech

Preview pre-closure of a loan

Calculates and returns a preview of all amounts required to pre-close a loan, including principal outstanding, accrued interest, fees, taxes, and total payable amount.

POST
/loan/preClose/preview

Header Parameters

TENANT*string

Tenant identifier for the request.

Request Body

application/json

loanId*string

The loan identifier to preview pre-closure for.

entityId*string

The entity (customer) identifier.

date?string

Effective date for pre-closure calculation.

Formatdate

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://uat-m2p-ccms.m2pfintech.com/loan/preClose/preview" \  -H "TENANT: string" \  -H "Content-Type: application/json" \  -d '{    "loanId": "string",    "entityId": "string"  }'
{
  "loanId": "string",
  "totalPayableAmount": 0,
  "principal": 0,
  "interest": 0,
  "interestTax": 0,
  "processingFee": 0,
  "processingFeeTax": 0,
  "preClosureFee": 0,
  "preClosureFeeTax": 0,
  "totalFee": 0,
  "totalTax": 0,
  "pendingEmiCount": 0,
  "loanAmount": 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"
}