API reference
Test mode
Calls that exist only in test mode.
Add test money
POST/api/v1/sandbox/fundscope
sandbox.fundTest mode onlyAdd fake money to your test balance so you can try payouts. Only test credentials can call this; with live credentials it answers 404.
Body (JSON)
amountnumberrequired | From 1 to 100,000, at most 2 decimal places. |
POST /api/v1/sandbox/fund · test
curl -X POST "https://api.tranzaq.com/api/v1/sandbox/fund" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ "amount": 5000 }'const response = await fetch("https://api.tranzaq.com/api/v1/sandbox/fund", {
method: "POST",
headers: {
Authorization: `Bearer ${token}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ "amount": 5000 }),
});
console.log(await response.json());var request = new HttpRequestMessage(HttpMethod.Post, "/api/v1/sandbox/fund");
request.Headers.Authorization = new("Bearer", token);
request.Content = new StringContent(@"{ ""amount"": 5000 }", Encoding.UTF8, "application/json");
var response = await http.SendAsync(request); // http.BaseAddress = "https://api.tranzaq.com"
Console.WriteLine(await response.Content.ReadAsStringAsync());import uuid, requests
response = requests.post(
"https://api.tranzaq.com/api/v1/sandbox/fund",
headers={"Authorization": f"Bearer {token}"},
json={ "amount": 5000 },
)
print(response.json())Answer · 200
Response · test
{
"success": true,
"message": "Test money added",
"code": 200,
"result": { "available": 5000.00, "reserved": 0.00, "pending": 0.00, "total": 5000.00, "currency": "GHS", "asOf": "2026-10-18T10:12:00+00:00" }
}Errors
- 400The amount is out of range.
- 404These are live credentials.