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 name | Data type | Max length | Required | Description |
---|---|---|---|---|---|
1 | issuerNr | int | 3 | true | Issuer Number e.g 2 |
2 | accountId | string | 10 to 28 | true | Account 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 name | Description |
---|---|---|
1 | code | Internal Response Code |
2 | description | Successful or Error Message |
3 | accountCustomerCards | List of Card Account Details |
4 | errors | Errors 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"
}
Updated 6 months ago