Skip to main content
POST
Create a booking

Authorizations

Authorization
string
header
required

Organization-scoped bearer credential: a customer API key (1club_sk_live_...) or an MCP OAuth access token.

Headers

Idempotency-Key
string

Retry-safe key; a repeat of the same request replays the first response instead of creating a second booking

Maximum string length: 255

Body

application/json
startTime
string<date-time>
required
endTime
string<date-time>
required
payment
object
required
areaId
integer

Area id (from GET /v1/platform/areas). Required unless instructorId is sent.

clubId
integer

Club (from GET /v1/platform/clubs) for a booking with no area whose instructor works across clubs. Optional for a single-club organization. With an area, or an instructor tied to one club, the booking is placed there and a different clubId is refused with CLUB_MISMATCH; one that is not the organization's is refused with CLUB_NOT_FOUND.

contactId
integer

Existing contact to book for (from GET /v1/platform/contacts). Mutually exclusive with customer.

customer
object

Inline find-or-create. Matched to a contact by email and created if new. Over an API key the email can be left out: send a firstName or lastName, and the customer is the contact your key already created for the same name and phone (the oldest, if several), or a new one with that name. A staff connection must send an email (CUSTOMER_EMAIL_REQUIRED). Mutually exclusive with contactId.

instructorId
integer

Instructor leading the session (from GET /v1/platform/instructors), or the whole booking when no areaId is sent. Must be bookable for one-on-one sessions.

instructorIds
integer[]

Every instructor on the session when two or more coach it together, all on the same level. Each one's rate is added to the price as a charge of its own. Needs an areaId and cannot be combined with recurrence. instructorId is not needed with it.

Required array length: 2 - 8 elements
instructorLocationId
integer

Where a session with an instructor and no area happens, for an instructor who works at several places: one of the instructor's current locations (from GET /v1/platform/instructors/{id}). Left out, an instructor with exactly one place is booked there. Refused with INSTRUCTOR_LOCATION_NOT_FOUND when it is not a current location of that instructor, and with INSTRUCTOR_LOCATION_NOT_APPLICABLE alongside an areaId or without an instructorId.

serviceAddress
string

The client's address, for a session at an instructorLocationId of kind mobile (the instructor goes to the client): required there (SERVICE_ADDRESS_REQUIRED), and refused without an instructorLocationId.

Maximum string length: 500
channel
string

Optional channel label, stored for attribution

notes
string
notifyCustomer
boolean

Tell the customer their booking is confirmed - email plus the in-app, WhatsApp and SMS notification, and the payment receipt for a paid booking. Off by default for an API key, since the calling system normally sends its own confirmation; on by default over an OAuth connection, where a staff member is booking through an assistant and their member expects to hear from the club. The club's own staff alerts are separate: see alertStaff.

alertStaff
boolean

Alert the club's staff to this booking (their User Bookings notification). On by default; pass false for the club's own writes, such as importing bookings or syncing them from another system, so staff are not alerted once per booking.

recurrence
object

Make the booking recur for the customer, starting at startTime (so there is no start date here). daysOfWeek is required for a weekly pattern, and a day repeated in it counts once. Needs payment.status: unpaid, and is not accepted from an API key (see the description).

Response

Booking created - for a recurring booking, its first session, with recurrenceId and occurrences

A booking created through the platform API. Recorded with a booking transaction so it counts for revenue, marked paid (settled against a payment method named after the caller's API key, so the club can reconcile what each partner collected) or unpaid (outstanding) per the caller. Collection stays with the caller; what it collected and what it gave back on cancellation are reported in payment.

bookingId
integer

1club booking id

bookingUuid
string<uuid>

Stable unguessable identifier. Prefer this over bookingId when storing a reference.

status
string

Booking status (e.g. confirmed, cancelled)

areaId
integer | null

Area id

classId
integer | null

The class occurrence this booking attends, when it is a class booking. Every attendee holds their own booking row against the same classId, and classes rows are per-occurrence - so this is what tells two classes running in the same hour apart. Join it against GET /v1/platform/classes, or read the staff roster with GET /v1/platform/classes/{id}/bookings.

eventId
integer | null

The event this booking attends, when it is an event booking. Read the attendee list with GET /v1/platform/events/{id}/bookings.

eventTicketId
integer | null

The event ticket the seat was sold on, when the event sells tickets

orderId
integer | null

The order the booking was sold on: one per sale, holding the customer's seat and any guests'. Every class enrolment and event registration made through this API has one; null for a booking sold on none (a court or coach booked through POST /v1/platform/bookings).

seatBookingIds
integer[]

Every seat the sale holds, the customer's own first. Only on the answer to a seat sale (POST /v1/platform/classes/{id}/bookings, POST /v1/platform/events/{id}/bookings); the guests' seats carry no contact, and the class's or the event's roster lists them all.

recurrenceId
integer

The series this booking opened. Only on the answer to POST /v1/platform/bookings with a recurrence.

occurrences
object[]

Every session the series booked, this one first, in date order. Only alongside recurrenceId. A date whose court or coach was taken or closed is skipped, so this is what was actually booked.

maxPlayers
integer | null

How many players the booking takes, the organizer included, when it differs from the area type's defaultMaxPlayers: 2 on a court booked for singles (area types with allowsSingles). null means the area type's own limit. Adding a player past it is refused.

instructorId
integer | null

Instructor leading the session, when one is attached

contactId
integer | null

Contact the booking is for

startTime
string<date-time>
endTime
string<date-time>
entranceMethod
enum<string> | null

How the booking is paid for: membership when a pass covers it, direct_payment, or external_program; null for a booking never routed. Change it with POST /v1/platform/bookings/{id}/entrance-method.

Available options:
membership,
direct_payment,
external_program,
null
membershipId
integer | null

The membership or pass the booking is on, when entranceMethod is membership.

externalProgramId
integer | null

The external program entitled to the booking, when entranceMethod is external_program.

customer
object | null

The booking's customer, identical to what GET /v1/platform/contacts/{id} returns. Present only when the request passes include=customer, which additionally requires the contacts:read scope; null when the booking has no contact. Use it to import a window of bookings without a contact lookup per row.

money
object

What the booking costs and how it was paid. Present only with include=money, which additionally requires the transactions:read scope. billed is always paid + outstanding, on the same basis as the admin's Booking audit: tax-inclusive, net of refunds, so a cancelled booking bills only the Cancellation Charge it kept.

cancellation
object

The cancellation terms stamped on the booking and how it was cancelled. Present only with include=cancellation.

payment
object
promotion
object | null

The promotion taken off the booking's price, on the answer to a create or an edit that applied one. A booking made over an OAuth connection (a staff member) gets the auto-apply discount its customer qualifies for - a standing rate for a tag, for example - as the admin calendar applies it; one made with an API key is priced by the caller. On an edit that named promotion, the discount the booking carries now (null once taken off).