List account balances
curl --request GET \
--url https://core.quidkey.com/api/v1/balances \
--header 'Authorization: Bearer <token>'import requests
url = "https://core.quidkey.com/api/v1/balances"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://core.quidkey.com/api/v1/balances', 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://core.quidkey.com/api/v1/balances",
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: Bearer <token>"
],
]);
$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://core.quidkey.com/api/v1/balances"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://core.quidkey.com/api/v1/balances")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.quidkey.com/api/v1/balances")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"currency": "GBP",
"roles": [
"refund"
],
"balance": "1234.56"
},
{
"id": "550e8400-e29b-41d4-a716-446655440001",
"currency": "EUR",
"roles": [
"refund"
],
"balance": null
}
]
}{
"success": true,
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"metadata": {
"errors": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}
}{
"success": true,
"error": {
"code": "INVALID_INPUT",
"message": "<string>"
}
}{
"success": true,
"error": {
"code": "FORBIDDEN_CREATE",
"message": "<string>"
}
}{
"success": true,
"error": {
"code": "MERCHANT_NOT_FOUND",
"message": "<string>"
}
}Balances
List account balances
List live account balances for a merchant, one entry per account and currency. The account with the refund role holds the funds available for refunds. Omit merchant_id when calling with merchant credentials (resolved from the token); partner and admin callers must supply it.
GET
/
api
/
v1
/
balances
List account balances
curl --request GET \
--url https://core.quidkey.com/api/v1/balances \
--header 'Authorization: Bearer <token>'import requests
url = "https://core.quidkey.com/api/v1/balances"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://core.quidkey.com/api/v1/balances', 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://core.quidkey.com/api/v1/balances",
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: Bearer <token>"
],
]);
$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://core.quidkey.com/api/v1/balances"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://core.quidkey.com/api/v1/balances")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.quidkey.com/api/v1/balances")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"currency": "GBP",
"roles": [
"refund"
],
"balance": "1234.56"
},
{
"id": "550e8400-e29b-41d4-a716-446655440001",
"currency": "EUR",
"roles": [
"refund"
],
"balance": null
}
]
}{
"success": true,
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"metadata": {
"errors": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}
}{
"success": true,
"error": {
"code": "INVALID_INPUT",
"message": "<string>"
}
}{
"success": true,
"error": {
"code": "FORBIDDEN_CREATE",
"message": "<string>"
}
}{
"success": true,
"error": {
"code": "MERCHANT_NOT_FOUND",
"message": "<string>"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Merchant to read balances for. Omit when calling with merchant credentials; required for partner and admin callers.
⌘I