Fetch Cards By Account

This API handles requests to fetch cards by Account. It returns a list of all cards linked to an account.

Request Message description

Field #Field nameData typeMax lengthRequiredDescription
1issuerNrint3trueIssuer Number e.g 2
2accountIdstring10 to 28trueAccount ID or Number
POST /card-management/api/v1/card/fetchCardByAccount
Authorization = Bearer Token

Sample Request

{
  "issuerNr": 2,
  "accountId": "0123456789"
}

Response Message  field description


Field #Field nameDescription
1codeInternal Response Code
2descriptionSuccessful or Error Message
3accountCustomerCardsList of Card Account Details
4errorsErrors array if any errors exists.

Sample Response (success)

{
  "code": "00",
  "description": "Successful",
  "accountCustomerCards": [
    {
      "accountId": "0002489624",
      "customerId": "20220404083650993770017",
      "pan": "5061800000000000017",
      "firstName": "JUNAID",
      "lastName": "OLORUNTOBI",
      "nameOnCard": "JUNAID OLORUNTOBI",
      "mobileNr": ""
    },
    {
      "accountId": "0002489624",
      "customerId": "20220404083650993770017",
      "pan": "5061800000000000025",
      "firstName": "JUNAID",
      "lastName": "OLORUNTOBI",
      "nameOnCard": "JUNAID OLORUNTOBI",
      "mobileNr": ""
    }
  ]
}

Sample Response (failure)

{
  "error": "unauthorized",
  "error_description": "Full authentication is required to access this resource"
}