m2pfintech

Preview outstanding balance before account closure (v2)

Validates and returns a preview of the outstanding balance and charges that would apply if the account were to be closed. Version 2 includes additional validation checks before returning the closure preview.

POST
/statement/accountClosure/previewOutStanding/v2

Header Parameters

TENANT*string

Tenant identifier for multi-tenancy support

Request Body

application/json

entityId*string

Unique entity identifier of the customer

closure?boolean

Whether to proceed with closure (default: false)

closureReason?string

Reason for account closure

includeClosureFee?boolean

Whether to include closure fee in the outstanding calculation

inducer?string

Entity inducing the closure

Value in"USER_INDUCED" | "NO_TRANSACTIONS" | "NO_ACTIVATION" | "DPD" | "USER_INDUCED_WITH_REPAYMENT" | "PARTNER_INDUCED" | "USER_INDUCED_UNSECURED" | "PARTNER_INDUCED_SETTLEMENT"
currentStep?string

Current step in the closure workflow

Value in"CLOSED" | "FD_DILUTION" | "OS_VALIDATION" | "FREEZE_ACCOUNT" | "ACCOUNT_CLOSURE" | "FD_MATURITY_CREDIT" | "NO_ACTION_REQUIRED" | "REPAYMENT_CREDIT" | "PRE_CLOSE_LOAN" | "UNLIEN_FD" | "POST_UN_POSTED_TRANSACTION"
kitNo?string

Kit number; if provided for secondary kit, closes that specific kit

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://uat-m2p-ccms.m2pfintech.com/statement/accountClosure/previewOutStanding/v2" \  -H "TENANT: string" \  -H "Content-Type: application/json" \  -d '{    "entityId": "string"  }'
{
  "result": {},
  "exception": {},
  "pagination": {}
}
{
  "code": "string",
  "message": "string",
  "details": "string"
}
{
  "code": "string",
  "message": "string",
  "details": "string"
}
{
  "code": "string",
  "message": "string",
  "details": "string"
}