curl --request GET \
--url https://api.1club.ai/v1/platform/reports/booking-audit \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.1club.ai/v1/platform/reports/booking-audit"
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/booking-audit', 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/booking-audit",
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/booking-audit"
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/booking-audit")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.1club.ai/v1/platform/reports/booking-audit")
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"
},
"summary": {
"totalBookings": 123,
"payableBookings": 123,
"totalBilled": 123,
"outstandingAmount": 123,
"unpaidCount": 123,
"paidCount": 123,
"coveredCount": 123,
"refundedCount": 123,
"cancelledCount": 123
},
"typeOptions": [
{
"category": "court",
"label": "<string>",
"labelKey": "<string>",
"value": "court|Padel"
}
],
"total": 123,
"limit": 123,
"offset": 123,
"rows": [
{
"id": 123,
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"status": "confirmed",
"type": "court",
"typeLabel": "<string>",
"typeLabelKey": "<string>",
"resourceName": "<string>",
"sport": "<string>",
"clubName": "<string>",
"contactId": 123,
"contact": {
"id": 123,
"name": "<string>",
"email": "<string>",
"profileImage": "<string>"
},
"bookedBy": "<string>",
"source": "<string>",
"marketingSource": "<string>",
"entranceMethod": "<string>",
"paymentState": "covered",
"amount": 123,
"paid": 123,
"outstanding": 123,
"paymentStatus": "<string>",
"paymentMethod": "<string>",
"paymentMethods": [
{
"name": "<string>",
"channel": "<string>",
"code": "<string>"
}
]
}
]
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}Every booking of a period and where its money stands
The admin’s Bookings › Booking audit as a list: every booking starting in the period, cancelled and no-show ones included, one row each, with what it bills, what was paid and what is still owed, and how. A booking covered by a membership or a programme is covered and never owes. The rows come still-owing first, then the most recent first; summary counts the whole period, before paymentState, type and status narrow the rows.
Days are the organization’s own. Holds the platform places for a class’s court and coach are no one’s booking and are left out; a seat is filed at its class’s club, as on every bookings report.
Readable with bookings:read. The amounts and how they were paid need transactions:read as well, and who the customer is contacts:read, as include=money and include=customer do on a booking: without them those fields are null, never absent. Paged with limit and offset. A period may span at most 366 days. 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/booking-audit \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.1club.ai/v1/platform/reports/booking-audit"
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/booking-audit', 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/booking-audit",
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/booking-audit"
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/booking-audit")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.1club.ai/v1/platform/reports/booking-audit")
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"
},
"summary": {
"totalBookings": 123,
"payableBookings": 123,
"totalBilled": 123,
"outstandingAmount": 123,
"unpaidCount": 123,
"paidCount": 123,
"coveredCount": 123,
"refundedCount": 123,
"cancelledCount": 123
},
"typeOptions": [
{
"category": "court",
"label": "<string>",
"labelKey": "<string>",
"value": "court|Padel"
}
],
"total": 123,
"limit": 123,
"offset": 123,
"rows": [
{
"id": 123,
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"status": "confirmed",
"type": "court",
"typeLabel": "<string>",
"typeLabelKey": "<string>",
"resourceName": "<string>",
"sport": "<string>",
"clubName": "<string>",
"contactId": 123,
"contact": {
"id": 123,
"name": "<string>",
"email": "<string>",
"profileImage": "<string>"
},
"bookedBy": "<string>",
"source": "<string>",
"marketingSource": "<string>",
"entranceMethod": "<string>",
"paymentState": "covered",
"amount": 123,
"paid": 123,
"outstanding": 123,
"paymentStatus": "<string>",
"paymentMethod": "<string>",
"paymentMethods": [
{
"name": "<string>",
"channel": "<string>",
"code": "<string>"
}
]
}
]
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}Authorizations
Query Parameters
Response
A page of the audit
Was this page helpful?