curl --request GET \
--url https://api.1club.ai/v1/platform/booking-policies \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.1club.ai/v1/platform/booking-policies"
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/booking-policies', 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/booking-policies",
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/booking-policies"
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/booking-policies")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.1club.ai/v1/platform/booking-policies")
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": [
{
"policyId": 123,
"name": "<string>",
"kind": "booking",
"clubIds": [
123
],
"validFor": {
"scopes": [
"classes"
],
"classTypes": [
123
],
"areaTypes": [
123
],
"instructorTypes": [
123
]
},
"eventIds": [
123
],
"audience": {
"memberTypes": [
"contact"
],
"tags": [
"<string>"
],
"membershipPlanIds": [
123
],
"membershipPlanCategoryIds": [
123
],
"pipelineStageIds": [
123
],
"sourceIds": [
123
]
},
"cancellationRules": [
{
"hoursInAdvance": 4380,
"refundPercentage": 50,
"description": "<string>"
}
],
"forcePayment": "none",
"chargeAdvanceDays": 182,
"minBookingSlotMinutes": 1,
"maxBookingSlotMinutes": 1,
"bookingDurationStepMinutes": 30,
"maxBookInAdvanceDays": 1,
"minBookingNoticeHours": 1,
"waiveNoticeWhenBooked": true,
"checkInRequired": true,
"autoCheckIn": true,
"allowAnonymousBookings": true,
"allowGuestBookings": true,
"allowWalkInCheckins": true,
"allowAnonymousCheckins": true,
"allowedProductCategoryIds": [
123
],
"waitlistClaimWindowMinutes": 1,
"upsellAvailablePlans": true,
"upsellPlanIds": [
123
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "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 booking policies
The organization’s booking policies, newest first. A policy is the rules a booking is held to: its cancellation terms (cancellationRules), when payment is taken (forcePayment), how far ahead and how late members may book, the slot lengths on offer, and the check-in rules.
Each policy is scoped on two axes that combine: WHAT it governs (validFor - classes, areas and/or instructors, optionally narrowed to types; empty means every booking) and WHO (audience - contact types, tags, plans held; null means everyone), and is narrowed to clubIds (empty means every club). When several apply, the most specific wins: a club-specific policy first, then what and who, then what, then who, then the unscoped default; a tie goes to the newest. To see which one governs a particular booking, use GET /v1/platform/booking-policies/effective.
A policy with kind: event is different: it decides only what an event ticket’s cancellation refunds, for the events in eventIds (empty means every event). A booking policy never governs a ticket.
curl --request GET \
--url https://api.1club.ai/v1/platform/booking-policies \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.1club.ai/v1/platform/booking-policies"
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/booking-policies', 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/booking-policies",
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/booking-policies"
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/booking-policies")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.1club.ai/v1/platform/booking-policies")
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": [
{
"policyId": 123,
"name": "<string>",
"kind": "booking",
"clubIds": [
123
],
"validFor": {
"scopes": [
"classes"
],
"classTypes": [
123
],
"areaTypes": [
123
],
"instructorTypes": [
123
]
},
"eventIds": [
123
],
"audience": {
"memberTypes": [
"contact"
],
"tags": [
"<string>"
],
"membershipPlanIds": [
123
],
"membershipPlanCategoryIds": [
123
],
"pipelineStageIds": [
123
],
"sourceIds": [
123
]
},
"cancellationRules": [
{
"hoursInAdvance": 4380,
"refundPercentage": 50,
"description": "<string>"
}
],
"forcePayment": "none",
"chargeAdvanceDays": 182,
"minBookingSlotMinutes": 1,
"maxBookingSlotMinutes": 1,
"bookingDurationStepMinutes": 30,
"maxBookInAdvanceDays": 1,
"minBookingNoticeHours": 1,
"waiveNoticeWhenBooked": true,
"checkInRequired": true,
"autoCheckIn": true,
"allowAnonymousBookings": true,
"allowGuestBookings": true,
"allowWalkInCheckins": true,
"allowAnonymousCheckins": true,
"allowedProductCategoryIds": [
123
],
"waitlistClaimWindowMinutes": 1,
"upsellAvailablePlans": true,
"upsellPlanIds": [
123
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "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
Organization-scoped bearer credential: a customer API key (1club_sk_live_...) or an MCP OAuth access token.
Query Parameters
Only policies that can apply at this club - the ones linked to it, plus those linked to no club
1 <= x <= 100x >= 0Was this page helpful?