m2pfintech

Get card list (v3) for a customer

Retrieves the list of cards associated with a customer (v3 variant). NOTE: This endpoint path was not found in the available source code of credit-clms, credit-customer-service, or credit-service. It may exist in a service not present in this codebase snapshot or may be a planned/upcoming endpoint. Based on the v1 getCardList pattern, it accepts a customerId and returns card list data.

POST
/Yappay/business-entity-manager/v3/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/v3/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"
}