Get active fees
curl --request GET \
--url https://api.yara.cash/v1/fees \
--header 'X-Yara-API-Key: <api-key>'import requests
url = "https://api.yara.cash/v1/fees"
headers = {"X-Yara-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Yara-API-Key': '<api-key>'}};
fetch('https://api.yara.cash/v1/fees', 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.yara.cash/v1/fees",
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-Yara-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.yara.cash/v1/fees"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Yara-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.yara.cash/v1/fees")
.header("X-Yara-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.yara.cash/v1/fees")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Yara-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"crypto": {
"deposit_fee_percentage": "0",
"withdrawal_fee": {
"arbitrum": "0.1",
"base": "0.1",
"bitcoin": "0.1",
"bsc": "0.1",
"celo": "0.1",
"ethereum": "0.5",
"optimism": "0.1",
"polygon": "0.1",
"solana": "0.1",
"tron": "0.1"
}
},
"id": "b21df7bd-9b49-44f9-9eea-950536b68f81",
"ngn": {
"deposit_fee_cap": "0",
"deposit_fee_percentage": "0",
"withdrawal_fee": "100"
},
"status": "ACTIVE",
"usd_bank": {
"deposit_fee_cap": "0",
"deposit_fee_percentage": "0.25",
"withdrawal_fee_percentage": "0.4"
}
}
}{
"error": {
"code": "validation_error",
"message": "invalid JSON body"
}
}Reference data
Get active fees
Returns the active merchant fee schedule.
GET
/
v1
/
fees
Get active fees
curl --request GET \
--url https://api.yara.cash/v1/fees \
--header 'X-Yara-API-Key: <api-key>'import requests
url = "https://api.yara.cash/v1/fees"
headers = {"X-Yara-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Yara-API-Key': '<api-key>'}};
fetch('https://api.yara.cash/v1/fees', 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.yara.cash/v1/fees",
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-Yara-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.yara.cash/v1/fees"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Yara-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.yara.cash/v1/fees")
.header("X-Yara-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.yara.cash/v1/fees")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Yara-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"crypto": {
"deposit_fee_percentage": "0",
"withdrawal_fee": {
"arbitrum": "0.1",
"base": "0.1",
"bitcoin": "0.1",
"bsc": "0.1",
"celo": "0.1",
"ethereum": "0.5",
"optimism": "0.1",
"polygon": "0.1",
"solana": "0.1",
"tron": "0.1"
}
},
"id": "b21df7bd-9b49-44f9-9eea-950536b68f81",
"ngn": {
"deposit_fee_cap": "0",
"deposit_fee_percentage": "0",
"withdrawal_fee": "100"
},
"status": "ACTIVE",
"usd_bank": {
"deposit_fee_cap": "0",
"deposit_fee_percentage": "0.25",
"withdrawal_fee_percentage": "0.4"
}
}
}{
"error": {
"code": "validation_error",
"message": "invalid JSON body"
}
}⌘I