m2pfintech
API LibraryCard Controls

Get card list

Returns the list of cards associated with the specified entity or account.

POST
/business-entity-manager/getCardList

Header Parameters

TENANT*string

Tenant identifier. Required for all requests.

Request Body

application/json

customerId?string

Unique identifier of the customer whose card list is to be retrieved.

Response Body

application/json

*/*

application/json

curl -X POST "https://api.m2pfintech.com/credit-line-management/business-entity-manager/getCardList" \  -H "TENANT: string" \  -H "Content-Type: application/json" \  -d '{    "customerId": "E2EyUBCmdkpnkv5EB8"  }'
{
  "result": {
    "entityId": "E2EyUBCmdkpnkv5EB8",
    "name": "ARJUN SHARMA",
    "aliasName": "ARJUN",
    "cardList": [
      {
        "kitNo": "180010188",
        "cardType": "PHYSICAL"
      }
    ]
  },
  "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_500",
    "shortMessage": "Internal Server Error",
    "detailMessage": "An unexpected error occurred. Please try again later."
  },
  "pagination": null
}