Skip to main content
POST
Create a booking

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

The booking to create

booking_end
string<date-time>
required
booking_start
string<date-time>
required
communication_method
string
required
guest_count
integer
required
Required range: x >= 1
status
enum<string>
required
Available options:
confirmed,
cancelled,
no_show,
completed
user_id
string<uuid>
required
venue_booking_platform_id
string<uuid>
required
assigned_to
string<uuid> | null
associated_user_ids
string<uuid>[]
budget_max
integer | null
Required range: x >= 0
budget_min
integer | null
Required range: x >= 0
cancellation_reason
string | null
cancelled_at
string<date-time> | null
changeover_minutes
integer | null
Required range: x >= 0
commission_rate
integer | null
Required range: x >= 0
confirmed_at
string<date-time> | null
is_corporate
boolean | null

Whether this is a corporate booking. Optional; leaving it out means personal.

is_event
boolean | null

Whether this is an event booking. Optional; leaving it out means it is not.

minimum_spend
integer | null
Required range: x >= 0
name
string | null
notes
object[]

Notes to add to the booking as it is created. Optional.

notify_customer
boolean | null
pre_changeover_minutes
integer | null

Set-up time in minutes kept free before booking_start. Optional; it is only ever set by hand, never worked out.

Required range: x >= 0
source
string | null
Maximum string length: 50
table_count
integer | null
table_ids
string[]

Public ids of the pool tables to assign to the booking, such as "PHSGBLLS01". Optional.

Minimum array length: 1

Response

The booking that was created.

data
object

The payload. Left out when there is none.

message
string

Text that is safe to show a user. Left out when there is none.

status
enum<string>

success or error. A 410 for a session that has ended says ended instead.

Available options:
success,
error,
ended