m2pfintech

Get card list for a customer

Retrieves all cards associated with a customer identified by customerId. Returns card details including kit number, BIN, card type, card status, card registration status, expiry date, network type, product code, and card category. The controller is in credit-clms (CardConfigController).

POST
/Yappay/business-entity-manager/getCardList

Header Parameters

TENANT*string

Tenant identifier for multi-tenancy routing

Request Body

application/json

customerId*string

The customer ID (account ID) for whom the card list is fetched

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://uat-m2p-ccms.m2pfintech.com/Yappay/business-entity-manager/getCardList" \  -H "TENANT: string" \  -H "Content-Type: application/json" \  -d '{    "customerId": "CUST123456"  }'
{
  "status": 200,
  "result": {
    "aliasName": "string",
    "blockCode": [
      "string"
    ],
    "dob": "01011990",
    "name": "string",
    "entityId": "string",
    "cardList": [
      {
        "kitNo": "string",
        "bin": "string",
        "cardType": "string",
        "cardStatus": "string",
        "cardRegistrationStatus": "string",
        "expiryDate": "12/27",
        "networkType": "string",
        "productCode": "string",
        "cardCategory": "string"
      }
    ]
  },
  "message": "Success"
}
{
  "status": 400,
  "message": "Invalid request parameters",
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "status": 400,
  "message": "Invalid request parameters",
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "status": 400,
  "message": "Invalid request parameters",
  "timestamp": "2019-08-24T14:15:22Z"
}