Docs

Use cases and site blueprints

Concrete integration blueprints for story-driven sites, seasonal camps, rentals and scheduled drops.

Early access. Use the API base, channel key and allowed origins supplied by Buchung before running examples. Interactive API requests are disabled here.

Use these blueprints to map an operator's business model onto the right Storefront v1 API calls and UI patterns. Read How Buchung works first for the shared invariants.

Story-driven expedition or multi-day trip site

Typical operator: a small catalogue (5 to 15 high-ticket multi-day trips or expeditions) where brand storytelling, itineraries, packing-list PDFs and guide credibility do the selling (for example a custom site built in Lovable, Next.js or Astro).

Recommended page structure:

  • Editorial landing pages owned by your site (hero, route story, team bios, FAQ).
  • Live departures table and booking CTA powered by Buchung on each trip page.
  • Downloadable trip-notes PDFs read directly from Activity.customFacts.

API sequence:

  1. GET /site on app boot to discover supported locales, currency, timeZone, brand and operator-wide trustSignals.
  2. GET /activities/by-handle/{handle} on the trip route to resolve the stable activity.id, media, customFacts (including pdf entries), facts and trustSignals.
  3. GET /activities/{id}/booking-options (following nextCursor if present) to render the headline priceSummary and every open departure row with its price, dates and remaining status.
  4. POST /checkout/handoff from the browser with the selected option's opaque sku and quantity, then redirect unchanged to handoff.url.

Key guardrails:

  • Format startsAt in the departure location's timezone and endsAt in the arrival location's timezone (falling back independently to timeZone).
  • Render pdf entries in customFacts using their returned storefront url unchanged; remember localized PDFs require an exact locale match.
  • When BookingOptions.options is empty (off-season or sold out), keep the trip story visible and show inline operator contact channels from Site.locations rather than a dead-end error.

Seasonal camps and multi-week catalogue

Typical operator: a sailing school, surf school or youth camp running 30 to 100+ activities split across school-holiday weeks, age bands and lodging/formula variations.

Recommended page structure:

  • Date-first discovery ("When?" period chips + age/collection chips) above a scannable listing grid with 12 to 24 cards per page.
  • Each card shows title, headline price, next available date and key decision facts (age band, duration, overnight).
  • Activity detail page opens upcoming weeks as visible rows, expanding each week's variations inline as cards.

API sequence:

  1. GET /site to discover locales and operator timeZone.
  2. POST /activities/query with collectionId, optional facets and a where: { availability: { startDate: { from, to } } } date window for the chosen holiday period or month. A collection returns the activities it selects without exposing its selection criteria. Read exact totalCount and facet option count values from the same snapshot.
  3. For a "departures by week" view across activities, call POST /availabilities/query with where: { availability: { startDate: { from, to } } } and group rows visually by week or event.
  4. On an activity page, call GET /activities/{id}/booking-options and render priceSummary (single, lead with publicTitle + otherFormsMinimum, or range) beside the title.
  5. On a sold-out week, query POST /availabilities/query for the same startDate range. Pass another configured collectionId or filter by a public category to suggest "Also available this week" alternatives.
  6. Call POST /checkout/handoff with the chosen option's sku and quantity.

Key guardrails:

  • Never sum remaining across variations in the same week: two variations often draw from one shared capacity pool.
  • Show sold-out rows dimmed at the end of the list ("Sold out") instead of hiding them silently.
  • Use supportedMatches on each facet and honor optionsTruncated. Use the latest response to render the options after each selection.
  • Retry 503 count_timeout with backoff rather than rendering 0 results.

Equipment, boat and timed-slot rentals

Typical operator: a boat rental, kayak dock or equipment hire selling morning/afternoon/full-day slots or individual units.

Recommended page structure:

  • A month calendar that visibly marks days with open slots and greys out closed days, jumping straight to the first month that has availability.
  • Inline time-slot and unit-type cards under the selected day, with the booking button disabled until a slot is picked.

API sequence:

  1. GET /activities/{id} to load the rental item's title, media, facts and bookingUnitNounForms (for example "boat" / "boats").
  2. POST /activities/{id}/availabilities/query for the visible month's startDate: { from, to } range to highlight bookable days and list that day's slots.
  3. GET /activities/{id}/booking-options for the headline "from" price (priceSummary.overallMinimum for rentals).
  4. POST /checkout/handoff with the chosen slot's sku and unit count.

Key guardrails:

  • Always label quantities with bookingUnitNounForms evaluated under CLDR plural rules; one unit is often a boat or vehicle, not one person.
  • Rentals always display a "from" prefix with overallMinimum.
  • Keep the primary CTA disabled with clear helper text ("Choose a date and time slot first") until a concrete sku is selected.

Typical operator: returning-member early access, private school/corporate group links, or a high-demand season opening at an exact date and time.

API sequence:

  1. Unlisted (hidden) activity: resolve /activities/by-handle/{handle} directly to obtain its UUID, then load /activities/{id}/booking-options and hand off to checkout normally. Unlisted activities never appear in /activities or /availabilities discovery lists or facet counts, yet direct links remain bookable.
  2. Scheduled drop (open: false): inspect open and bookableFrom on each availability or booking option. When open is false and soldOut is false, render the date and price with a clear opening timestamp ("Opens on 1 March at 10:00" in the operator/departure timezone) and disable the booking button until bookableFrom passes.

Key guardrails:

  • Do not confuse open: false (not yet open for booking) with soldOut: true (capacity exhausted) or status: "past".
  • Remember direct unlisted links are shareable URLs, not authenticated private portals.

Next steps