curl --request GET \
--url https://api.1club.ai/v1/platform/bookings \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.1club.ai/v1/platform/bookings"
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/bookings', 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/bookings",
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/bookings"
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/bookings")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.1club.ai/v1/platform/bookings")
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": [
{
"bookingId": 123,
"bookingUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"areaId": 123,
"classId": 123,
"eventId": 123,
"eventTicketId": 123,
"orderId": 123,
"seatBookingIds": [
123
],
"maxPlayers": 123,
"instructorId": 123,
"contactId": 123,
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"customer": {
"id": 123,
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"phone": "<string>",
"type": "<string>",
"pipelineStageId": 123,
"pipelineLostReason": "price",
"pipelineLostNote": "<string>",
"sourceId": 123,
"assignedToId": 123,
"createdAt": "2023-11-07T05:31:56Z"
},
"money": {
"billed": 123,
"billedExTax": 123,
"paid": 123,
"outstanding": 123,
"paymentState": "<string>",
"paymentStatus": "<string>",
"charges": [
{
"transactionId": 123,
"transactionType": "<string>",
"payerContactId": 123,
"date": "2023-11-07T05:31:56Z",
"paymentStatus": "<string>",
"amount": 123,
"paidAmount": 123,
"refundedAmount": 123,
"outstandingAmount": 123,
"invoiceIds": [
123
],
"orderId": 123
}
],
"credits": [
{
"transactionId": 123,
"chargeTransactionId": 123,
"amount": 123,
"paymentStatus": "<string>",
"date": "2023-11-07T05:31:56Z"
}
],
"payments": [
{
"paymentId": 123,
"amount": 123,
"status": "<string>",
"method": "<string>",
"source": "<string>",
"reference": "<string>",
"paidAt": "2023-11-07T05:31:56Z",
"transactionIds": [
123
]
}
],
"refunds": [
{
"refundId": 123,
"transactionId": 123,
"paymentId": 123,
"amount": 123,
"destination": "stripe",
"reason": "<string>",
"refundedAt": "2023-11-07T05:31:56Z"
}
]
},
"cancellation": {
"terms": {
"acceptedAt": "2023-11-07T05:31:56Z",
"rules": [
{
"hoursInAdvance": 123,
"refundPercentage": 123,
"description": "<string>"
}
],
"deadlines": [
{
"until": "2023-11-07T05:31:56Z",
"refundPercentage": 123
}
],
"freeCancellationUntil": "2023-11-07T05:31:56Z",
"cancellationCutoffAt": "2023-11-07T05:31:56Z",
"fullyCovered": true,
"collectsFromWallet": true,
"waiver": {
"at": "2023-11-07T05:31:56Z",
"byUserId": 123,
"reason": "<string>"
}
},
"cancelled": {
"at": "2023-11-07T05:31:56Z",
"by": {
"userId": 123,
"name": "<string>"
},
"reason": "<string>",
"noticeHours": 123,
"refundPercentage": 123,
"refundAmount": 123,
"policyWaived": true,
"notes": "<string>"
}
},
"payment": {
"status": "paid",
"amount": 123,
"paidAmount": 123,
"refundedAmount": 123,
"reference": "<string>",
"fee": 123
},
"clubId": 123,
"source": "<string>",
"notes": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"total": 123,
"limit": 123,
"offset": 123
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}List bookings
Returns bookings that overlap the requested window - including one that started before from and is still running - ordered by start time. Each bound is an ISO date-time, or a bare YYYY-MM-DD read as midnight UTC. When from/to are omitted the window defaults to the next 7 days, and passing one derives the other.
A single request may span at most 93 days. To cover a longer range, walk it in consecutive windows of 93 days or less, paging each window with limit/offset against the total it reports. A booking running across the boundary between two windows is returned by both, so de-duplicate by id when combining them. Ordering is stable (startTime, then id), so paging is well defined for a window that is not being written to; bookings created or cancelled mid-walk can still shift rows across page boundaries.
Bookings from every channel are returned, each tagged with source. That is deliberate: a caller reconciling its own writes has to be able to see member- and staff-created bookings to know whether a slot was already taken. Whether the writes (cancel, add/remove participant) reach those bookings too depends on the credential: an API key may only mutate the bookings it created (source: api), while a staff member acting through an authorized 1club assistant may mutate any of the organization’s.
A class booking carries the occurrence it attends as classId. Every attendee of a class holds their own booking row against the same classId, and classes rows are per-occurrence, so that is what tells two groups running in the same hour apart - filter by it, or read the roster from the class side with GET /v1/platform/classes//bookings.
curl --request GET \
--url https://api.1club.ai/v1/platform/bookings \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.1club.ai/v1/platform/bookings"
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/bookings', 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/bookings",
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/bookings"
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/bookings")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.1club.ai/v1/platform/bookings")
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": [
{
"bookingId": 123,
"bookingUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"areaId": 123,
"classId": 123,
"eventId": 123,
"eventTicketId": 123,
"orderId": 123,
"seatBookingIds": [
123
],
"maxPlayers": 123,
"instructorId": 123,
"contactId": 123,
"startTime": "2023-11-07T05:31:56Z",
"endTime": "2023-11-07T05:31:56Z",
"customer": {
"id": 123,
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"phone": "<string>",
"type": "<string>",
"pipelineStageId": 123,
"pipelineLostReason": "price",
"pipelineLostNote": "<string>",
"sourceId": 123,
"assignedToId": 123,
"createdAt": "2023-11-07T05:31:56Z"
},
"money": {
"billed": 123,
"billedExTax": 123,
"paid": 123,
"outstanding": 123,
"paymentState": "<string>",
"paymentStatus": "<string>",
"charges": [
{
"transactionId": 123,
"transactionType": "<string>",
"payerContactId": 123,
"date": "2023-11-07T05:31:56Z",
"paymentStatus": "<string>",
"amount": 123,
"paidAmount": 123,
"refundedAmount": 123,
"outstandingAmount": 123,
"invoiceIds": [
123
],
"orderId": 123
}
],
"credits": [
{
"transactionId": 123,
"chargeTransactionId": 123,
"amount": 123,
"paymentStatus": "<string>",
"date": "2023-11-07T05:31:56Z"
}
],
"payments": [
{
"paymentId": 123,
"amount": 123,
"status": "<string>",
"method": "<string>",
"source": "<string>",
"reference": "<string>",
"paidAt": "2023-11-07T05:31:56Z",
"transactionIds": [
123
]
}
],
"refunds": [
{
"refundId": 123,
"transactionId": 123,
"paymentId": 123,
"amount": 123,
"destination": "stripe",
"reason": "<string>",
"refundedAt": "2023-11-07T05:31:56Z"
}
]
},
"cancellation": {
"terms": {
"acceptedAt": "2023-11-07T05:31:56Z",
"rules": [
{
"hoursInAdvance": 123,
"refundPercentage": 123,
"description": "<string>"
}
],
"deadlines": [
{
"until": "2023-11-07T05:31:56Z",
"refundPercentage": 123
}
],
"freeCancellationUntil": "2023-11-07T05:31:56Z",
"cancellationCutoffAt": "2023-11-07T05:31:56Z",
"fullyCovered": true,
"collectsFromWallet": true,
"waiver": {
"at": "2023-11-07T05:31:56Z",
"byUserId": 123,
"reason": "<string>"
}
},
"cancelled": {
"at": "2023-11-07T05:31:56Z",
"by": {
"userId": 123,
"name": "<string>"
},
"reason": "<string>",
"noticeHours": 123,
"refundPercentage": 123,
"refundAmount": 123,
"policyWaived": true,
"notes": "<string>"
}
},
"payment": {
"status": "paid",
"amount": 123,
"paidAmount": 123,
"refundedAmount": 123,
"reference": "<string>",
"fee": 123
},
"clubId": 123,
"source": "<string>",
"notes": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"total": 123,
"limit": 123,
"offset": 123
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}Authorizations
Query Parameters
Comma-separated expansions to embed on each booking, loaded once for the whole page. customer is the booking's customer, identical to what GET /v1/platform/contacts/{id} returns, and needs contacts:read. money is what the booking billed, what was paid and what is still outstanding, with the charges, cancellation credits, payments and refunds behind those figures, and needs transactions:read. cancellation is the cancellation terms stamped on the booking when it was accepted (with the deadlines they give, and until when it cancels for free) and, once cancelled, who cancelled it, when, why, with how much notice and at what refund. An expansion whose scope the key lacks is refused with 403 rather than left out.
^(customer|money|cancellation)(,(customer|money|cancellation))*$"customer,money,cancellation"
Was this page helpful?