Create a booking
Changed onBooks a slot on an event type. Free event types confirm immediately; paid event types return a pending booking whose checkout_url(via the linked checkout) must be paid to confirm.
Request
- Base URLhttps://api.crevio.co/v1
- AuthAPI key in header Authorization
Headers
Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.
Request body
ISO 8601 date-time, from the slots endpoint. Without an offset it is read in time_zone. Impossible dates return invalid_start_time.
The attendee's IANA time zone, for their confirmation and reminders. Unknown zones return invalid_time_zone.
Answers to the event type's intake form (when one is attached). Stored as a FormSubmission.
For paid event types: which price variant to charge. Defaults to the experience's first paid variant; one this event type doesn't sell is refused with price_variant_unavailable. The response includes a checkout with a purchase_url — redirect the contact there to pay; the booking confirms once paid.
Example request
{
"event_type_id": "etype_abc123",
"time_zone": "America/New_York",
"price_variant_id": "price_abc123"
}Response
The created booking
ID by default, full object when expanded
ID by default, full object when expanded
Changes
- info
added the required property
event_type/oneOf[#/components/schemas/EventType]/price_variants/items/cross_sellsto the response with the status
- info
- info
added the required property
checkout/oneOf[#/components/schemas/Checkout]/success_urlto the response with the status
- info