> Full index: https://docs.buchungapp.com/llms.txt
> Early access. Use the API base, channel key and allowed origins supplied by Buchung before running examples.

# How Buchung works

Before choosing endpoints or designing page layouts, it helps to understand how Buchung separates the **commerce engine** from **presentation**.

## Engine vs. presentation [#engine-vs-presentation]

Buchung is the commerce engine for experience operators: sailing schools, youth camps, multi-day expeditions, courses, rentals and tours. For the full operator platform scope beyond the Storefront API (including payments, invoicing, accounting sync, mailings, guest portal, photo boards and reporting), see [what Buchung covers](/docs/platform/overview) and the [platform roadmap](/docs/platform/roadmap).

```text
                    ┌──────────────────────────────────────────┐
                    │         Buchung commerce engine          │
                    │  Catalogue · Live capacity · Pricing ·   │
                    │  Hosted checkout · Payments · Emails     │
                    └───────┬───────────────┬──────────────┬───┘
                            │               │              │
              Hosted themes │   HTTP API    │  MCP server  │
              (web-store)   │  (/v1 + key)  │  (/mcp)      │
                            ▼               ▼              ▼
                     Hosted site     Your custom site   Guest AI
                                     (Next.js, Lovable, assistants
                                      Astro, Webflow)   (Claude, ChatGPT)
```

- **Buchung owns operational truth:** activities, scheduled dates, shared capacity pools, pricing rules, automatic promotions, checkout validation, payments, invoices, participant details and lifecycle emails.
- **Your website owns presentation:** brand identity, layout, storytelling, editorial pages, landing copy and navigation.
- **One canonical catalogue:** every channel (hosted storefront, custom frontend over the Storefront API, and guest AI assistants over MCP) reads the same live availability and pricing. Updating a price or filling the last spot in Buchung updates every surface immediately.
- **Money and capacity stay in the engine:** your site sends a visitor's chosen SKUs and quantities to `POST /checkout/handoff`, which returns a signed URL to Buchung-hosted checkout. Your site never handles payment cards, never sends prices and never holds inventory.

## The five core objects [#the-five-core-objects]

```text
Site (brand, locales, currency, timeZone, locations, trustSignals)
  └── Activity (product family: title, copy, media, categories, facts, customFacts/PDFs)
        ├── Availability / AA (concrete dated option: event + variation + sku + price + remaining)
        ├── BookingOptions (activity-scoped chooser + headline priceSummary)
        └── CheckoutHandoff (stateless signed URL carrying SKUs + quantities -> hosted checkout)
```

| Object | What it represents | What you use it for |
| --- | --- | --- |
| `Site` | Operator identity, brand logos, supported locales, currency, default timezone, public locations and operator-wide trust signals. | Bootstrapping locale pickers, headers, footers, legal links and trust strips. |
| `Activity` | A product family (for example a week-long sailing camp or a guided expedition). Has a stable UUID and a changeable `handle`. | Listing cards, activity detail pages, media galleries, structured facts and PDF downloads. |
| `Availability` (AA) | One concrete bookable combination of activity, event (dates/times) and variation (for example "with lodging" or "morning slot"). Carries an opaque `sku`, advertised `price`, `remaining` and `open` / `bookableFrom`. | Date-first browsing, departure tables, calendars and option cards. |
| `BookingOptions` | Activity-scoped view of offerable options plus a computed `priceSummary` (`single`, `lead`, `range`) and `from` price. | Rendering headline prices on activity pages and populating the option chooser. |
| `CheckoutHandoff` | A short-lived (15-minute) signed URL on the operator's storefront domain carrying selected SKUs and quantities. | Sending the visitor seamlessly into Buchung-hosted checkout. |

## Five invariants every integration must respect [#five-invariants-every-integration-must-respect]

### 1. Grouping dates into cards is presentation only [#1-grouping-dates-into-cards-is-presentation-only]

An operator may run five options in the same week (for example different boat classes, lodging choices or age tracks). Each option is its own **Availability (AA)** with its own UUID, opaque `sku`, price and capacity. You can visually group AAs by `eventId` or start week in your UI, but never invent a synthetic "group SKU" or drop differing schedules and prices.

### 2. Never sum `remaining` across options [#2-never-sum-remaining-across-options]

Two variations on the same date often share one physical resource pool (for example, a fleet of boats or a shared dormitory). Both AAs can legitimately report `remaining: 10` from the same pool of 10. Summing them would advertise 20 spots that do not exist. Always show `remaining` per individual option (or show "Sold out" when every option in a group has `soldOut: true`). Remember also that `remaining: null` means uncapped, not sold out.

### 3. One quantity unit is not always one person [#3-one-quantity-unit-is-not-always-one-person]

Depending on what the operator sells, quantity `1` might mean one participant, one boat, one room or one team. Always render quantity labels from `bookingUnitNounForms` using CLDR plural rules rather than hard-coding "person" or "guest".

### 4. Structured facts hold commerce truth; your site holds storytelling [#4-structured-facts-hold-commerce-truth-your-site-holds-storytelling]

Details visitors compare before booking (duration, age band, skill level, meeting point, packing-list PDF) belong in Buchung's `facts` and `customFacts` so filters, cards, custom sites and AI assistants stay in sync. Long-form editorial stories, hero sections and team bios stay in your site's own CMS or codebase.

### 5. Advertised prices and capacity are live snapshots, never holds [#5-advertised-prices-and-capacity-are-live-snapshots-never-holds]

Advertised prices already include compulsory upsells (unless explicitly excluded by the operator) and applicable automatic promotions. Neither browsing nor creating a checkout handoff reserves inventory or freezes prices; hosted checkout performs final price and capacity checks when the guest books.

## What v1 supports today (and what comes later) [#what-v1-supports-today-and-what-comes-later]

Knowing the current boundary helps agents pick the right pattern without inventing unsupported endpoints:

| Use case | Status in v1 | How to model it today |
| --- | --- | --- |
| Single-day events, workshops and tours | Supported | `Activity` + dated `Availability` rows + `POST /checkout/handoff`. |
| Multi-day camps and expeditions | Supported | Contiguous multi-day `Availability` rows, optional `customFacts` (including PDFs) and `BookingOptions.priceSummary`. |
| Timed-slot equipment or boat rentals | Supported | Dated `Availability` slots, `bookingUnitNounForms` and `overallMinimum` "from" pricing. |
| Hidden / invite-only bookings and scheduled drops | Supported | Unlisted activities via `/activities/by-handle/{handle}` and `open: false` / `bookableFrom` countdowns. |
| Guest AI assistants | Supported (early access) | Operator-scoped [Storefront MCP server](/docs/developers/mcp) at `https://<storefront-host>/mcp`. |
| Multi-session series cohorts, stays (arrival/night search), passes/vouchers | Planned | Not exposed as separate endpoints yet; do not treat empty dated options as permanently unbookable. |
| Public inquiries, waitlists and server-side carts | Planned | Use the operator's contact channels from `Site.locations` or your own contact form until the request endpoints ship. |

## Next steps [#next-steps]

- [Quickstart for humans](/docs/developers/quickstart-humans): Make your first Storefront API calls and test a checkout handoff.
- [Quickstart for agents](/docs/developers/quickstart-agents): Give a coding agent the canonical integration runbook.
- [Storefront MCP server](/docs/developers/mcp): Connect AI assistants directly to an operator's live catalogue.
- [Data model and filtering](/docs/developers/data-model): Typed filters, facets, custom facts, PDFs and media rules.

