Fetch Cards By Account
This API allows you a list of all cards linked to an account.
Fetch Cards By Account
To fetch a card successfully make a POST Request to the fetch cards by account endpoint
POST /card-management/api/v1/card/fetchCardByAccount
These are the parameters of the request:
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 |
The request should look like this:
{
"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 exist. |
This is what a typical successful or failed response would look like :
{
"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": ""
}
]
}
{
"error": "unauthorized",
"error_description": "Full authentication is required to access this resource"
}
Updated 7 months ago