Customer API · v1.1.0

Show live game times and prices on your website

Three public HTTP endpoints. No API key is needed. List what the venue sells, the start times available, and a price calculated by the server. Quotes do not reserve a slot or take payment.

Aurora channel ID
6be97a91-c55a-44b6-a32e-ceafedcfb2ae
Approved origins
https://aurorakladno.cz, https://www.aurorakladno.cz
Base URL
https://ressera.com/api/v1/customer/channels/{channelId}

Quickstart

  1. 1 · GET /catalogWhat the venue sells through this channel.
  2. 2 · GET /startsBookable start times for one offering.
  3. 3 · POST /quotesServer-calculated price for a selection. Valid for 15 minutes.
JavaScript · runs on an approved origin
const API = 'https://ressera.com/api/v1/customer/channels/6be97a91-c55a-44b6-a32e-ceafedcfb2ae'

const catalog = await (await fetch(`${API}/catalog`)).json()
const game = catalog.offerings.find((o) => o.type === 'standard')

const day = '2026-12-05' // a date in catalog.timezone
const { starts } = await (await fetch(
  `${API}/starts?offeringId=${game.id}&from=${day}&through=${day}`
)).json()

const key = crypto.randomUUID() // keep it for retries of this exact request
const res = await fetch(`${API}/quotes`, {
  method: 'POST',
  headers: { 'Content-Type': 'application/json', 'Idempotency-Key': key },
  body: JSON.stringify({
    catalogVersion: catalog.version,
    offeringId: game.id,
    playerCount: Math.max(8, game.minPlayers),
    startTimes: [starts[0].start],
  }),
})
const quote = await res.json() // on error: { code: '...' }
const price = new Intl.NumberFormat(catalog.locale, {
  style: 'currency', currency: quote.currency,
}).format(quote.amounts.serviceTotal / 100)

Rules for every request

  • Every request needs an approved Origin. Browsers send it automatically. Server-side callers, scripts and AI agents must send Origin: https://aurorakladno.cz (or another approved origin) explicitly.
  • No API key or login is needed. Never embed a Supabase key, staff session or any secret in a website.
  • Money is an integer in minor units. For CZK, divide by 100 (19900 means 199 Kč).
  • amounts.serviceTotal = voucherTender + dueNow + dueLater. A nonzero dueNow does not mean money was collected.
  • Show all times in catalog.timezone.
  • Responses are Cache-Control: no-store. Do not cache quotes. A quote expires 15 minutes after issuedAt.
  • Treat the API as the source of truth for prices. Never calculate prices in the browser.

Endpoint reference

Step 1

GET/catalog

What the venue sells through this channel.

  • Returns version (UUID), venueName, locale, timezone (IANA, e.g. Europe/Prague), currency (ISO 4217) and offerings[].
  • Each offering has id, name, type (standard | package | duration), minPlayers and maxPlayers.
  • Only standard offerings can be quoted today. Skip other types.
  • Keep version; every quote must send it back as catalogVersion.
Request
curl -s "https://ressera.com/api/v1/customer/channels/6be97a91-c55a-44b6-a32e-ceafedcfb2ae/catalog" \
  -H "Origin: https://aurorakladno.cz"
Response
{
  "channelId": "6be97a91-c55a-44b6-a32e-ceafedcfb2ae",
  "version": "0b7c…",
  "venueName": "Aurora Lasergame Kladno",
  "locale": "cs-CZ",
  "timezone": "Europe/Prague",
  "currency": "CZK",
  "offerings": [
    { "id": "5f1e…", "name": "Regular game", "type": "standard",
      "minPlayers": 1, "maxPlayers": 20 }
  ]
}

Step 2

GET/starts

Bookable start times for one offering.

  • from is required. through is inclusive and defaults to from. Ask for at most 31 dates per request.
  • Dates are calendar days in catalog.timezone, not in the visitor device zone.
  • Each item has start (ISO 8601 instant) and confirmation: instant (confirmed on booking) or request (venue confirms manually).
  • Starts reflect published opening hours and advance-booking rules. Live occupancy is only checked when a booking is placed.
