curl --request GET \
--url https://api.mainnet.aptoslabs.com/decibel/api/v1/referrals/commissions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mainnet.aptoslabs.com/decibel/api/v1/referrals/commissions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mainnet.aptoslabs.com/decibel/api/v1/referrals/commissions', 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.mainnet.aptoslabs.com/decibel/api/v1/referrals/commissions",
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://api.mainnet.aptoslabs.com/decibel/api/v1/referrals/commissions"
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://api.mainnet.aptoslabs.com/decibel/api/v1/referrals/commissions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mainnet.aptoslabs.com/decibel/api/v1/referrals/commissions")
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{
"accrued_this_week_usd": 123,
"accrued_today_usd": 123,
"current_nuv_usd": 123,
"current_tier": "<string>",
"days": [
{
"accrued_usd": 123,
"basis_l1_usd": 123,
"basis_l2_usd": 123,
"date": "<string>",
"penalty_multiplier": 123,
"rate_l1": 123,
"rate_l2": 123,
"tier": "<string>"
}
],
"lifetime_accrued_usd": 123,
"meets_minimum": true,
"minimum_payout_usd": 123,
"mode": "<string>",
"nuv_window_days": 1,
"pending_effective_from": "<string>",
"pending_mode": "<string>",
"previous_week_campaign_id": 1,
"previous_week_status": "<string>",
"previous_week_usd": 123,
"progress_to_minimum": 123,
"tiers": [
{
"nuv_threshold_usd": 123,
"rate_l1": 123,
"rate_l2": 123,
"tier": "<string>"
}
],
"week_start_date": "<string>",
"weeks": [
{
"accrued_usd": 123,
"allocated_usd": 123,
"campaign_id": 1,
"minimum_usd": 123,
"reason": "<string>",
"status": "<string>",
"week_start_date": "<string>"
}
]
}Get an affiliate's accrued commission
What the affiliate has earned: today, since Monday, and over all time, plus a daily breakdown carrying the tier and any anti-farming penalty that was in force each day.
This is not what is claimable. Claimable commission is an on-chain campaign allocation and comes from the campaigns endpoints; this is the off-chain ledger of what is owed.
curl --request GET \
--url https://api.mainnet.aptoslabs.com/decibel/api/v1/referrals/commissions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mainnet.aptoslabs.com/decibel/api/v1/referrals/commissions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mainnet.aptoslabs.com/decibel/api/v1/referrals/commissions', 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.mainnet.aptoslabs.com/decibel/api/v1/referrals/commissions",
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://api.mainnet.aptoslabs.com/decibel/api/v1/referrals/commissions"
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://api.mainnet.aptoslabs.com/decibel/api/v1/referrals/commissions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mainnet.aptoslabs.com/decibel/api/v1/referrals/commissions")
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{
"accrued_this_week_usd": 123,
"accrued_today_usd": 123,
"current_nuv_usd": 123,
"current_tier": "<string>",
"days": [
{
"accrued_usd": 123,
"basis_l1_usd": 123,
"basis_l2_usd": 123,
"date": "<string>",
"penalty_multiplier": 123,
"rate_l1": 123,
"rate_l2": 123,
"tier": "<string>"
}
],
"lifetime_accrued_usd": 123,
"meets_minimum": true,
"minimum_payout_usd": 123,
"mode": "<string>",
"nuv_window_days": 1,
"pending_effective_from": "<string>",
"pending_mode": "<string>",
"previous_week_campaign_id": 1,
"previous_week_status": "<string>",
"previous_week_usd": 123,
"progress_to_minimum": 123,
"tiers": [
{
"nuv_threshold_usd": 123,
"rate_l1": 123,
"rate_l2": 123,
"tier": "<string>"
}
],
"week_start_date": "<string>",
"weeks": [
{
"accrued_usd": 123,
"allocated_usd": 123,
"campaign_id": 1,
"minimum_usd": 123,
"reason": "<string>",
"status": "<string>",
"week_start_date": "<string>"
}
]
}Authorizations
Bearer token from Geomi. See Authentication for setup instructions.
Query Parameters
Response
The affiliate's accrued commission
An affiliate's accrued commission: today, the running week, and lifetime.
Distinct from what is claimable, which lives on chain in campaign_claims. This
endpoint answers "what have I earned"; the chain answers "what can I take". Keeping them
apart is what makes "accrued but not yet swept" and "accrued but forfeited" answerable
without trusting either side alone.
points | usd: the reward mode in force today — the affiliate's most recent election
whose effective_from has already arrived. Read from the election ledger, not from the
latest accrual, so it flips the instant an election takes effect rather than lagging until
the next accrual is written. Absent history reads points, the status quo for every
affiliate today.
A recorded election that has not taken effect yet, or empty.
Published because mode alone cannot express it. An election lands on a future Monday, so
between signing it and that day the affiliate is still earning the old currency and the
ledger still stamps it — a screen reading only mode shows no trace of a decision that has
already been made, irreversibly. The affiliate concludes it failed and tries again.

