Skip to Content
Blackbell for builders
Skills

Set up booking

Load when setting up a new bookable service, room, class or event with its own form and calendar.

Follow rules for account selection, write keys and publication. For several services, batch repeated calls to each supported tool with one run_many per step when listed. Use individual calls otherwise. forms-and-booking

  1. Call get_settings for time zone, currency, languages and form defaults. Fill gaps in the requested service, price, hours, slot length and limits with the person.
  2. Call create_calendar with name, kind and weekly hours in account time. Make one new calendar per person, room or class. Use hourly for time slots or event for fixed sessions. Supply event dates and session hours with set_calendar_date and capacity with set_calendar_limits (per_slot).
  3. Call create_form for each service with title, kind: "service", status: "draft" and the requested pricing. Use the new form and calendar ids throughout. Configure set_form_schedule with the form id, calendar_ids, slot_minutes and requested start step, buffers, notice, window or cancellation.
  4. Keep the time step and add one question step with add_form_step (form id, step name and 2–7 necessary questions). Omit account contact details. For translations read get_form_questions, then use update_form_step with the same step_id, target locale, and existing question and option ids in the full list. Use update_form if pricing or confirmation needs adjusting.
  5. Read get_form and call list_free_slots with the form id and a representative open date (YYYY-MM-DD). Check draft: true and the returned slots. If no calendar is linked, correct calendar_ids with set_form_schedule and check again.