m2pfintech

Fetch Due Amounts

Fetches the current due amounts for a customer entity including minimum due, total due, unbilled amount, interest accumulated, total outstanding, EMI details, and fee details.

POST
/statement/customer/fetchDue

Query Parameters

emi_details?boolean

Whether to include EMI breakdown in the response

Defaultfalse
include_fee?boolean

Whether to include fee details in the response

Defaultfalse
include_unposted_interest?boolean

Whether to include unposted interest in the response

Defaulttrue

Header Parameters

TENANT*string

Tenant identifier

Content-Type*string

Content type of the request

Default"application/json"

Request Body

application/json

entityId*string

Entity ID of the customer; accepted as 'entityId' or 'entity_id'

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://api.m2pfintech.com/statement/customer/fetchDue" \  -H "TENANT: string" \  -H "Content-Type: application/json" \  -H "Content-Type: application/json" \  -d '{    "entityId": "CUST20260617001"  }'
{
  "result": {
    "minDue": "1320.00",
    "totalDue": "13200.00",
    "dueDate": "2026-07-20",
    "paymentMade": "0.00",
    "unbilledAmount": "2500.00",
    "interestAccumulated": "150.00",
    "totalOutStandingAmount": "15850.00",
    "currentStatementDate": "2026-06-30",
    "nextStatementDate": "2026-07-31",
    "entityId": "CUST20260617001",
    "outStandingExists": true,
    "entityStatus": "ACTIVE"
  },
  "exception": null,
  "pagination": null
}
{
  "result": null,
  "exception": {
    "errorCode": "ERR_400",
    "shortMessage": "Bad Request",
    "detailMessage": "Invalid or missing required fields in the request payload."
  },
  "pagination": null
}
{
  "result": null,
  "exception": {
    "errorCode": "ERR_401",
    "shortMessage": "Unauthorized",
    "detailMessage": "Missing or invalid TENANT header."
  },
  "pagination": null
}
{
  "result": null,
  "exception": {
    "errorCode": "ERR_500",
    "shortMessage": "Internal Server Error",
    "detailMessage": "An unexpected error occurred. Please try again later."
  },
  "pagination": null
}