Retrieve a single virtual card

The retrieve card endpoint just as the name implies, allows you to retrieve a single card by passing in the `card_id as a query param as shown in the example below.

Example

var axios = require('axios');

var config = {
  method: 'get',
  url: 'https://integrations.getravenbank.com/v1/cards/card?card_id=62f22f80fc9b4e40441831e9',
  headers: { }
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
{
  "status": "success",
  "message": "card retrieved successfully",
  "data": {
    "card_id": "62f22f80fc9b4e40441831e9",
    "card_pan": "507874******1113",
    "cvv": "111",
    "pin": null,
    "billing_address": null,
    "expiry_month": "07",
    "expiry_year": "25",
    "brand": "VERVE",
    "card_name": "CARD NAME",
    "card_number": "5078748935951542",
    "balance": 1450,
    "type": "virtual",
    "currency": "NGN",
    "last_four": "2112",
    "created_at": "2022-08-09T09:57:20.000Z"
  }
}
👍

Try it in the console

Click here to try it