m2pfintech

Pre-close all active loans for an entity

Initiates pre-closure of all active loans for a given entity. Supports optional configuration to waive or charge pre-closure fees. Returns a list of successfully and unsuccessfully pre-closed loan IDs.

POST
/statement/loan/preCloseAll

Header Parameters

TENANT*string

Tenant identifier for multi-tenancy support

Request Body

application/json

entityId*string

Unique entity identifier of the customer

date?string

Effective date for pre-closure (ISO date format)

Formatdate
loanPreClosureChargesActions?string

Action for pre-closure charges (default: CHARGE)

Value in"WAIVE" | "CHARGE"

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://uat-m2p-ccms.m2pfintech.com/statement/loan/preCloseAll" \  -H "TENANT: string" \  -H "Content-Type: application/json" \  -d '{    "entityId": "string"  }'
{
  "successLoanIds": [
    "string"
  ],
  "failedLoanIds": [
    "string"
  ]
}
{
  "code": "string",
  "message": "string",
  "details": "string"
}
{
  "code": "string",
  "message": "string",
  "details": "string"
}
{
  "code": "string",
  "message": "string",
  "details": "string"
}