Zum Hauptinhalt springen
POST
Create an instant booking

Body

application/json
start_date
string<date-time>
erforderlich
end_date
string<date-time>
erforderlich
resource_id
string<uuid>
erforderlich
service_id
string<uuid>
erforderlich
add_ons
object[] | null

Add-ons selected for the booking. Mandatory add-ons apply without being selected. A booking that costs anything with them is refused with instant_booking_not_allowed; book it through the checkout instead.

booking_custom_entry_map
object | null

Answers to the service's booking forms as {custom_field_uuid: value}, validated like in the checkout. Answers to questions the form does not show are dropped. If the service requires customer or order details that only the checkout asks for, the request fails with instant_booking_requires_checkout_details.

customer_note
string | null

Note from the customer. Stored only if the service allows customer notes.

Maximum string length: 65535
allow_request
boolean | null

If true, a free booking on a resource that does not accept bookings automatically is created as a request (status requested) instead of being refused. Needs a service with meta.supports_instant_request. Without the flag such a booking is refused with invalid_instant_booking.

incognito
boolean | null

If true, hides the booker from the other members of their communities on this booking, like the community incognito mode.

recurring
object | null

Creates a recurring series with the same rule as the cart's add-booking request.

Antwort

200 - application/vnd.api+json

Created booking

The response is of type object.