Get wallet transaction by ID
curl --request GET \
--url https://api-production.fossapay.com/api/v1/wallets/fiat/transactions/{transactionId} \
--header 'x-api-key: <api-key>'import requests
url = "https://api-production.fossapay.com/api/v1/wallets/fiat/transactions/{transactionId}"
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/transactions/{transactionId}', 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/transactions/{transactionId}",
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/transactions/{transactionId}"
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/transactions/{transactionId}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-production.fossapay.com/api/v1/wallets/fiat/transactions/{transactionId}")
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{
"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"
}
{
"status": "error",
"statusCode": 404,
"message": "Transaction not found"
}
Virtual Wallets
Fetch Wallet Single Transaction
Retrieve details of a single NGN wallet transaction
GET
/
api
/
v1
/
wallets
/
fiat
/
transactions
/
{transactionId}
Get wallet transaction by ID
curl --request GET \
--url https://api-production.fossapay.com/api/v1/wallets/fiat/transactions/{transactionId} \
--header 'x-api-key: <api-key>'import requests
url = "https://api-production.fossapay.com/api/v1/wallets/fiat/transactions/{transactionId}"
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/transactions/{transactionId}', 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/transactions/{transactionId}",
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/transactions/{transactionId}"
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/transactions/{transactionId}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-production.fossapay.com/api/v1/wallets/fiat/transactions/{transactionId}")
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{
"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"
}
{
"status": "error",
"statusCode": 404,
"message": "Transaction not found"
}
Path Parameters
Request
Request Example
curl https://api-production.fossapay.com/api/v1/wallets/fiat/transactions/44444444-4444-4444-8444-444444444401 \
-H "x-api-key: $FOSSAPAY_API_KEY"
const response = await fetch('https://api-production.fossapay.com/api/v1/wallets/fiat/transactions/44444444-4444-4444-8444-444444444401', {
headers: {
'x-api-key': process.env.FOSSAPAY_API_KEY
}
});
const transaction = await response.json();
import os
import requests
url = "https://api-production.fossapay.com/api/v1/wallets/fiat/transactions/44444444-4444-4444-8444-444444444401"
headers = {"x-api-key": os.environ["FOSSAPAY_API_KEY"]}
response = requests.get(url, headers=headers)
transaction = response.json()
Response
Response Example
{
"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"
}
{
"status": "error",
"statusCode": 404,
"message": "Transaction not found"
}
Errors
| Status | Typical cause |
|---|---|
401 | Missing or invalid API key |
403 | Transaction belongs to another merchant |
404 | Transaction does not exist |
Store transaction details for reconciliation and audit purposes.
Use this endpoint to verify specific transactions when needed.
Response
Transaction retrieved successfully

