Get Master Fiat Wallet
curl --request GET \
--url https://api.example.com/api/v1/wallets/fiat/master \
--header 'x-api-key: <x-api-key>'import requests
url = "https://api.example.com/api/v1/wallets/fiat/master"
headers = {"x-api-key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
fetch('https://api.example.com/api/v1/wallets/fiat/master', 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.example.com/api/v1/wallets/fiat/master",
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: <x-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.example.com/api/v1/wallets/fiat/master"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<x-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.example.com/api/v1/wallets/fiat/master")
.header("x-api-key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/wallets/fiat/master")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Master fiat wallet retrieved successfully",
"data": {
"id": "va_abc123xyz",
"availableBalance": "500000.00",
"ledgerBalance": "500000.00",
"walletName": "Merchant Master Wallet",
"virtualAccount": {
"accountNumber": "1234567890",
"bankCode": "035",
"bankName": "Wema Bank"
}
}
}
{
"success": false,
"message": "Master fiat wallet not found for merchant",
"statusCode": 400
}
Virtual Wallets
Get Master Fiat Wallet
Retrieve the merchant’s master fiat wallet, including live balance and virtual account details
GET
/
api
/
v1
/
wallets
/
fiat
/
master
Get Master Fiat Wallet
curl --request GET \
--url https://api.example.com/api/v1/wallets/fiat/master \
--header 'x-api-key: <x-api-key>'import requests
url = "https://api.example.com/api/v1/wallets/fiat/master"
headers = {"x-api-key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
fetch('https://api.example.com/api/v1/wallets/fiat/master', 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.example.com/api/v1/wallets/fiat/master",
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: <x-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.example.com/api/v1/wallets/fiat/master"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<x-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.example.com/api/v1/wallets/fiat/master")
.header("x-api-key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/wallets/fiat/master")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Master fiat wallet retrieved successfully",
"data": {
"id": "va_abc123xyz",
"availableBalance": "500000.00",
"ledgerBalance": "500000.00",
"walletName": "Merchant Master Wallet",
"virtualAccount": {
"accountNumber": "1234567890",
"bankCode": "035",
"bankName": "Wema Bank"
}
}
}
{
"success": false,
"message": "Master fiat wallet not found for merchant",
"statusCode": 400
}
The master fiat wallet is the merchant-level settlement wallet (as opposed to a customer’s individual fiat wallet). It is resolved from the authenticated API key, so no wallet ID is required.
Request
string
required
API Key for authentication
Request Example
curl https://api-production.fossapay.com/api/v1/wallets/fiat/master \
-H "x-api-key: fp_live_sk_xxxxxxxx"
const response = await fetch('https://api-production.fossapay.com/api/v1/wallets/fiat/master', {
headers: {
'x-api-key': 'fp_live_sk_xxxxxxxx'
}
});
const data = await response.json();
const masterWallet = data.data;
import requests
url = "https://api-production.fossapay.com/api/v1/wallets/fiat/master"
headers = {"x-api-key": "fp_live_sk_xxxxxxxx"}
response = requests.get(url, headers=headers)
data = response.json()
master_wallet = data["data"]
Response
boolean
Response status
string
Human-readable response message
object
Response Example
{
"success": true,
"message": "Master fiat wallet retrieved successfully",
"data": {
"id": "va_abc123xyz",
"availableBalance": "500000.00",
"ledgerBalance": "500000.00",
"walletName": "Merchant Master Wallet",
"virtualAccount": {
"accountNumber": "1234567890",
"bankCode": "035",
"bankName": "Wema Bank"
}
}
}
{
"success": false,
"message": "Master fiat wallet not found for merchant",
"statusCode": 400
}
Error Codes
| Code | Description |
|---|---|
400 | Master fiat wallet not found for merchant, or wallet data could not be retrieved |
401 | Invalid or missing API key |
⌘I

