Skip to main content
GET
/
fees
/
balance
Get Fee Balance
curl --request GET \
  --url https://api.coinvoyage.io/v3/fees/balance \
  --header 'Authorization: <api-key>' \
  --header 'Authorization-Signature: <authorization-signature>'
import requests

url = "https://api.coinvoyage.io/v3/fees/balance"

headers = {
"Authorization-Signature": "<authorization-signature>",
"Authorization": "<api-key>"
}

response = requests.get(url, headers=headers)

print(response.text)
const options = {
method: 'GET',
headers: {
'Authorization-Signature': '<authorization-signature>',
Authorization: '<api-key>'
}
};

fetch('https://api.coinvoyage.io/v3/fees/balance', 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.coinvoyage.io/v3/fees/balance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Authorization-Signature: <authorization-signature>"
],
]);

$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.coinvoyage.io/v3/fees/balance"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization-Signature", "<authorization-signature>")
req.Header.Add("Authorization", "<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.coinvoyage.io/v3/fees/balance")
.header("Authorization-Signature", "<authorization-signature>")
.header("Authorization", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.coinvoyage.io/v3/fees/balance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization-Signature"] = '<authorization-signature>'
request["Authorization"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "fee_balance": {
    "amount_cents": 150,
    "fiat": "USD"
  }
}
{
"code": 400,
"error": "Bad Request",
"message": "Invalid request parameters"
}
{
"code": 400,
"error": "Bad Request",
"message": "Invalid request parameters"
}

Authorizations

Authorization
string
header
required

HMAC-SHA256 signature. See the Authorization-Signature header parameter on signed operations.

Headers

Authorization-Signature
string
required

HMAC-SHA256 signature header: 'APIKey=<api_key>,signature=,timestamp=<unix_timestamp>'. The signature is computed over METHOD + path (with the /v3 prefix stripped) + timestamp.

Response

Claimable fee balance

fee_balance
object
required
Example:
{ "amount_cents": 150, "fiat": "USD" }