curl --request GET \
--url https://api.1club.ai/v1/platform/reports/cancellations \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.1club.ai/v1/platform/reports/cancellations"
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/reports/cancellations', 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/reports/cancellations",
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/reports/cancellations"
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/reports/cancellations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.1club.ai/v1/platform/reports/cancellations")
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{
"period": {
"from": "2023-12-25",
"to": "2023-12-25"
},
"timezone": "<string>",
"totals": {
"bookings": 123,
"cancelled": 123,
"cancellationRate": 123,
"late": 123,
"lateRate": 123,
"noShows": 123,
"noShowRate": 123,
"chargesKept": 123,
"stillOwed": 123,
"refunds": 123
},
"lateWindows": [
{}
],
"byClassType": [
{
"key": "<string>",
"label": "<string>",
"labelKey": "<string>",
"weekday": 123,
"hour": 123,
"bookings": 123,
"cancelled": 123,
"cancellationRate": 123,
"late": 123,
"lateRate": 123,
"noShows": 123,
"noShowRate": 123,
"chargesKept": 123,
"stillOwed": 123,
"refunds": 123
}
],
"byArea": [
{
"key": "<string>",
"label": "<string>",
"labelKey": "<string>",
"weekday": 123,
"hour": 123,
"bookings": 123,
"cancelled": 123,
"cancellationRate": 123,
"late": 123,
"lateRate": 123,
"noShows": 123,
"noShowRate": 123,
"chargesKept": 123,
"stillOwed": 123,
"refunds": 123
}
],
"bySlot": [
{
"key": "<string>",
"label": "<string>",
"labelKey": "<string>",
"weekday": 123,
"hour": 123,
"bookings": 123,
"cancelled": 123,
"cancellationRate": 123,
"late": 123,
"lateRate": 123,
"noShows": 123,
"noShowRate": 123,
"chargesKept": 123,
"stillOwed": 123,
"refunds": 123
}
],
"rowsScope": "contacts:read",
"total": 123,
"limit": 123,
"offset": 123,
"rows": [
{
"contactId": 123,
"name": "<string>",
"email": "<string>",
"bookings": 123,
"cancelled": 123,
"cancellationRate": 123,
"late": 123,
"lateRate": 123,
"noShows": 123,
"noShowRate": 123,
"chargesKept": 123,
"stillOwed": 123,
"refunds": 123
}
]
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}Who cancels, how late, and where
The admin’s Bookings › Cancellations and no-shows report for a period: how many bookings were cancelled, how many late (with less notice than a full refund needs under the rules the booking was made on) and how many were no-shows (where a policy requires check-in), with the money kept, still owed and refunded, in total and by class type, area and time slot; and, as the rows, the customers who cancel most. A period may span at most 366 days.
Readable with analytics:read. The people need contacts:read as well: without it rows and total are null and the figures come alone, as get_members_report answers its lifecycle; rowsScope names the scope. Paged with limit and offset. Reports have their own limit of 20 requests a minute, on top of the platform’s.
curl --request GET \
--url https://api.1club.ai/v1/platform/reports/cancellations \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.1club.ai/v1/platform/reports/cancellations"
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/reports/cancellations', 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/reports/cancellations",
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/reports/cancellations"
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/reports/cancellations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.1club.ai/v1/platform/reports/cancellations")
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{
"period": {
"from": "2023-12-25",
"to": "2023-12-25"
},
"timezone": "<string>",
"totals": {
"bookings": 123,
"cancelled": 123,
"cancellationRate": 123,
"late": 123,
"lateRate": 123,
"noShows": 123,
"noShowRate": 123,
"chargesKept": 123,
"stillOwed": 123,
"refunds": 123
},
"lateWindows": [
{}
],
"byClassType": [
{
"key": "<string>",
"label": "<string>",
"labelKey": "<string>",
"weekday": 123,
"hour": 123,
"bookings": 123,
"cancelled": 123,
"cancellationRate": 123,
"late": 123,
"lateRate": 123,
"noShows": 123,
"noShowRate": 123,
"chargesKept": 123,
"stillOwed": 123,
"refunds": 123
}
],
"byArea": [
{
"key": "<string>",
"label": "<string>",
"labelKey": "<string>",
"weekday": 123,
"hour": 123,
"bookings": 123,
"cancelled": 123,
"cancellationRate": 123,
"late": 123,
"lateRate": 123,
"noShows": 123,
"noShowRate": 123,
"chargesKept": 123,
"stillOwed": 123,
"refunds": 123
}
],
"bySlot": [
{
"key": "<string>",
"label": "<string>",
"labelKey": "<string>",
"weekday": 123,
"hour": 123,
"bookings": 123,
"cancelled": 123,
"cancellationRate": 123,
"late": 123,
"lateRate": 123,
"noShows": 123,
"noShowRate": 123,
"chargesKept": 123,
"stillOwed": 123,
"refunds": 123
}
],
"rowsScope": "contacts:read",
"total": 123,
"limit": 123,
"offset": 123,
"rows": [
{
"contactId": 123,
"name": "<string>",
"email": "<string>",
"bookings": 123,
"cancelled": 123,
"cancellationRate": 123,
"late": 123,
"lateRate": 123,
"noShows": 123,
"noShowRate": 123,
"chargesKept": 123,
"stillOwed": 123,
"refunds": 123
}
]
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}Authorizations
Query Parameters
Response
The report, with a page of its people
Was this page helpful?