Get wallet transactions
curl --request GET \
--url https://api-production.fossapay.com/api/v1/wallets/fiat/{walletId}/transactions \
--header 'x-api-key: <api-key>'import requests
url = "https://api-production.fossapay.com/api/v1/wallets/fiat/{walletId}/transactions"
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-production.fossapay.com/api/v1/wallets/fiat/{walletId}/transactions', 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-production.fossapay.com/api/v1/wallets/fiat/{walletId}/transactions",
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-production.fossapay.com/api/v1/wallets/fiat/{walletId}/transactions"
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-production.fossapay.com/api/v1/wallets/fiat/{walletId}/transactions")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-production.fossapay.com/api/v1/wallets/fiat/{walletId}/transactions")
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{
"transactions": [
{
"transactionId": "44444444-4444-4444-8444-444444444401",
"transactionType": "deposit",
"walletId": "33333333-3333-4333-8333-333333333333",
"accountNumber": "1234567890",
"status": "success",
"amount": 50000,
"fee": 0,
"originator": {
"accountNumber": "0987654321",
"accountName": "JOHN DOE",
"bankName": "Sterling Bank"
},
"narration": "Payment from John Doe",
"reference": "FP-20240115-001",
"createdAt": "2024-01-15T10:30:45Z"
},
{
"transactionId": "44444444-4444-4444-8444-444444444402",
"transactionType": "withdrawal",
"walletId": "33333333-3333-4333-8333-333333333333",
"accountNumber": "1234567890",
"status": "success",
"amount": 75000,
"fee": 50,
"beneficiary": {
"accountNumber": "1122334455",
"accountName": "JOHN DOE",
"bankName": "Zenith Bank"
},
"narration": "Payment to John Doe",
"reference": "FP-20240115-002",
"createdAt": "2024-01-15T14:20:30Z"
}
],
"total": 125,
"page": 1,
"limit": 10,
"totalPages": 13
}
{
"status": "error",
"statusCode": 404,
"message": "Wallet not found"
}
Virtual Wallets
Fetch Wallet Transactions
Retrieve all NGN wallet transactions with pagination
GET
/
api
/
v1
/
wallets
/
fiat
/
{walletId}
/
transactions
Get wallet transactions
curl --request GET \
--url https://api-production.fossapay.com/api/v1/wallets/fiat/{walletId}/transactions \
--header 'x-api-key: <api-key>'import requests
url = "https://api-production.fossapay.com/api/v1/wallets/fiat/{walletId}/transactions"
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-production.fossapay.com/api/v1/wallets/fiat/{walletId}/transactions', 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-production.fossapay.com/api/v1/wallets/fiat/{walletId}/transactions",
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-production.fossapay.com/api/v1/wallets/fiat/{walletId}/transactions"
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-production.fossapay.com/api/v1/wallets/fiat/{walletId}/transactions")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-production.fossapay.com/api/v1/wallets/fiat/{walletId}/transactions")
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{
"transactions": [
{
"transactionId": "44444444-4444-4444-8444-444444444401",
"transactionType": "deposit",
"walletId": "33333333-3333-4333-8333-333333333333",
"accountNumber": "1234567890",
"status": "success",
"amount": 50000,
"fee": 0,
"originator": {
"accountNumber": "0987654321",
"accountName": "JOHN DOE",
"bankName": "Sterling Bank"
},
"narration": "Payment from John Doe",
"reference": "FP-20240115-001",
"createdAt": "2024-01-15T10:30:45Z"
},
{
"transactionId": "44444444-4444-4444-8444-444444444402",
"transactionType": "withdrawal",
"walletId": "33333333-3333-4333-8333-333333333333",
"accountNumber": "1234567890",
"status": "success",
"amount": 75000,
"fee": 50,
"beneficiary": {
"accountNumber": "1122334455",
"accountName": "JOHN DOE",
"bankName": "Zenith Bank"
},
"narration": "Payment to John Doe",
"reference": "FP-20240115-002",
"createdAt": "2024-01-15T14:20:30Z"
}
],
"total": 125,
"page": 1,
"limit": 10,
"totalPages": 13
}
{
"status": "error",
"statusCode": 404,
"message": "Wallet not found"
}
Path Parameters
Query Parameters
Request
Request Example
curl "https://api-production.fossapay.com/api/v1/wallets/fiat/33333333-3333-4333-8333-333333333333/transactions?page=1&limit=10&transactionType=deposit" \
-H "x-api-key: $FOSSAPAY_API_KEY"
const response = await fetch('https://api-production.fossapay.com/api/v1/wallets/fiat/33333333-3333-4333-8333-333333333333/transactions?page=1&limit=10&transactionType=deposit&startDate=2024-01-01&endDate=2024-01-31', {
headers: {
'x-api-key': process.env.FOSSAPAY_API_KEY
}
});
const data = await response.json();
const transactions = data.transactions;
import os
import requests
url = "https://api-production.fossapay.com/api/v1/wallets/fiat/33333333-3333-4333-8333-333333333333/transactions"
params = {
"page": 1,
"limit": 10,
"transactionType": "deposit",
"startDate": "2024-01-01",
"endDate": "2024-01-31"
}
headers = {"x-api-key": os.environ["FOSSAPAY_API_KEY"]}
response = requests.get(url, headers=headers, params=params)
data = response.json()
transactions = data["transactions"]
Response
Show transaction object
Show transaction object
Response Example
{
"transactions": [
{
"transactionId": "44444444-4444-4444-8444-444444444401",
"transactionType": "deposit",
"walletId": "33333333-3333-4333-8333-333333333333",
"accountNumber": "1234567890",
"status": "success",
"amount": 50000,
"fee": 0,
"originator": {
"accountNumber": "0987654321",
"accountName": "JOHN DOE",
"bankName": "Sterling Bank"
},
"narration": "Payment from John Doe",
"reference": "FP-20240115-001",
"createdAt": "2024-01-15T10:30:45Z"
},
{
"transactionId": "44444444-4444-4444-8444-444444444402",
"transactionType": "withdrawal",
"walletId": "33333333-3333-4333-8333-333333333333",
"accountNumber": "1234567890",
"status": "success",
"amount": 75000,
"fee": 50,
"beneficiary": {
"accountNumber": "1122334455",
"accountName": "JOHN DOE",
"bankName": "Zenith Bank"
},
"narration": "Payment to John Doe",
"reference": "FP-20240115-002",
"createdAt": "2024-01-15T14:20:30Z"
}
],
"total": 125,
"page": 1,
"limit": 10,
"totalPages": 13
}
{
"status": "error",
"statusCode": 404,
"message": "Wallet not found"
}
Pagination Example
// Get all transactions with pagination
let page = 1;
let allTransactions = [];
while (true) {
const response = await fetch(`https://api-production.fossapay.com/api/v1/wallets/fiat/33333333-3333-4333-8333-333333333333/transactions?page=${page}&limit=50`, {
headers: {
'x-api-key': process.env.FOSSAPAY_API_KEY
}
});
const data = await response.json();
allTransactions.push(...data.transactions);
if (page >= data.totalPages) {
break;
}
page++;
}
console.log(`Retrieved ${allTransactions.length} transactions`);
For better performance, use specific date ranges and transaction type filters when possible.
Store transaction IDs for reconciliation and audit purposes.
Errors
| Status | Typical cause |
|---|---|
401 | Missing or invalid API key |
403 | Wallet belongs to another merchant |
404 | Wallet not found |
422 | Invalid query parameter |

