Calculate Fiat Transfer Fee
curl --request GET \
--url https://api-production.fossapay.com/api/v1/transfers/fiat/calculate-fee \
--header 'x-api-key: <x-api-key>'import requests
url = "https://api-production.fossapay.com/api/v1/transfers/fiat/calculate-fee"
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-production.fossapay.com/api/v1/transfers/fiat/calculate-fee', 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/transfers/fiat/calculate-fee",
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-production.fossapay.com/api/v1/transfers/fiat/calculate-fee"
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-production.fossapay.com/api/v1/transfers/fiat/calculate-fee")
.header("x-api-key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-production.fossapay.com/api/v1/transfers/fiat/calculate-fee")
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{
"status": true,
"statusCode": 200,
"message": "Transfer fee calculated successfully",
"data": {
"amount": 50000,
"currency": "NGN",
"feeAmount": 500,
"total": 50500
}
}
Fiat Transfers
Calculate Fiat Transfer Fee
Calculate the payout fee for a fiat transfer amount in NGN
GET
/
api
/
v1
/
transfers
/
fiat
/
calculate-fee
Calculate Fiat Transfer Fee
curl --request GET \
--url https://api-production.fossapay.com/api/v1/transfers/fiat/calculate-fee \
--header 'x-api-key: <x-api-key>'import requests
url = "https://api-production.fossapay.com/api/v1/transfers/fiat/calculate-fee"
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-production.fossapay.com/api/v1/transfers/fiat/calculate-fee', 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/transfers/fiat/calculate-fee",
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-production.fossapay.com/api/v1/transfers/fiat/calculate-fee"
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-production.fossapay.com/api/v1/transfers/fiat/calculate-fee")
.header("x-api-key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-production.fossapay.com/api/v1/transfers/fiat/calculate-fee")
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{
"status": true,
"statusCode": 200,
"message": "Transfer fee calculated successfully",
"data": {
"amount": 50000,
"currency": "NGN",
"feeAmount": 500,
"total": 50500
}
}
Request
API Key for authentication
Query Parameters
The transfer amount in NGN for which to calculate the fee. Must be a positive number (minimum
0.01).Request Example
curl -g 'https://api-production.fossapay.com/api/v1/transfers/fiat/calculate-fee?amount=50000' \
-H "x-api-key: your_api_key_here"
const params = new URLSearchParams({ amount: '50000' });
const response = await fetch(
`https://api-production.fossapay.com/api/v1/transfers/fiat/calculate-fee?${params}`,
{
method: 'GET',
headers: {
'x-api-key': 'your_api_key_here',
},
}
);
if (!response.ok) {
throw new Error(`Request failed: ${response.status} ${response.statusText}`);
}
const feeData = await response.json();
When using
curl in a shell, wrap the full URL in quotes (or use curl -g) so query string characters are not interpreted by the shell.Response
{
"status": true,
"statusCode": 200,
"message": "Transfer fee calculated successfully",
"data": {
"amount": 50000,
"currency": "NGN",
"feeAmount": 500,
"total": 50500
}
}
| Field | Description |
|---|---|
data.amount | The amount you passed in the query (NGN) |
data.currency | Always NGN for fiat payout fee quotes |
data.feeAmount | The fee charged for the payout |
data.total | amount + feeAmount (total debited including fee) |
⌘I

