Docs

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?

Where do I start?

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.com or http://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 Origin header: 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, not example.com itself (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-Key on every storefront request.
  • Call site.get first to discover the operator's locales, currency and timezone. Buchung-Locale is optional on reads (omitted or unsupported values fall back to the operator default) and required on checkout.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 sum remaining across options.
  • Advertised prices and capacity are live snapshots, not holds. Hosted checkout owns final validation, capacity checks and payment confirmation.