Fetch Customer Card Details By Account
In addition to the card details returned by the /fetchCardByAccount endpoint, the card details returned in this endpoint include the expiry date and sequence number.
Request Message description
Field # | Field name | Data type | Max length | Required | Description |
---|---|---|---|---|---|
1 | issuerNr | string | 3 | true | Issuer Number e.g 2 |
2 | accountId | string | 10 to 28 | true | Account ID or Number |
POST /card-management/api/v1/card/account/customer/cards
Authorization = Bearer Token
Sample Request
{
"issuerNr": 2,
"accountId": "0123456789"
}
Response Message field description
Field # | Field name | Description |
---|---|---|
1 | code | Internal Response Code |
2 | description | Successful or Error Message |
3 | detailedaccountCustomerCards | List of customer and card Details linked to the specified account ID |
4 | errors | Errors array if any errors exists. |
Sample Response (success)
{
"code": "00",
"description": "Successful",
"detailedAccountCustomerCards": [
{
"accountId": "0002489624",
"customerId": "20230122193705443677630",
"pan": "5060990000000047630",
"firstName": "DAMILOLA",
"lastName": "ODUNBAKU",
"nameOnCard": "DAMILOLA ODUNBAKU",
"mobileNr": "",
"seqNr": "001",
"expiryDate": "5004"
},
{
"accountId": "0002489624",
"customerId": "20230122193705443677630",
"pan": "5060990000000047648",
"firstName": "DAMILOLA",
"lastName": "ODUNBAKU",
"nameOnCard": "DAMILOLA ODUNBAKU",
"mobileNr": "",
"seqNr": "001",
"expiryDate": "5004"
},
{
"accountId": "0002489624",
"customerId": "20230122193705443677630",
"pan": "5060990000000047655",
"firstName": "DAMILOLA",
"lastName": "ODUNBAKU",
"nameOnCard": "DAMILOLA ODUNBAKU",
"mobileNr": "",
"seqNr": "001",
"expiryDate": "5004"
},
{
"accountId": "0002489624",
"customerId": "20230122193705443677630",
"pan": "5060990000000047663",
"firstName": "DAMILOLA",
"lastName": "ODUNBAKU",
"nameOnCard": "DAMILOLA ODUNBAKU",
"mobileNr": "",
"seqNr": "001",
"expiryDate": "5004"
}
]
}
Sample Response (failure)
{
"code": "10404",
"description": "No customer and no card records found",
"correlationId": "6a78c7e6aed24f689f5880ca24904c26"
}
Updated 1 day ago