Try It Out
This API requires no authentication.
Code Samples
curl -X GET \
'https://upesipay.com/api/transaction_fees' \
-H 'Content-Type: application/json'
const url = 'https://upesipay.com/api/transaction_fees';
const options = {
method: 'GET',
headers: {
'Content-Type': 'application/json'
}
};
fetch(url, options)
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
const axios = require('axios');
const config = {
method: 'get',
url: 'https://upesipay.com/api/transaction_fees',
headers: {
'Content-Type': 'application/json'
}
};
axios(config)
.then(response => console.log(response.data))
.catch(error => console.error(error));
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://upesipay.com/api/transaction_fees',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
echo $response;
import requests
url = 'https://upesipay.com/api/transaction_fees'
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
print(response.json())
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;
var client = HttpClient.newHttpClient();
var request = HttpRequest.newBuilder()
.uri(URI.create('https://upesipay.com/api/transaction_fees'))
.header('Content-Type', 'application/json')
.GET)
.build;
var response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
package main
import (
"fmt"
"net/http"
"io"
)
req, _ := http.NewRequest("GET", "https://upesipay.com/api/transaction_fees", nil)
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
require 'net/http'
uri = URI('https://upesipay.com/api/transaction_fees')
request = Net::HTTP::Get.new(uri)
request['Content-Type'] = 'application/json'
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
response = http.request(request)
puts JSON.parse(response.body)
using System;
using System.Net.Http;
using System.Threading.Tasks;
class Program
{
static async Task Main()
{
var client = new HttpClient();
client.DefaultRequestHeaders.Add(\"Content-Type\", \"application/json\");
var response = await client.GetAsync(\"https://upesipay.com/api/transaction_fees\");
Console.WriteLine(await response.Content.ReadAsStringAsync());
{
}
import Foundation
let url = URL(string: \"https://upesipay.com/api/transaction_fees\")!
var request = URLRequest(url: url)
request.httpMethod = \"GET\"
request.setValue(\"application/json\", forHTTPHeaderField: \"Content-Type\")
let task = URLSession.shared.dataTask(with: request) { data, response, error in
if let data = data {
if let json = try? JSONSerialization.jsonObject(with: data) {
print(json)
}
}
}
task.resume()
import okhttp3.*
import java.io.IOException
val client = OkHttpClient()
val request = Request.Builder()
.url(\"https://upesipay.com/api/transaction_fees\")
.addHeader(\"Content-Type\", \"application/json\")
.get)
.build)
client.newCall(request).enqueue(object : Callback {
override fun onFailure(call: Call, e: IOException) {
e.printStackTrace()
}
override fun onResponse(call: Call, response: Response) {
println(response.body?.string())
}
})