Get Wallet
curl --request GET \
--url https://api-partner.onecluster.co/api/v1/billing/wallet \
--header 'Authorization: <api-key>'import requests
url = "https://api-partner.onecluster.co/api/v1/billing/wallet"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api-partner.onecluster.co/api/v1/billing/wallet', 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-partner.onecluster.co/api/v1/billing/wallet",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <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-partner.onecluster.co/api/v1/billing/wallet"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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-partner.onecluster.co/api/v1/billing/wallet")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-partner.onecluster.co/api/v1/billing/wallet")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"responseCode": "00",
"message": "Request processed successfully",
"data": {
"walletId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "UNIONVELOCITY/ACME FINTECH",
"balance": 10000.00,
"availableBalance": 9750.00,
"lienedAmount": 250.00,
"currency": "NGN",
"status": "Active",
"virtualAccount": {
"accountNumber": "0912345678",
"bankName": "Union Bank of Nigeria",
"bankCode": "032"
}
}
}
Billing Endpoints
Get Wallet
Returns your wallet balance, available balance, liened amount, and VA funding details.
GET
/
api
/
v1
/
billing
/
wallet
Get Wallet
curl --request GET \
--url https://api-partner.onecluster.co/api/v1/billing/wallet \
--header 'Authorization: <api-key>'import requests
url = "https://api-partner.onecluster.co/api/v1/billing/wallet"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api-partner.onecluster.co/api/v1/billing/wallet', 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-partner.onecluster.co/api/v1/billing/wallet",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <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-partner.onecluster.co/api/v1/billing/wallet"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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-partner.onecluster.co/api/v1/billing/wallet")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-partner.onecluster.co/api/v1/billing/wallet")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"responseCode": "00",
"message": "Request processed successfully",
"data": {
"walletId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "UNIONVELOCITY/ACME FINTECH",
"balance": 10000.00,
"availableBalance": 9750.00,
"lienedAmount": 250.00,
"currency": "NGN",
"status": "Active",
"virtualAccount": {
"accountNumber": "0912345678",
"bankName": "Union Bank of Nigeria",
"bankCode": "032"
}
}
}
{
"success": true,
"responseCode": "00",
"message": "Request processed successfully",
"data": {
"walletId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "UNIONVELOCITY/ACME FINTECH",
"balance": 10000.00,
"availableBalance": 9750.00,
"lienedAmount": 250.00,
"currency": "NGN",
"status": "Active",
"virtualAccount": {
"accountNumber": "0912345678",
"bankName": "Union Bank of Nigeria",
"bankCode": "032"
}
}
}
accountNumber shown in the virtualAccount object. The amount will be credited to your balance instantly.⌘I

