List Virtual Accounts
curl --request GET \
--url https://api.rolla.xyz/api/v1/external/wallet/virtual-accounts \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.rolla.xyz/api/v1/external/wallet/virtual-accounts"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.rolla.xyz/api/v1/external/wallet/virtual-accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rolla.xyz/api/v1/external/wallet/virtual-accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.rolla.xyz/api/v1/external/wallet/virtual-accounts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.rolla.xyz/api/v1/external/wallet/virtual-accounts")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rolla.xyz/api/v1/external/wallet/virtual-accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": 200,
"message": "Virtual accounts retrieved successfully",
"success": true,
"data": {
"virtualAccounts": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "active",
"virtual_account_type": "static",
"currency_type": "fiat",
"bank_name": "Wema Bank",
"account_number": "9876543210",
"account_name": "Rolla / Your Business Name"
}
]
}
}{
"status": 400,
"message": "Validation failed",
"code": "ACCOUNT_RESTRICTED",
"errors": [
{
"path": [
"amount"
],
"message": "amount must be a whole number of smallest currency units (e.g. cents)"
}
]
}{
"status": 400,
"message": "Validation failed",
"code": "ACCOUNT_RESTRICTED",
"errors": [
{
"path": [
"amount"
],
"message": "amount must be a whole number of smallest currency units (e.g. cents)"
}
]
}{
"status": 400,
"message": "Validation failed",
"code": "ACCOUNT_RESTRICTED",
"errors": [
{
"path": [
"amount"
],
"message": "amount must be a whole number of smallest currency units (e.g. cents)"
}
]
}Deposits & Virtual Accounts
List Virtual Accounts
Lists the active virtual accounts your business can receive payments into. Without virtualAccountType only static accounts are returned.
GET
/
wallet
/
virtual-accounts
List Virtual Accounts
curl --request GET \
--url https://api.rolla.xyz/api/v1/external/wallet/virtual-accounts \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.rolla.xyz/api/v1/external/wallet/virtual-accounts"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.rolla.xyz/api/v1/external/wallet/virtual-accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rolla.xyz/api/v1/external/wallet/virtual-accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.rolla.xyz/api/v1/external/wallet/virtual-accounts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.rolla.xyz/api/v1/external/wallet/virtual-accounts")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rolla.xyz/api/v1/external/wallet/virtual-accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": 200,
"message": "Virtual accounts retrieved successfully",
"success": true,
"data": {
"virtualAccounts": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "active",
"virtual_account_type": "static",
"currency_type": "fiat",
"bank_name": "Wema Bank",
"account_number": "9876543210",
"account_name": "Rolla / Your Business Name"
}
]
}
}{
"status": 400,
"message": "Validation failed",
"code": "ACCOUNT_RESTRICTED",
"errors": [
{
"path": [
"amount"
],
"message": "amount must be a whole number of smallest currency units (e.g. cents)"
}
]
}{
"status": 400,
"message": "Validation failed",
"code": "ACCOUNT_RESTRICTED",
"errors": [
{
"path": [
"amount"
],
"message": "amount must be a whole number of smallest currency units (e.g. cents)"
}
]
}{
"status": 400,
"message": "Validation failed",
"code": "ACCOUNT_RESTRICTED",
"errors": [
{
"path": [
"amount"
],
"message": "amount must be a whole number of smallest currency units (e.g. cents)"
}
]
}Retrieve the active virtual accounts your business can receive payments into. Filter by currency or account type.
Fields that are empty for an account are left out, so a fiat account carries bank details while a crypto account carries
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
| Parameter | Type | Description |
|---|---|---|
currency | string | Filter by currency code, 3 or 4 characters (for example NGN, USD, USDT). Matched case-insensitively. |
virtualAccountType | string | Filter by type: static or dynamic. Defaults to static when omitted, so dynamic accounts are only returned when you ask for them. |
Example Response
{
"status": 200,
"message": "Virtual accounts retrieved successfully",
"success": true,
"data": {
"virtualAccounts": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "active",
"virtual_account_type": "static",
"currency_type": "fiat",
"bank_name": "Wema Bank",
"account_number": "9876543210",
"account_name": "Rolla / Your Business Name"
}
]
}
}
wallet_address, wallet_chain and stablecoin_type instead. USD accounts also carry routing_number, swift_code and bank_address, and a dynamic account carries expires_at.
Static virtual accounts are permanent and can receive multiple payments. Dynamic virtual accounts are created for a specific amount and expire after use.
Authorizations
Your Rolla API key
Query Parameters
Filter by currency code, 3 or 4 characters. Matched case-insensitively.
Required string length:
3 - 4Example:
"NGN"
Filter by account type. Defaults to static when omitted.
Available options:
static, dynamic