API Reference
Virtual Accounts
Get virtual account [GET]

Get a virtual account


https://sandboxapi.onbrails.com/api/v1/virtual-accounts/{id} (opens in a new tab)

Get a single Virtual Account Details

Query Params

ParametertypeRequired
id
string

Request

Virtual account details [GET]
curl --request GET \
   --url 'https://sandboxapi.onbrails.com/api/v1/virtual-accounts/81688670-afb0-0000-a0a0-0fe000eb186c' \
   --header 'Authorization: Bearer API-KEY' \
   --header 'accept: application/json'

Responses

🟢 200 - Result example
{
  "status": true,
  "message": "successfully fetched virtual account",
  "data": {
      "id": "f8d4c37d-0292-44b6-ab72-9d1fb7a4ba90",
      "createdAt": "2024-01-31T13:33:17.998Z",
      "updatedAt": "2024-01-31T13:33:17.998Z",
      "customerId": "c5da1833-87bb-4ad9-b1e7-ee41f98983",
      "accountName": "BRAILS_TESTING / JOE DOE",
      "reference": "o1WPNZFmUDZLjDD",
      "bankName": "SafeHaven Microfinance Bank",
      "accountNumber": "8010004000",
      "bank": "safehaven"
  }
}