Storefront API
Build a custom storefront or integration on Buchung's v1 catalogue and checkout API.
Early access. Use the API base, channel key and allowed origins supplied by Buchung before running examples. Interactive API requests are disabled here.
The Buchung Storefront API is available in early access. Request access through your Buchung contact to receive your API base URL, a publishable channel key and your allowed browser origins (see Before you start).
Which surface do I need?
Storefront API
Twelve HTTP operations for activities, availabilities, booking options, site config and checkout handoff. Uses a publishable channel key directly from the browser.
Storefront MCP server
Guest-facing, read-only MCP endpoint at https://<storefront-host>/mcp so Claude or ChatGPT can query live availability and link to booking pages.
Management API (Advanced)
Twenty-two server-side operations for reading event schedules and syncing custom definitions, values, translations and PDF documents from a backend or PIM.
Where do I start?
How Buchung works
The mental model: engine vs. presentation, core resources, invariants and v1 scope.
Human quickstart
Discover the operator's locales, list activities and hand off to hosted checkout.
Agent runbook
The integration rules as plain Markdown for a coding agent.
Build a storefront & SDK
Generate a TypeScript client from OpenAPI and connect your UI to hosted checkout.
Use cases & blueprints
Concrete patterns for expeditions, seasonal camps, rentals and scheduled drops.
Booking UX & component craft
Evidence-backed UX rules and polished React/Tailwind component patterns.
Agent skills & prompts
Fetchable Markdown playbooks and starter prompts for Lovable, Claude Code and Cursor.
Data model and filtering
Activities and availabilities as primary resources, typed filters, facets and exact counts.
API reference
Schemas and parameters for every operation.
Download OpenAPI
The complete OpenAPI 3.1 document.
Before you start
Early access is provisioned per operator. Ask your Buchung contact for access.
You receive from Buchung:
- API base address:
https://api.buchungapp.com/v1 - Storefront channel key:
bg_st_followed by 32 lowercase hexadecimal characters. It is a publishable key that may live in browser code. - Allowed origins: the browser origins configured on that booking channel (for example
https://www.example.com,https://*.preview.example.comorhttp://localhost:5173). - Sandbox operator: a test operator whose payments run in test mode. See sandbox & testing.
Rules for allowed origins:
- Origins belong to the booking channel, not to a single key (at most 50 per channel).
- Specify exact origins as browsers send them in the
Originheader: scheme, host and port, without a path. - A wildcard is accepted only as the leftmost label (
https://*.example.com, with at least two labels after it). It matches subdomains at any depth on the same scheme and port, notexample.comitself (list the apex separately). - Requests from any other browser origin return
403 forbidden_origin. See authentication.
Key rules for every integration
- Send
X-Buchung-Channel-Keyon every storefront request. - Call
site.getfirst to discover the operator's locales, currency and timezone.Buchung-Localeis optional on reads (omitted or unsupported values fall back to the operator default) and required oncheckout.createHandoff. See locales, dates & pagination. - Retain UUIDs for durable references (handles can change), keep cursors opaque, and read exact counts in their named resource unit.
- Grouping availabilities into departure or week cards is presentation only; each availability keeps its own
sku, price and remaining capacity. Never sumremainingacross options. - Advertised prices and capacity are live snapshots, not holds. Hosted checkout owns final validation, capacity checks and payment confirmation.