Theme switcher

Create a booking

Header Parameters

Api-Keystring

Body Parameters

organization_idinteger

Branch (see "Branch resolution").

external_idstring Required

Booking identifier in the external service, unique per Api-Key.

Max length
64
Pattern
^[A-Za-z0-9_-]+$
res_object_idinteger Required

Court ID from availability.

good_idinteger Required

Service (duration option) ID from availability.

startstring Required

Start time from availability; must be on the court's grid.

pricenumber Required

Base price from availability; must match the current base price.

feenumber

Service fee charged by the external service, stored for reconciliation.

clientobject Required

The client is matched by phone within the club network; name, surname, email and sex are used only to create a new client.

notesstring

Comment visible to club staff.

Response

200
Object

Created booking (crud envelope) or a reserves error.

Response Attributes

oneOfoneof

Choose one of the following oneOf options

One Of:

successboolean
errorstring
error_codenumber | string
totalnumber
summaryobject
dataarray
401
Object

Session not established / invalid key.

Response Attributes

successboolean
dataarray
errorstring
session_expiredboolean
totalinteger
Was this section helpful?

POST

/

Select
1

Response

Was this section helpful?