Get a customer's accounts
curl --request GET \
--url https://{host}/bonus/v1/members/{memberId}/accounts \
--header 'Authorization: <api-key>'import requests
url = "https://{host}/bonus/v1/members/{memberId}/accounts"
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/members/{memberId}/accounts', 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/members/{memberId}/accounts",
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/members/{memberId}/accounts"
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/members/{memberId}/accounts")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/bonus/v1/members/{memberId}/accounts")
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[
{
"id": 48213,
"isActive": true,
"isAllowedToSpend": true,
"type": "Default",
"conversionRate": 1,
"availableBalance": 1250,
"reservedBalance": 150,
"expiringBalance": {
"header": "Your bonus is valid 3 years from the month you earned it.",
"expirationDate": "2026-11-30T23:59:59Z",
"amount": {
"currency": "DKK",
"value": 40
},
"frequency": {
"type": "Month",
"value": 1
}
}
}
]{
"name": "<string>",
"message": "<string>",
"details": null
}{
"name": "<string>",
"message": "<string>",
"details": null
}Get a customer's accounts
Your backend, the POS or the app calls this to find the accounts a customer holds bonus on and to show or check
a balance. It returns every account the customer is or was linked to; isActive says which of them can be used
now.
Balances are calculated only when you ask for them. includeBalance=true adds the available and the reserved
balance, and includeExpiringBalance=true adds the bonus that expires next, where your environment expires
bonus. All of them are multiplied by the account type’s conversionRate.
GET
/
v1
/
members
/
{memberId}
/
accounts
Get a customer's accounts
curl --request GET \
--url https://{host}/bonus/v1/members/{memberId}/accounts \
--header 'Authorization: <api-key>'import requests
url = "https://{host}/bonus/v1/members/{memberId}/accounts"
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/members/{memberId}/accounts', 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/members/{memberId}/accounts",
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/members/{memberId}/accounts"
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/members/{memberId}/accounts")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/bonus/v1/members/{memberId}/accounts")
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[
{
"id": 48213,
"isActive": true,
"isAllowedToSpend": true,
"type": "Default",
"conversionRate": 1,
"availableBalance": 1250,
"reservedBalance": 150,
"expiringBalance": {
"header": "Your bonus is valid 3 years from the month you earned it.",
"expirationDate": "2026-11-30T23:59:59Z",
"amount": {
"currency": "DKK",
"value": 40
},
"frequency": {
"type": "Month",
"value": 1
}
}
}
]{
"name": "<string>",
"message": "<string>",
"details": null
}{
"name": "<string>",
"message": "<string>",
"details": null
}Authorizations
Path Parameters
Query Parameters
Response
The customer's accounts. The list is empty when the customer has no account, or none that matches.
Last modified on August 10, 2026