Get all transactions belonging to a virtual card
As a merchant, you can retrieve all virtual cards belonging to your business by making a GET request to the card endpoint as shown in the example below.
Example
var axios = require('axios');
var config = {
method: 'get',
url: 'https://integrations.getravenbank.com/v1/cards/all',
headers: { }
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
{
"status": "success",
"message": "all cards retrieved successfully",
"data": [
{
"card_id": "51f22c80hc9b4e40441831e5",
"card_pan": "507873******2223",
"cvv": "121",
"pin": null,
"billing_address": null,
"expiry_month": "07",
"expiry_year": "25",
"brand": "VERVE",
"card_name": "CARD NAME",
"card_number": "5074749634563122",
"balance": 1950,
"type": "virtual",
"currency": "NGN",
"last_four": "2214",
"created_at": "2022-08-09T09:57:20.000Z"
},
{
"card_id": "62f242cdfc9b4e40441857f3",
"card_pan": "507573******9780",
"cvv": "135",
"pin": "2636",
"billing_address": null,
"expiry_month": "08",
"expiry_year": "25",
"brand": "VERVE",
"card_name": "CARD NAME",
"card_number": "5078747955099310",
"balance": 450,
"type": "virtual",
"currency": "NGN",
"last_four": "6510",
"created_at": "2022-08-09T11:19:41.000Z"
}
]
}
Try it in the console
Updated 16 days ago