curl --request GET \
--url https://api.1club.ai/v1/platform/pay-ledger \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.1club.ai/v1/platform/pay-ledger"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.1club.ai/v1/platform/pay-ledger', 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.1club.ai/v1/platform/pay-ledger",
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.1club.ai/v1/platform/pay-ledger"
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.1club.ai/v1/platform/pay-ledger")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.1club.ai/v1/platform/pay-ledger")
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{
"data": [
{
"instructorId": 123,
"instructorName": "<string>",
"kind": "individual_booking",
"status": "earned",
"bookingId": 123,
"checkinId": 123,
"classId": 123,
"className": "<string>",
"classTypeId": 123,
"club": {
"id": 123,
"name": "<string>"
},
"area": {
"id": 123,
"name": "<string>"
},
"entranceMethod": "direct_payment",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"revenueBase": 123,
"components": [
{
"type": "<string>",
"label": "<string>",
"amount": 123,
"rate": 123,
"baseAmount": 123
}
],
"totalAmount": 123
}
],
"total": 123,
"limit": 123,
"offset": 123,
"totals": {
"earned": 123,
"pending": 123,
"byInstructor": [
{
"instructorId": 123,
"instructorName": "<string>",
"earned": 123,
"pending": 123,
"lines": 123
}
]
}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}List what coaches earned
Returns the pay ledger for a period: one line per unit of work a coach is paid for (a private session, a class, an attendee of a class), with what it paid under their pay rate policy and how. A pay rate policy is the rule; this is the money it produced.
The period is whole days on the organization’s clock, both included, at most 93 days, and a line is dated by when the work happened. Work the paid-booking gate is still holding back is pending, at what it will pay once the member settles; totals keeps it apart from what is earned, and covers every page.
Needs transactions:read (the lines are per booking and per coach, which the totals-only analytics:read does not cover) and staff:read (it is what each member of staff is paid).
curl --request GET \
--url https://api.1club.ai/v1/platform/pay-ledger \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.1club.ai/v1/platform/pay-ledger"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.1club.ai/v1/platform/pay-ledger', 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.1club.ai/v1/platform/pay-ledger",
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.1club.ai/v1/platform/pay-ledger"
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.1club.ai/v1/platform/pay-ledger")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.1club.ai/v1/platform/pay-ledger")
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{
"data": [
{
"instructorId": 123,
"instructorName": "<string>",
"kind": "individual_booking",
"status": "earned",
"bookingId": 123,
"checkinId": 123,
"classId": 123,
"className": "<string>",
"classTypeId": 123,
"club": {
"id": 123,
"name": "<string>"
},
"area": {
"id": 123,
"name": "<string>"
},
"entranceMethod": "direct_payment",
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"revenueBase": 123,
"components": [
{
"type": "<string>",
"label": "<string>",
"amount": 123,
"rate": 123,
"baseAmount": 123
}
],
"totalAmount": 123
}
],
"total": 123,
"limit": 123,
"offset": 123,
"totals": {
"earned": 123,
"pending": 123,
"byInstructor": [
{
"instructorId": 123,
"instructorName": "<string>",
"earned": 123,
"pending": 123,
"lines": 123
}
]
}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}Authorizations
Organization-scoped bearer credential: a customer API key (1club_sk_live_...) or an MCP OAuth access token.
Query Parameters
First day of the period, e.g. 2026-09-01
Last day of the period, included, e.g. 2026-09-30
Only earned lines, or only pending ones. Totals are unaffected.
earned, pending 1 <= x <= 100x >= 0Was this page helpful?