m2pfintech

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.

POST
/credit-customer/business-entity-manager/fetchEntities

Header Parameters

TENANT*string

Tenant identifier

Request Body

application/json

searchCriteria?string

The value to search for

searchType?string

The type/field to search by (e.g., entityId, kitNo, mobile)

pageNo?integer

Page number for pagination

Default0
pageSize?integer

Page size for pagination

Default10

Response 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
}