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.
Query Parameters
Whether to include EMI breakdown in the response
falseWhether to include fee details in the response
falseWhether to include unposted interest in the response
trueHeader Parameters
Tenant identifier
Content type of the request
"application/json"Request Body
application/json
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
}Fetch Customer Details POST
Fetches customer details by entityId including personal info, contact, address, and bank account details.
Fetch Entities POST
Fetches a paginated list of entities matching a search criteria and type. Returns detailed customer/entity information including addresses, kit info, credit data, and block codes.
