Get 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{
"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>"
}
]
}
}{
"success": false,
"message": "<string>"
}Wallet
Get Virtual Accounts
Retrieves virtual accounts for receiving payments.
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>'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{
"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>"
}
]
}
}{
"success": false,
"message": "<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
| Parameter | Type | Description |
|---|---|---|
currency | string | Filter by 3-letter currency code |
virtualAccountType | string | Filter by type: static or dynamic |
Example Response
{
"status": 200,
"success": true,
"message": "Virtual accounts retrieved successfully",
"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"
}
]
}
}
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 3-letter currency code
Required string length:
3Filter by account type
Available options:
static, dynamic ⌘I