m2pfintech

Get Customer Account List

Retrieves the list of bank accounts associated with a customer by customerId.

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

Header Parameters

TENANT*string

Tenant identifier

Request Body

application/json

customerId*string

Customer ID to fetch account list for

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://api.m2pfintech.com/credit-customer/business-entity-manager/getAccountList" \  -H "TENANT: string" \  -H "Content-Type: application/json" \  -d '{    "customerId": "CUST20260617001"  }'
{
  "result": {
    "customerId": "CUST20260617001",
    "bankDetails": [
      {
        "accountNo": "XXXX0042",
        "accountType": "SAVINGS",
        "accountsCurrency": "INR",
        "accountStatus": "ACTIVE",
        "defaultAccount": true,
        "ifscCode": "ICIC0000001",
        "accountPurpose": "REPAYMENT"
      }
    ]
  },
  "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
}