Get reserved amounts by transaction type
curl --request GET \
--url https://{host}/bonus/v1/accounts/{accountId}/balancesByTransactionType \
--header 'Authorization: <api-key>'import requests
url = "https://{host}/bonus/v1/accounts/{accountId}/balancesByTransactionType"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://{host}/bonus/v1/accounts/{accountId}/balancesByTransactionType', 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://{host}/bonus/v1/accounts/{accountId}/balancesByTransactionType",
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>"
],
]);
$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://{host}/bonus/v1/accounts/{accountId}/balancesByTransactionType"
req, _ := http.NewRequest("GET", url, nil)
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://{host}/bonus/v1/accounts/{accountId}/balancesByTransactionType")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/bonus/v1/accounts/{accountId}/balancesByTransactionType")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"balances": [
{
"transactionType": "Payment",
"incomingReservedAmount": 0,
"outgoingReservedAmount": 25.5
},
{
"transactionType": "CampaignBonus",
"incomingReservedAmount": 150,
"outgoingReservedAmount": 0
}
]
}{
"name": "<string>",
"message": "<string>",
"details": null
}{
"name": "<string>",
"message": "<string>",
"details": null
}Get reserved amounts by transaction type
Your backend calls this to see how much bonus on an account is tied up in transactions that are still waiting,
split by transaction type: bonus on its way in, reserved until it is captured, and bonus on its way out,
reserved for payments and other deductions. None of it can be spent. The spendable balance is availableBalance
on GET /v1/members/{memberId}/accounts.
The amounts are as they are booked, without the account type’s conversion rate. A transaction type is listed once the account has a transaction of that type, with zeros when none of them is waiting.
GET
/
v1
/
accounts
/
{accountId}
/
balancesByTransactionType
Get reserved amounts by transaction type
curl --request GET \
--url https://{host}/bonus/v1/accounts/{accountId}/balancesByTransactionType \
--header 'Authorization: <api-key>'import requests
url = "https://{host}/bonus/v1/accounts/{accountId}/balancesByTransactionType"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://{host}/bonus/v1/accounts/{accountId}/balancesByTransactionType', 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://{host}/bonus/v1/accounts/{accountId}/balancesByTransactionType",
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>"
],
]);
$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://{host}/bonus/v1/accounts/{accountId}/balancesByTransactionType"
req, _ := http.NewRequest("GET", url, nil)
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://{host}/bonus/v1/accounts/{accountId}/balancesByTransactionType")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/bonus/v1/accounts/{accountId}/balancesByTransactionType")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"balances": [
{
"transactionType": "Payment",
"incomingReservedAmount": 0,
"outgoingReservedAmount": 25.5
},
{
"transactionType": "CampaignBonus",
"incomingReservedAmount": 150,
"outgoingReservedAmount": 0
}
]
}{
"name": "<string>",
"message": "<string>",
"details": null
}{
"name": "<string>",
"message": "<string>",
"details": null
}Authorizations
Path Parameters
Query Parameters
Response
The reserved amounts for each transaction type. balances is empty when the account has no transactions of the types asked for.
Last modified on August 10, 2026