Bookings

Create a booking

Changed on

Books 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.

post/bookings

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Headers

Idempotency-Key, string

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

object required
event_type_id, string required
start_time, string date-time required

ISO 8601 date-time, from the slots endpoint. Without an offset it is read in time_zone. Impossible dates return invalid_start_time.

time_zone, string

The attendee's IANA time zone, for their confirmation and reminders. Unknown zones return invalid_time_zone.

attendee, object required
intake_answers, object[]

Answers to the event type's intake form (when one is attached). Stored as a FormSubmission.

price_variant_id, string

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

Booking required
object, string required
id, string required
event_type_id, string required
contact_id, string nullable required
order_id, string nullable required
status, 'pending' | 'confirmed' | 'cancelled' | 'completed' | 'no_show' required
livemode, boolean required
time_zone, string required
attendee_name, string nullable required
attendee_email, string nullable required
attendee_phone, string nullable required
location_details, string nullable required
meet_url, string nullable required
cancel_reason, string nullable required
created_at, string date-time required
updated_at, string date-time required
intake_answers, object[] required
start_time, string date-time required
end_time, string date-time required
cancelled_at, string date-time nullable required
event_type, union

ID by default, full object when expanded

checkout, union

ID by default, full object when expanded

Changes

    • info

      added the required property event_type/oneOf[#/components/schemas/EventType]/price_variants/items/cross_sells to the response with the status

    • info

      added the required property checkout/oneOf[#/components/schemas/Checkout]/success_url to the response with the status