Fetch Entities
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.
Header Parameters
Tenant identifier
Request Body
application/json
The value to search for
The type/field to search by (e.g., entityId, kitNo, mobile)
Page number for pagination
0Page size for pagination
10Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.m2pfintech.com/credit-customer/business-entity-manager/fetchEntities" \ -H "TENANT: string" \ -H "Content-Type: application/json" \ -d '{ "searchCriteria": "9876543210", "searchType": "mobile", "pageNo": 0, "pageSize": 10 }'{
"result": [
{
"entityId": "CUST20260617001",
"firstName": "Priya",
"lastName": "Sharma"
}
],
"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 Due Amounts POST
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.
Fetch Credit Limit POST
Fetches the current credit limit details for an entity, including actual, available, utilized, cash limit, and parent limit info.
