API Reference
Virtual Cards
Fetch card [GET]

Fetch Card User


https://sandboxapi.onbrails.com/api/v1/virtualcards/cards/{cardId} (opens in a new tab)

Get details of a particular card

Path Params

ParametertypeRequired
cardIdstring

Request

Virtual Cards/Fetch Card User [GET]
curl --request GET \
   --url https://sandboxapi.onbrails.com/api/v1/virtualcards/cards/cardId \
   --header 'Authorization: Bearer API-KEY' \
   --header 'accept: application/json'

Responses

🟢 200 - Result example
{
"status": true,
"message": "successfully fetched virtual card",
"data": {
  "id": "c21a8aaf-4e79-4188-acad-fc5522d6120b",
  "createdAt": "2023-02-28T06:27:20.616Z",
  "updatedAt": "2023-03-02T13:04:51.463Z",
  "balance": 100,
  "cardNumber": "5248971010625096",
  "last4": "5096",
  "cardName": "John Doe",
  "cardType": "virtual",
  "cardBrand": "visa",
  "cvv2": "657",
  "expiry": "2026-02-28T23:59:59.999Z",
  "status": "active",
  "cardUserId": "da1a799e-e20f-4479-a80d-174052baebdb",
  "valid": "02/2026",
  "reference": "etoajadadkaaiudkkjahyyy111",
  "createdStatus": "success",
  "customerId": null,
  "customerEmail": "johndoe@gmail.com",
  "billingAddress": {
    "city": "San Francisco",
    "street": "1088 Roosevelt Street",
    "country": "United States",
    "zipCode": "94105",
    "countryCode": "US"
  }
}
}