Request
curl -s "https://ressera.com/api/v1/customer/channels/6be97a91-c55a-44b6-a32e-ceafedcfb2ae/starts?offeringId=<OFFERING_ID>&from=2026-12-05&through=2026-12-06" \
  -H "Origin: https://aurorakladno.cz"
Response
{
  "channelId": "6be97a91-c55a-44b6-a32e-ceafedcfb2ae",
  "catalogVersion": "0b7c…",
  "offeringId": "5f1e…",
  "from": "2026-12-05",
  "through": "2026-12-06",
  "starts": [
    { "start": "2026-12-05T09:00:00.000Z", "confirmation": "instant" },
    { "start": "2026-12-05T09:20:00.000Z", "confirmation": "request" }
  ]
}

Step 3

POST/quotes

Server-calculated price for a selection. Valid for 15 minutes.

  • Headers: Content-Type: application/json and Idempotency-Key: <fresh UUID>. Body at most 16 KiB.
  • Body: catalogVersion, offeringId, playerCount (within the offering range) and startTimes (1–48 unique, chronological, future instants taken from /starts).
  • Do not send durationMinutes, addOns or voucherCode yet. They are reserved for later releases. Unknown fields are rejected.
  • Returns id, issuedAt, expiresAt, currency, amounts and visit[] (each with kind, start and end).
  • A quote does not reserve capacity, create a booking or take payment.
Request
curl -s -X POST "https://ressera.com/api/v1/customer/channels/6be97a91-c55a-44b6-a32e-ceafedcfb2ae/quotes" \
  -H "Origin: https://aurorakladno.cz" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "catalogVersion": "<CATALOG_VERSION>",
    "offeringId": "<OFFERING_ID>",
    "playerCount": 8,
    "startTimes": ["2026-12-05T15:00:00+01:00"]
  }'
Response
{
  "id": "c3a9…",
  "channelId": "6be97a91-c55a-44b6-a32e-ceafedcfb2ae",
  "catalogVersion": "0b7c…",
  "offeringId": "5f1e…",
  "issuedAt": "2026-11-28T10:00:00.000Z",
  "expiresAt": "2026-11-28T10:15:00.000Z",
  "currency": "CZK",
  "amounts": { "serviceTotal": 159200, "voucherTender": 0,
               "dueNow": 0, "dueLater": 159200 },
  "visit": [ { "kind": "game", "start": "2026-12-05T14:00:00.000Z",
               "end": "2026-12-05T14:20:00.000Z" } ]
}

IDs ending in "…" are shortened. Use the values from your own responses.

Errors

Every error has the body { "code": "..." }. Act on the code, not the message.

HTTPCodeWhat to do
400invalid_requestFix the input, media type or Idempotency-Key. Do not retry unchanged.
403origin_deniedStop. Your Origin is not approved for this channel. Ask the venue to add it.
404channel_unavailableStop. Check the channel ID and that you sent an approved Origin header. A missing Origin also returns this code.
409stale_catalogThe venue published a change. Reload the catalog and starts, then quote again.
409idempotency_conflictThis key was used for a different request. Send a fresh UUID.
422offering_unavailableThis offering cannot be quoted. Offer another.
422unavailable_startThe start time is past, unpublished or overlaps another. Reload starts.
422invalid_voucherVouchers are not accepted on this API yet. Remove voucherCode.
429rate_limitedBack off and retry later. The limit is about 120 new quotes per channel per minute.
503temporarily_unavailableRetry with the same body and the same Idempotency-Key, with backoff. Never show a price.

Retries and idempotency

  • Create a new UUID for each distinct quote request.
  • After a timeout, network error or 503, resend the identical body with the same key. You get the original quote back, and its expiry is not extended.
  • If the player count, start time or offering changes, use a new key.

For AI agents and code generators

Give your assistant one of these URLs. Each contains the same rules as this page in a format models can follow.

Prompt
Read https://ressera.com/llms-full.txt and build a widget for https://aurorakladno.cz that lets visitors pick a date, see available Regular game start times and get a price for their group size. Use only the documented endpoints.

Not available yet

Bookings, payments, vouchers, add-ons, birthday and school packages, and customer accounts are not available through this API yet. To book, send the visitor to the venue's booking page. This page will be updated when booking endpoints go live.