m2pfintech

Fetch Customer Details

Fetches customer details by entityId including personal info, contact, address, and bank account details.

POST
/credit-customer/account-manager/fetchDetails

Header Parameters

TENANT*string

Tenant identifier

Request Body

application/json

entityId*string

Entity ID of the customer to fetch

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://api.m2pfintech.com/credit-customer/account-manager/fetchDetails" \  -H "TENANT: string" \  -H "Content-Type: application/json" \  -d '{    "entityId": "CUST20260617001"  }'
{
  "result": {
    "entityId": "CUST20260617001",
    "firstName": "Priya",
    "lastName": "Sharma",
    "gender": "FEMALE",
    "contactNo": "9876543210",
    "email": "priya.sharma@example.com",
    "address": "42 MG Road",
    "address2": "Apt 3B",
    "city": "Bangalore",
    "state": "Karnataka",
    "country": "India",
    "pincode": "560001",
    "kitNo": "180010188",
    "preferredLanguage": "EN"
  },
  "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
}