๐Ÿ“ฃ New Region Unlocked: You can now send payouts directly to Canada! ๐Ÿ‡จ๐Ÿ‡ฆ
Virtual Accounts
Get Virtual Account

Get Virtual Account

The Get Virtual Account endpoint allows you to retrieve the details of a specific virtual account by using its unique ID.


Requirements

To use this endpoint, ensure that:

  • Your API key is active and correctly configured.
  • You provide the VirtualAccountId of the virtual account you wish to query.

Endpoint

GET /v1/virtual-account/{VirtualAccountId}


Headers

HeaderTypeDescriptionRequired
x-api-keyStringYour API key for authentication.โœ… Yes

Path Parameters

ParameterTypeDescriptionRequired
VirtualAccountIdStringThe unique identifier of the virtual account you want to retrieve.โœ… Yes
๐Ÿ’ก

The {VirtualAccountId} in the endpoint URL should be replaced with the actual ID of the virtual account you want to look up.

Sample Request

curl --location '{{}baseURL}v1/virtual-account/{VirtualAccountId} \
--header 'x-api-key: YOUR_API_KEY_HERE'

Responses

A successful request returns a 200 OK status and the details of the virtual account.

Response (200 OK)
{
    "message": "virtual account fetched successfully",
    "status": "success",
    "data": {
        "id": "30fe4022-09da-46fb-bafa-xxxxxxxxxxxxxx",
        "firstName": "John",
        "lastName": "Jonathan",
        "email": "someexample@gmail.com",
        "phoneNumber": "+2348123XXXX",
        "bvn": "********",
        "reference": "REF_YERT8JPXXXXXX",
        "account": {
            "name": "NNDDD",
            "bankName": "Sterling BANK",
            "sortCode": null,
            "number": "88178XXXXX"
        },
        "status": "ACTIVE", 
        "currency": "NGN",
        "country": "NG",
        "isPermanent": false,
        "expiryTime": 10,
        "created": "2025-06-26T17:46:11.636164",
        "expired": "2025-06-26T17:46:11.636164"
    }
}

Response Body Breakdown

Virtual Account Data

This object contains the details of the retrieved virtual account.

FieldTypeDescription
idStringUnique identifier for the virtual account resource.
firstNameStringThe first name of the account holder.
lastNameStringThe last name of the account holder.
emailStringThe email address of the account holder.
phoneNumberStringThe phone number of the account holder.
bvnStringThe masked Bank Verification Number (BVN) of the account holder.
referenceStringThe unique reference associated with the account.
account.nameStringThe name on the virtual bank account.
account.bankNameStringThe name of the bank providing the virtual account.
account.sortCodeStringThe sort code of the bank (may be null).
account.numberStringThe virtual account number.
statusStringThe current status of the account (e.g., ACTIVE or INACTIVE).
currencyStringThe currency code for the account.
countryStringISO 3166-1 alpha-2 country code.
isPermanentBooleanA flag indicating if the account is permanent (true) or dynamic (false).
expiryTimeNumberUnix timestamp indicating when the account will expire.
createdStringISO 8601 timestamp of when the account was created.
expiredStringISO 8601 timestamp of when the account expired. Only appears for dynamic accounts.