Get a customer's bonus statistics
curl --request GET \
--url https://{host}/bonus/v1/members/{memberId}/statistics \
--header 'Authorization: <api-key>'import requests
url = "https://{host}/bonus/v1/members/{memberId}/statistics"
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}/statistics', 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}/statistics",
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}/statistics"
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}/statistics")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/bonus/v1/members/{memberId}/statistics")
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{
"byType": [
{
"bonusType": "CampaignBonus",
"bonusTypeDisplayName": "Campaign bonus",
"percentage": 75,
"amount": {
"currency": "DKK",
"value": 450
}
},
{
"bonusType": "SignUpBonus",
"bonusTypeDisplayName": "Sign-up bonus",
"percentage": 25,
"amount": {
"currency": "DKK",
"value": 150
}
}
],
"byMonth": [
{
"date": "2026-09-01T00:00:00Z",
"percentage": 50,
"amount": {
"currency": "DKK",
"value": 150
}
},
{
"date": "2026-10-01T00:00:00Z",
"percentage": 100,
"amount": {
"currency": "DKK",
"value": 300
}
},
{
"date": "2026-11-01T00:00:00Z",
"percentage": 50,
"amount": {
"currency": "DKK",
"value": 150
}
}
],
"totalAmount": {
"currency": "DKK",
"value": 600
}
}{
"name": "<string>",
"message": "<string>",
"details": null
}{
"name": "<string>",
"message": "<string>",
"details": null
}Get a customer's bonus statistics
Your backend or the app calls this to show a customer how much bonus they earned over the last twelve months: by type of bonus and month by month, with the percentages a chart needs. It reads the customer’s active account and counts final transactions of the bonus types your environment includes in statistics.
The period is the current month and the eleven before it, in your environment’s time zone. From the first month that has bonus on, a month without any is returned with zero.
GET
/
v1
/
members
/
{memberId}
/
statistics
Get a customer's bonus statistics
curl --request GET \
--url https://{host}/bonus/v1/members/{memberId}/statistics \
--header 'Authorization: <api-key>'import requests
url = "https://{host}/bonus/v1/members/{memberId}/statistics"
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}/statistics', 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}/statistics",
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}/statistics"
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}/statistics")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/bonus/v1/members/{memberId}/statistics")
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{
"byType": [
{
"bonusType": "CampaignBonus",
"bonusTypeDisplayName": "Campaign bonus",
"percentage": 75,
"amount": {
"currency": "DKK",
"value": 450
}
},
{
"bonusType": "SignUpBonus",
"bonusTypeDisplayName": "Sign-up bonus",
"percentage": 25,
"amount": {
"currency": "DKK",
"value": 150
}
}
],
"byMonth": [
{
"date": "2026-09-01T00:00:00Z",
"percentage": 50,
"amount": {
"currency": "DKK",
"value": 150
}
},
{
"date": "2026-10-01T00:00:00Z",
"percentage": 100,
"amount": {
"currency": "DKK",
"value": 300
}
},
{
"date": "2026-11-01T00:00:00Z",
"percentage": 50,
"amount": {
"currency": "DKK",
"value": 150
}
}
],
"totalAmount": {
"currency": "DKK",
"value": 600
}
}{
"name": "<string>",
"message": "<string>",
"details": null
}{
"name": "<string>",
"message": "<string>",
"details": null
}Authorizations
Path Parameters
Response
The statistics. byType and byMonth are empty when the account has no bonus in the period.
The bonus on a customer's account over the last twelve months.
Last modified on August 10, 2026