Skip to main content
GET
/
wallet
/
virtual-accounts
Get Virtual Accounts
curl --request GET \
  --url https://api.rolla.xyz/api/v1/external/wallet/virtual-accounts \
  --header 'X-API-Key: <api-key>'
{
  "success": true,
  "message": "Virtual accounts retrieved successfully",
  "data": {
    "virtualAccounts": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "accountName": "<string>",
        "accountNumber": "<string>",
        "bankName": "<string>",
        "currency": "<string>",
        "type": "static",
        "status": "<string>"
      }
    ]
  }
}
Retrieve virtual accounts for receiving payments. Filter by currency, account type, or integration type.

Example Request

curl -X GET "https://api.rolla.xyz/api/v1/external/wallet/virtual-accounts?currency=NGN&virtualAccountType=static" \
  -H "X-API-Key: your_api_key_here"

Query Parameters

ParameterTypeDescription
currencystringFilter by 3-letter currency code
virtualAccountTypestringFilter by type: static or dynamic
amountnumberAmount for dynamic virtual accounts
integrationTypestringFilter by integration type

Example Response

{
  "success": true,
  "message": "Virtual accounts retrieved successfully",
  "data": {
    "virtualAccounts": [
      {
        "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
        "accountName": "Acme Corp Ltd",
        "accountNumber": "9876543210",
        "bankName": "Wema Bank",
        "currency": "NGN",
        "type": "static",
        "status": "active"
      }
    ]
  }
}
Static virtual accounts are permanent and can receive multiple payments. Dynamic virtual accounts are created for a specific amount and expire after use.

Authorizations

X-API-Key
string
header
required

Your Rolla API key

Query Parameters

currency
string

Filter by 3-letter currency code

Required string length: 3
virtualAccountType
enum<string>

Filter by account type

Available options:
static,
dynamic
amount
number

Amount for dynamic virtual accounts

integrationType
string

Filter by integration type

Response

Virtual accounts retrieved successfully

success
boolean
Example:

true

message
string
Example:

"Virtual accounts retrieved successfully"

data
object