{"openapi":"3.1.0","info":{"title":"Buchung Storefront API","version":"1.0.0","description":"Public catalogue reads and hosted-checkout handoff scoped to a booking channel, plus bearer-only machine management. Storefront channel keys never authorize management operations; machine credentials never authorize storefront checkout handoffs. Storefront reads enforce a 4 MiB per-page custom-fact budget; result_too_large maps to the 400 validation_failed envelope without truncation. Use GET for simple catalogue queries with the raw request target strictly below 8 KiB (414 validation_failed otherwise); use the corresponding POST /query form when conditions or selections outgrow a URL. POST accepts the decoded GET fields as JSON, including the same defaults, errors and response schemas, uses the same read limiter bucket and returns Cache-Control: private, no-store. There are no per-parameter where/facets character caps. Management caps every method with a body at 64 KiB before parsing; storefront POST bodies are capped at 16 KiB before parsing (413 payload_too_large)."},"paths":{"/v1/activities":{"get":{"tags":["activities"],"operationId":"activities.list","parameters":[{"name":"Buchung-Locale","in":"header","schema":{"$ref":"#/components/schemas/Language"},"required":false,"description":"On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed. Only checkout.createHandoff requires a supported Buchung-Locale: absence or malformed values return 400 validation_failed, and well-formed unsupported values return 400 locale_not_supported with details naming the requested and supported locales. Start with site.get to discover the operator's locales. See Language for syntax and normalization."},{"name":"where","in":"query","schema":{"type":"string","contentMediaType":"application/json","contentSchema":{"$ref":"#/components/schemas/CatalogueCondition"}},"required":false,"description":"JSON CatalogueCondition with typed activity/availability fields or fact entries carrying scope, set, field and one operator. Structural errors include paths such as query.where.activity.categories.containsAny.0. Unavailable category, event or variation references are handled like unknown ones. Refresh those values or remove the rejected filter. See CatalogueConditionLeaf for allowed operators and CatalogueQuery for admission budgets and same-AA matching. Host must cap the combined encoded query below 8 KiB in the raw request target before routing. Unknown keys return 400 validation_failed; no implicit collection."},{"name":"facets","in":"query","schema":{"type":"string","contentMediaType":"application/json","contentSchema":{"$ref":"#/components/schemas/FacetSelections"}},"required":false,"description":"JSON FacetSelections. Send collectionId and use returned facet and option IDs. Structural error paths include query.facets.0.match. Unexpected properties can be reported at the enclosing object or array item. See CatalogueQuery for bounds and uniqueness. Host must cap the combined encoded query below 8 KiB in the raw request target before routing. Unknown keys return 400 validation_failed; no implicit collection."},{"name":"collectionId","in":"query","schema":{"allOf":[{"$ref":"#/components/schemas/Id"}],"description":"Optional collection UUID. A collection returns the activities it selects without exposing its selection criteria. Availability queries return eligible dates for those activities. The existing ceiling of 1,000 distinct saved category IDs bounds the references checked per collection read. An unavailable collection, including one above this ceiling, returns 404 not_found. Check the UUID, storefront setup and booking channel before retrying."},"required":false,"description":"Optional collection UUID. A collection returns the activities it selects without exposing its selection criteria. Availability queries return eligible dates for those activities. The existing ceiling of 1,000 distinct saved category IDs bounds the references checked per collection read. An unavailable collection, including one above this ceiling, returns 404 not_found. Check the UUID, storefront setup and booking channel before retrying."},{"name":"includePast","in":"query","schema":{"type":"boolean","default":false},"required":false,"description":"Include past AAs; default is declared by CatalogueQuery."},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"description":"Page size 1–100, default 20, for client ergonomics and bounded page hydration.","default":20},"required":false,"description":"Page size; bounds and default are declared by CatalogueQuery."},{"name":"cursor","in":"query","schema":{"$ref":"#/components/schemas/Cursor"},"required":false,"description":"Opaque continuation; see Cursor for bounds and scope. Host must cap the combined encoded query below 8 KiB in the raw request target before routing. Unknown keys return 400 validation_failed; no implicit collection."}],"security":[{"channelKey":[]}],"responses":{"200":{"description":"Activities ordered by authored weight (null last), then UUID. Exact totals and facet counts count distinct activities across the full matching domain, before pagination. Activities without eligible AAs remain unless occurrence conditions require one. Membership, hydration and counts share one request snapshot; each next page is a fresh snapshot.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityPage"}}},"headers":{"Content-Language":{"required":true,"description":"Always reports the applied operator locale.","schema":{"$ref":"#/components/schemas/Language"}},"Buchung-Locale-Fallback":{"required":false,"description":"Present only for a well-formed but unsupported Buchung-Locale; echoes the requested value unchanged while the operator's default locale applies. Absent for omitted or supported values.","schema":{"$ref":"#/components/schemas/Language"}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"ForbiddenOrigin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenOriginEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"414":{"description":"The raw request target must be strictly below 8 KiB; the host rejects it before routing using this envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable | Exact counting exceeded the server's statement budget; retry later.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ServiceUnavailableEncoded"},{"$ref":"#/components/schemas/CountTimeoutEncoded"}]}}}}},"description":"List published activities with exact activity totals and facet counts. Typed occurrence conditions must match the same AA; activity-only matches may have no AAs. Defaults: limit 20, includePast false. Compound where/facets use JSON strings. Each page has one fresh read snapshot; no inventory hold. On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed.","summary":"List activities"}},"/v1/activities/query":{"post":{"tags":["activities"],"operationId":"activities.query","parameters":[{"name":"Buchung-Locale","in":"header","schema":{"$ref":"#/components/schemas/Language"},"required":false,"description":"On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed. Only checkout.createHandoff requires a supported Buchung-Locale: absence or malformed values return 400 validation_failed, and well-formed unsupported values return 400 locale_not_supported with details naming the requested and supported locales. Start with site.get to discover the operator's locales. See Language for syntax and normalization."}],"security":[{"channelKey":[]}],"responses":{"200":{"description":"Activities ordered by authored weight (null last), then UUID. Exact totals and facet counts count distinct activities across the full matching domain, before pagination. Activities without eligible AAs remain unless occurrence conditions require one. Membership, hydration and counts share one request snapshot; each next page is a fresh snapshot.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityPage"}}},"headers":{"Cache-Control":{"required":true,"description":"POST catalogue queries must not be cached.","schema":{"type":"string","const":"private, no-store"}},"Content-Language":{"required":true,"description":"Always reports the applied operator locale.","schema":{"$ref":"#/components/schemas/Language"}},"Buchung-Locale-Fallback":{"required":false,"description":"Present only for a well-formed but unsupported Buchung-Locale; echoes the requested value unchanged while the operator's default locale applies. Absent for omitted or supported values.","schema":{"$ref":"#/components/schemas/Language"}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"ForbiddenOrigin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenOriginEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"413":{"description":"PayloadTooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayloadTooLargeEncoded"}}}},"414":{"description":"The raw request target must be strictly below 8 KiB; the host rejects it before routing using this envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable | Exact counting exceeded the server's statement budget; retry later.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ServiceUnavailableEncoded"},{"$ref":"#/components/schemas/CountTimeoutEncoded"}]}}}}},"description":"POST form of activities.list for conditions/selections that outgrow a URL. Same decoded query fields, defaults, eligibility, exact counts, locale, response schema and error vocabulary. Send where/facets as JSON values, not strings. Host caps the body at 16 KiB before parsing (413 payload_too_large), shares the GET read limiter bucket and returns Cache-Control: private, no-store. This read reserves no inventory. On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed.","summary":"Query activities with a JSON body","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogueQueryBody"}}},"required":true}}},"/v1/activities/{id}":{"get":{"tags":["activities"],"operationId":"activities.get","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"Stable resource UUID scoped to the authenticated operator; see Id."},{"name":"Buchung-Locale","in":"header","schema":{"$ref":"#/components/schemas/Language"},"required":false,"description":"On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed. Only checkout.createHandoff requires a supported Buchung-Locale: absence or malformed values return 400 validation_failed, and well-formed unsupported values return 400 locale_not_supported with details naming the requested and supported locales. Start with site.get to discover the operator's locales. See Language for syntax and normalization."}],"security":[{"channelKey":[]}],"responses":{"200":{"description":"Directly accessible activity with localized public catalogue data. Lists contain published activities; direct lookup also permits unlisted activities.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Activity"}}},"headers":{"Content-Language":{"required":true,"description":"Always reports the applied operator locale.","schema":{"$ref":"#/components/schemas/Language"}},"Buchung-Locale-Fallback":{"required":false,"description":"Present only for a well-formed but unsupported Buchung-Locale; echoes the requested value unchanged while the operator's default locale applies. Absent for omitted or supported values.","schema":{"$ref":"#/components/schemas/Language"}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"ForbiddenOrigin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenOriginEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable | Exact counting exceeded the server's statement budget; retry later.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ServiceUnavailableEncoded"},{"$ref":"#/components/schemas/CountTimeoutEncoded"}]}}}}},"description":"Retrieve one published or unlisted activity by stable UUID. Draft, archived, absent and foreign activities return 404. On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed.","summary":"Get an activity"}},"/v1/activities/by-handle/{handle}":{"get":{"tags":["activities"],"operationId":"activities.getByHandle","parameters":[{"name":"handle","in":"path","schema":{"$ref":"#/components/schemas/Handle"},"required":true,"description":"Public activity handle; see Handle."},{"name":"Buchung-Locale","in":"header","schema":{"$ref":"#/components/schemas/Language"},"required":false,"description":"On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed. Only checkout.createHandoff requires a supported Buchung-Locale: absence or malformed values return 400 validation_failed, and well-formed unsupported values return 400 locale_not_supported with details naming the requested and supported locales. Start with site.get to discover the operator's locales. See Language for syntax and normalization."}],"security":[{"channelKey":[]}],"responses":{"200":{"description":"Directly accessible activity with localized public catalogue data. Lists contain published activities; direct lookup also permits unlisted activities.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Activity"}}},"headers":{"Content-Language":{"required":true,"description":"Always reports the applied operator locale.","schema":{"$ref":"#/components/schemas/Language"}},"Buchung-Locale-Fallback":{"required":false,"description":"Present only for a well-formed but unsupported Buchung-Locale; echoes the requested value unchanged while the operator's default locale applies. Absent for omitted or supported values.","schema":{"$ref":"#/components/schemas/Language"}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"ForbiddenOrigin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenOriginEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable | Exact counting exceeded the server's statement budget; retry later.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ServiceUnavailableEncoded"},{"$ref":"#/components/schemas/CountTimeoutEncoded"}]}}}}},"description":"Resolve an operator-scoped handle with the same direct eligibility as UUID lookup. UUID-shaped handles are interpreted literally. Handles can change; retain the returned UUID for durable references. On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed.","summary":"Get an activity by handle"}},"/v1/availabilities":{"get":{"tags":["availabilities"],"operationId":"availabilities.list","parameters":[{"name":"Buchung-Locale","in":"header","schema":{"$ref":"#/components/schemas/Language"},"required":false,"description":"On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed. Only checkout.createHandoff requires a supported Buchung-Locale: absence or malformed values return 400 validation_failed, and well-formed unsupported values return 400 locale_not_supported with details naming the requested and supported locales. Start with site.get to discover the operator's locales. See Language for syntax and normalization."},{"name":"where","in":"query","schema":{"type":"string","contentMediaType":"application/json","contentSchema":{"$ref":"#/components/schemas/CatalogueCondition"}},"required":false,"description":"JSON CatalogueCondition with typed activity/availability fields or fact entries carrying scope, set, field and one operator. Structural errors include paths such as query.where.activity.categories.containsAny.0. Unavailable category, event or variation references are handled like unknown ones. Refresh those values or remove the rejected filter. See CatalogueConditionLeaf for allowed operators and CatalogueQuery for admission budgets and same-AA matching. Host must cap the combined encoded query below 8 KiB in the raw request target before routing. Unknown keys return 400 validation_failed; no implicit collection."},{"name":"facets","in":"query","schema":{"type":"string","contentMediaType":"application/json","contentSchema":{"$ref":"#/components/schemas/FacetSelections"}},"required":false,"description":"JSON FacetSelections. Send collectionId and use returned facet and option IDs. Structural error paths include query.facets.0.match. Unexpected properties can be reported at the enclosing object or array item. See CatalogueQuery for bounds and uniqueness. Host must cap the combined encoded query below 8 KiB in the raw request target before routing. Unknown keys return 400 validation_failed; no implicit collection."},{"name":"collectionId","in":"query","schema":{"allOf":[{"$ref":"#/components/schemas/Id"}],"description":"Optional collection UUID. A collection returns the activities it selects without exposing its selection criteria. Availability queries return eligible dates for those activities. The existing ceiling of 1,000 distinct saved category IDs bounds the references checked per collection read. An unavailable collection, including one above this ceiling, returns 404 not_found. Check the UUID, storefront setup and booking channel before retrying."},"required":false,"description":"Optional collection UUID. A collection returns the activities it selects without exposing its selection criteria. Availability queries return eligible dates for those activities. The existing ceiling of 1,000 distinct saved category IDs bounds the references checked per collection read. An unavailable collection, including one above this ceiling, returns 404 not_found. Check the UUID, storefront setup and booking channel before retrying."},{"name":"includePast","in":"query","schema":{"type":"boolean","default":false},"required":false,"description":"Include past AAs; default is declared by CatalogueQuery."},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"description":"Page size 1–100, default 20, for client ergonomics and bounded page hydration.","default":20},"required":false,"description":"Page size; bounds and default are declared by CatalogueQuery."},{"name":"cursor","in":"query","schema":{"$ref":"#/components/schemas/Cursor"},"required":false,"description":"Opaque continuation; see Cursor for bounds and scope. Host must cap the combined encoded query below 8 KiB in the raw request target before routing. Unknown keys return 400 validation_failed; no implicit collection."}],"security":[{"channelKey":[]}],"responses":{"200":{"description":"AAs ordered by effective startsAt then UUID; exact total/facet counts count distinct AAs before pagination. Membership, hydration and counts share one request snapshot. Preserve timestamp precision in opaque continuation; each next page re-evaluates current authority and data. Grouping is a client presentation concern, with no group capacity total.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailabilityPage"}}},"headers":{"Content-Language":{"required":true,"description":"Always reports the applied operator locale.","schema":{"$ref":"#/components/schemas/Language"}},"Buchung-Locale-Fallback":{"required":false,"description":"Present only for a well-formed but unsupported Buchung-Locale; echoes the requested value unchanged while the operator's default locale applies. Absent for omitted or supported values.","schema":{"$ref":"#/components/schemas/Language"}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"ForbiddenOrigin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenOriginEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"414":{"description":"The raw request target must be strictly below 8 KiB; the host rejects it before routing using this envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable | Exact counting exceeded the server's statement budget; retry later.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ServiceUnavailableEncoded"},{"$ref":"#/components/schemas/CountTimeoutEncoded"}]}}}}},"description":"Browse concrete AAs of listed activities with exact AA totals and facet counts. Effective start then UUID order; upcoming by default. Typed where and facet conditions match the same AA. Price and capacity are advertisements, not reservations. Grouping is presentation only. On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed.","summary":"List activity availabilities"}},"/v1/activities/{id}/availabilities":{"get":{"tags":["availabilities"],"operationId":"availabilities.listForActivity","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"Stable resource UUID scoped to the authenticated operator; see Id."},{"name":"Buchung-Locale","in":"header","schema":{"$ref":"#/components/schemas/Language"},"required":false,"description":"On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed. Only checkout.createHandoff requires a supported Buchung-Locale: absence or malformed values return 400 validation_failed, and well-formed unsupported values return 400 locale_not_supported with details naming the requested and supported locales. Start with site.get to discover the operator's locales. See Language for syntax and normalization."},{"name":"where","in":"query","schema":{"type":"string","contentMediaType":"application/json","contentSchema":{"$ref":"#/components/schemas/CatalogueCondition"}},"required":false,"description":"JSON CatalogueCondition with typed activity/availability fields or fact entries carrying scope, set, field and one operator. Structural errors include paths such as query.where.activity.categories.containsAny.0. Unavailable category, event or variation references are handled like unknown ones. Refresh those values or remove the rejected filter. See CatalogueConditionLeaf for allowed operators and CatalogueQuery for admission budgets and same-AA matching. Host must cap the combined encoded query below 8 KiB in the raw request target before routing. Unknown keys return 400 validation_failed; no implicit collection."},{"name":"facets","in":"query","schema":{"type":"string","contentMediaType":"application/json","contentSchema":{"$ref":"#/components/schemas/FacetSelections"}},"required":false,"description":"JSON FacetSelections. Send collectionId and use returned facet and option IDs. Structural error paths include query.facets.0.match. Unexpected properties can be reported at the enclosing object or array item. See CatalogueQuery for bounds and uniqueness. Host must cap the combined encoded query below 8 KiB in the raw request target before routing. Unknown keys return 400 validation_failed; no implicit collection."},{"name":"collectionId","in":"query","schema":{"allOf":[{"$ref":"#/components/schemas/Id"}],"description":"Optional collection UUID. A collection returns the activities it selects without exposing its selection criteria. Availability queries return eligible dates for those activities. The existing ceiling of 1,000 distinct saved category IDs bounds the references checked per collection read. An unavailable collection, including one above this ceiling, returns 404 not_found. Check the UUID, storefront setup and booking channel before retrying."},"required":false,"description":"Optional collection UUID. A collection returns the activities it selects without exposing its selection criteria. Availability queries return eligible dates for those activities. The existing ceiling of 1,000 distinct saved category IDs bounds the references checked per collection read. An unavailable collection, including one above this ceiling, returns 404 not_found. Check the UUID, storefront setup and booking channel before retrying."},{"name":"includePast","in":"query","schema":{"type":"boolean","default":false},"required":false,"description":"Include past AAs; default is declared by CatalogueQuery."},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"description":"Page size 1–100, default 20, for client ergonomics and bounded page hydration.","default":20},"required":false,"description":"Page size; bounds and default are declared by CatalogueQuery."},{"name":"cursor","in":"query","schema":{"$ref":"#/components/schemas/Cursor"},"required":false,"description":"Opaque continuation; see Cursor for bounds and scope. Host must cap the combined encoded query below 8 KiB in the raw request target before routing. Unknown keys return 400 validation_failed; no implicit collection."}],"security":[{"channelKey":[]}],"responses":{"200":{"description":"AAs ordered by effective startsAt then UUID; exact total/facet counts count distinct AAs before pagination. Membership, hydration and counts share one request snapshot. Preserve timestamp precision in opaque continuation; each next page re-evaluates current authority and data. Grouping is a client presentation concern, with no group capacity total.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailabilityPage"}}},"headers":{"Content-Language":{"required":true,"description":"Always reports the applied operator locale.","schema":{"$ref":"#/components/schemas/Language"}},"Buchung-Locale-Fallback":{"required":false,"description":"Present only for a well-formed but unsupported Buchung-Locale; echoes the requested value unchanged while the operator's default locale applies. Absent for omitted or supported values.","schema":{"$ref":"#/components/schemas/Language"}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"ForbiddenOrigin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenOriginEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"414":{"description":"The raw request target must be strictly below 8 KiB; the host rejects it before routing using this envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable | Exact counting exceeded the server's statement budget; retry later.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ServiceUnavailableEncoded"},{"$ref":"#/components/schemas/CountTimeoutEncoded"}]}}}}},"description":"Query AAs within one explicit published or unlisted activity UUID. Direct conditions and configured facets remain available and cannot broaden the activity scope. An unknown, draft, archived or foreign activity returns 404 not_found. A valid activity outside the requested collection or with no matching AAs returns an empty page with totalCount 0. An unavailable collection returns 404 not_found. On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed.","summary":"List an activity's availabilities"}},"/v1/availabilities/query":{"post":{"tags":["availabilities"],"operationId":"availabilities.query","parameters":[{"name":"Buchung-Locale","in":"header","schema":{"$ref":"#/components/schemas/Language"},"required":false,"description":"On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed. Only checkout.createHandoff requires a supported Buchung-Locale: absence or malformed values return 400 validation_failed, and well-formed unsupported values return 400 locale_not_supported with details naming the requested and supported locales. Start with site.get to discover the operator's locales. See Language for syntax and normalization."}],"security":[{"channelKey":[]}],"responses":{"200":{"description":"AAs ordered by effective startsAt then UUID; exact total/facet counts count distinct AAs before pagination. Membership, hydration and counts share one request snapshot. Preserve timestamp precision in opaque continuation; each next page re-evaluates current authority and data. Grouping is a client presentation concern, with no group capacity total.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailabilityPage"}}},"headers":{"Cache-Control":{"required":true,"description":"POST catalogue queries must not be cached.","schema":{"type":"string","const":"private, no-store"}},"Content-Language":{"required":true,"description":"Always reports the applied operator locale.","schema":{"$ref":"#/components/schemas/Language"}},"Buchung-Locale-Fallback":{"required":false,"description":"Present only for a well-formed but unsupported Buchung-Locale; echoes the requested value unchanged while the operator's default locale applies. Absent for omitted or supported values.","schema":{"$ref":"#/components/schemas/Language"}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"ForbiddenOrigin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenOriginEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"413":{"description":"PayloadTooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayloadTooLargeEncoded"}}}},"414":{"description":"The raw request target must be strictly below 8 KiB; the host rejects it before routing using this envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable | Exact counting exceeded the server's statement budget; retry later.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ServiceUnavailableEncoded"},{"$ref":"#/components/schemas/CountTimeoutEncoded"}]}}}}},"description":"POST form of availabilities.list for conditions/selections that outgrow a URL. Same decoded query fields, defaults, same-AA matching, eligibility, exact counts, locale, response schema and error vocabulary. Send where/facets as JSON values, not strings. Host caps the body at 16 KiB before parsing (413 payload_too_large), shares the GET read limiter bucket and returns Cache-Control: private, no-store. Advertisements reserve no inventory. On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed.","summary":"Query activity availabilities with a JSON body","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogueQueryBody"}}},"required":true}}},"/v1/activities/{id}/availabilities/query":{"post":{"tags":["availabilities"],"operationId":"availabilities.queryForActivity","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"Stable resource UUID scoped to the authenticated operator; see Id."},{"name":"Buchung-Locale","in":"header","schema":{"$ref":"#/components/schemas/Language"},"required":false,"description":"On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed. Only checkout.createHandoff requires a supported Buchung-Locale: absence or malformed values return 400 validation_failed, and well-formed unsupported values return 400 locale_not_supported with details naming the requested and supported locales. Start with site.get to discover the operator's locales. See Language for syntax and normalization."}],"security":[{"channelKey":[]}],"responses":{"200":{"description":"AAs ordered by effective startsAt then UUID; exact total/facet counts count distinct AAs before pagination. Membership, hydration and counts share one request snapshot. Preserve timestamp precision in opaque continuation; each next page re-evaluates current authority and data. Grouping is a client presentation concern, with no group capacity total.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailabilityPage"}}},"headers":{"Cache-Control":{"required":true,"description":"POST catalogue queries must not be cached.","schema":{"type":"string","const":"private, no-store"}},"Content-Language":{"required":true,"description":"Always reports the applied operator locale.","schema":{"$ref":"#/components/schemas/Language"}},"Buchung-Locale-Fallback":{"required":false,"description":"Present only for a well-formed but unsupported Buchung-Locale; echoes the requested value unchanged while the operator's default locale applies. Absent for omitted or supported values.","schema":{"$ref":"#/components/schemas/Language"}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"ForbiddenOrigin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenOriginEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"413":{"description":"PayloadTooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayloadTooLargeEncoded"}}}},"414":{"description":"The raw request target must be strictly below 8 KiB; the host rejects it before routing using this envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable | Exact counting exceeded the server's statement budget; retry later.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ServiceUnavailableEncoded"},{"$ref":"#/components/schemas/CountTimeoutEncoded"}]}}}}},"description":"POST form of availabilities.listForActivity for conditions/selections that outgrow a URL. Same decoded query fields, defaults, activity scope, eligibility, exact counts, locale, response schema and error vocabulary. Send where/facets as JSON values, not strings. Host caps the body at 16 KiB before parsing (413 payload_too_large), shares the GET read limiter bucket and returns Cache-Control: private, no-store. A valid activity outside the requested collection or with no matching AAs returns an empty page with totalCount 0. An unavailable collection returns 404 not_found. On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed.","summary":"Query an activity's availabilities with a JSON body","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogueQueryBody"}}},"required":true}}},"/v1/availabilities/{id}":{"get":{"tags":["availabilities"],"operationId":"availabilities.get","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"Stable resource UUID scoped to the authenticated operator; see Id."},{"name":"Buchung-Locale","in":"header","schema":{"$ref":"#/components/schemas/Language"},"required":false,"description":"On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed. Only checkout.createHandoff requires a supported Buchung-Locale: absence or malformed values return 400 validation_failed, and well-formed unsupported values return 400 locale_not_supported with details naming the requested and supported locales. Start with site.get to discover the operator's locales. See Language for syntax and normalization."}],"security":[{"channelKey":[]}],"responses":{"200":{"description":"One sellable scheduled instance, today one activity availability (AA), with its opaque sku and canonical advertised price/capacity. id identifies the resource for reads; sku is what checkout accepts. A series cohort later appears as one item with startsAt at the first session start and endsAt at the last session end; remaining spans all sessions, all or nothing. Sessions may later be listed as optional occurrences[], never as separate items. startsAt/endsAt are the window interval. Remaining belongs only to this sellable; never sum it across a display group. Public resolved occurrence facts and references omit unavailable/private/suppressed values. Non-upcoming matches carry null price and zero remaining; status distinguishes historical/in-progress matches from upcoming sold-out options. soldOut reflects zero advertised remaining. open is true only for an upcoming option that is not sold out and past bookableFrom; it is false for every non-upcoming match. Advertisements do not reserve inventory or guarantee checkout acceptance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Availability"}}},"headers":{"Content-Language":{"required":true,"description":"Always reports the applied operator locale.","schema":{"$ref":"#/components/schemas/Language"}},"Buchung-Locale-Fallback":{"required":false,"description":"Present only for a well-formed but unsupported Buchung-Locale; echoes the requested value unchanged while the operator's default locale applies. Absent for omitted or supported values.","schema":{"$ref":"#/components/schemas/Language"}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"ForbiddenOrigin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenOriginEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable | Exact counting exceeded the server's statement budget; retry later.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ServiceUnavailableEncoded"},{"$ref":"#/components/schemas/CountTimeoutEncoded"}]}}}}},"description":"Retrieve a concrete AA by UUID, including direct access under a published or unlisted activity. Tenant ownership, live event/variation and active variation link remain required. Missing or ineligible resources return 404. No handle guessing or inventory reservation. On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed.","summary":"Get an activity availability"}},"/v1/activities/{id}/booking-options":{"get":{"tags":["bookingOptions"],"operationId":"bookingOptions.get","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"Stable resource UUID scoped to the authenticated operator; see Id."},{"name":"Buchung-Locale","in":"header","schema":{"$ref":"#/components/schemas/Language"},"required":false,"description":"On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed. Only checkout.createHandoff requires a supported Buchung-Locale: absence or malformed values return 400 validation_failed, and well-formed unsupported values return 400 locale_not_supported with details naming the requested and supported locales. Start with site.get to discover the operator's locales. See Language for syntax and normalization."}],"security":[{"channelKey":[]}],"responses":{"200":{"description":"Dated sellables, each one sellable scheduled instance with the same identity, window and remaining semantics as Availability. Undated sellables such as passes and vouchers will be listed separately. from covers dated options only. An empty options list does not mean not bookable: a stay or bespoke rental is searched, not listed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingOptions"}}},"headers":{"Content-Language":{"required":true,"description":"Always reports the applied operator locale.","schema":{"$ref":"#/components/schemas/Language"}},"Buchung-Locale-Fallback":{"required":false,"description":"Present only for a well-formed but unsupported Buchung-Locale; echoes the requested value unchanged while the operator's default locale applies. Absent for omitted or supported values.","schema":{"$ref":"#/components/schemas/Language"}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"ForbiddenOrigin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenOriginEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable | Exact counting exceeded the server's statement budget; retry later.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ServiceUnavailableEncoded"},{"$ref":"#/components/schemas/CountTimeoutEncoded"}]}}}}},"description":"For a published or unlisted activity UUID, list offerable variants and their advertised prices. The from price excludes sold-out variants. No capacity is reserved. On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed.","summary":"Get booking options"}},"/v1/site":{"get":{"tags":["site"],"operationId":"site.get","parameters":[{"name":"Buchung-Locale","in":"header","schema":{"$ref":"#/components/schemas/Language"},"required":false,"description":"On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed. Only checkout.createHandoff requires a supported Buchung-Locale: absence or malformed values return 400 validation_failed, and well-formed unsupported values return 400 locale_not_supported with details naming the requested and supported locales. Start with site.get to discover the operator's locales. See Language for syntax and normalization."}],"security":[{"channelKey":[]}],"responses":{"200":{"description":"Operator identity, brand, locations, legal links and locale configuration. locale is the applied locale: the operator's default when Buchung-Locale is absent or well-formed but unsupported, otherwise the normalized supported request locale. locales lists all supported codes with the default marked by isDefault; defaultLocale names that default.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Site"}}},"headers":{"Content-Language":{"required":true,"description":"Always reports the applied operator locale.","schema":{"$ref":"#/components/schemas/Language"}},"Buchung-Locale-Fallback":{"required":false,"description":"Present only for a well-formed but unsupported Buchung-Locale; echoes the requested value unchanged while the operator's default locale applies. Absent for omitted or supported values.","schema":{"$ref":"#/components/schemas/Language"}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"ForbiddenOrigin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenOriginEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable | Exact counting exceeded the server's statement budget; retry later.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ServiceUnavailableEncoded"},{"$ref":"#/components/schemas/CountTimeoutEncoded"}]}}}}},"description":"Retrieve operator identity, brand, locations, legal links and supported locales for the authenticated channel. Start with site.get to discover the operator's locales. The response states the applied locale in locale and all supported locales in locales, with the default marked by isDefault and named by defaultLocale. On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed.","summary":"Get site configuration"}},"/v1/checkout/handoff":{"post":{"tags":["checkout"],"operationId":"checkout.createHandoff","parameters":[{"name":"Buchung-Locale","in":"header","schema":{"$ref":"#/components/schemas/Language"},"required":true,"description":"On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed. Only checkout.createHandoff requires a supported Buchung-Locale: absence or malformed values return 400 validation_failed, and well-formed unsupported values return 400 locale_not_supported with details naming the requested and supported locales. Start with site.get to discover the operator's locales. See Language for syntax and normalization."}],"security":[{"channelKey":[]}],"responses":{"200":{"description":"Stateless hosted-checkout handoff; nothing is persisted. The signed seed carries SKUs and quantities only, never prices, and is valid 15 minutes; a second redemption is not guaranteed. Listed prices are for display only. Checkout revalidates price and availability; no capacity is reserved and prices are not frozen. A sold-out SKU remains a successful handoff with a sold_out_at_handoff warning.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutHandoff"}}},"headers":{"Content-Language":{"required":true,"description":"Always reports the applied operator locale.","schema":{"$ref":"#/components/schemas/Language"}}}},"400":{"description":"ValidationFailed | Only checkout.createHandoff returns this error: a well-formed Buchung-Locale is not one of the authenticated operator's supported locales. details must name the requested locale and list the supported locales. Missing or malformed handoff headers return 400 validation_failed. Reads apply the operator's default locale for unsupported values and report the requested value in Buchung-Locale-Fallback instead.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ValidationFailedEncoded"},{"$ref":"#/components/schemas/LocaleNotSupportedEncoded"}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"ForbiddenOrigin","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenOriginEncoded"}}}},"404":{"description":"One or more SKUs do not belong to the operator or are not offerable. Reject the entire request with required per-item details naming each invalid lines[index].sku path; do not disclose foreign ownership. Sold-out SKUs instead return 200 with warnings.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutHandoffNotFoundEncoded"}}}},"409":{"description":"The operator has no verified storefront domain on which to host checkout.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorefrontDomainMissingEncoded"}}}},"413":{"description":"PayloadTooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayloadTooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable | Exact counting exceeded the server's statement budget; retry later.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ServiceUnavailableEncoded"},{"$ref":"#/components/schemas/CountTimeoutEncoded"}]}}}}},"description":"Create a stateless checkout seed and return 200 with an absolute /<lang>/booking?seed=<token> URL on the hosted checkout origin of this channel. lang is the web-store route locale: the applied locale's primary subtag when supported by web-store src/i18n-config.ts, otherwise its defaultLocale. The seed loc claim retains the applied locale derived from the validated Buchung-Locale header. Only checkout.createHandoff requires a supported Buchung-Locale: absence or malformed values return 400 validation_failed, and well-formed unsupported values return 400 locale_not_supported with details naming the requested and supported locales. Nothing is persisted. The signed seed carries SKUs and quantities only, never prices, and is valid 15 minutes; a second redemption is not guaranteed. expiresAt is seed validity only, not a reservation, a price freeze or a quote deadline. Listed prices are for display only; checkout revalidates price and availability. This creates no booking and reserves no capacity. Empty or malformed bodies return 400 validation_failed; foreign or non-offerable SKUs reject the entire request with 404 not_found and required per-item details. Sold-out SKUs return 200 with sold_out_at_handoff warnings. No verified storefront domain returns 409 storefront_domain_missing. A missing checkout signing key closes the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23); configuration errors never return 500 internal_error. Machine credentials never authorize storefront checkout handoffs. The rate limiter is client-scoped. Host caps storefront POST request bodies at 16 KiB before parsing.","summary":"Create a checkout handoff","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutHandoffCreate"}}},"required":true}}},"/v1/management/events":{"get":{"tags":["management"],"operationId":"management.listEvents","parameters":[{"name":"from","in":"query","schema":{"allOf":[{"$ref":"#/components/schemas/EventCalendarDate"}],"description":"First included local date (YYYY-MM-DD) in the operator's time zone. Defaults to today."},"required":false,"description":"First included local date (YYYY-MM-DD) in the operator's time zone. Defaults to today."},{"name":"to","in":"query","schema":{"allOf":[{"$ref":"#/components/schemas/EventCalendarDate"}],"description":"Last included local date (YYYY-MM-DD) in the operator's time zone. Must be on or after from. Omit for an open end."},"required":false,"description":"Last included local date (YYYY-MM-DD) in the operator's time zone. Must be on or after from. Omit for an open end."},{"name":"query","in":"query","schema":{"type":"string","maxLength":80,"description":"Search for keywords in the internal title and handle. The 80-character limit bounds input to the full-text search. The title and handle are stored as text with no declared character limit."},"required":false,"description":"Search for keywords in the internal title and handle. The 80-character limit bounds input to the full-text search. The title and handle are stored as text with no declared character limit."},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"description":"Page size 1–100, default 20, for client ergonomics and bounded page hydration.","default":20},"required":false,"description":"Page size 1–100, default 20, to bound event page hydration."},{"name":"cursor","in":"query","schema":{"$ref":"#/components/schemas/Cursor"},"required":false,"description":"Opaque continuation from nextCursor (max 4 KiB). Repeat the same filters and limit."}],"security":[{"integrationBearer":[]}],"responses":{"200":{"description":"ManagementEventPage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagementEventPage"}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"413":{"description":"PayloadTooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayloadTooLargeEncoded"}}}},"414":{"description":"The raw request target must be strictly below 8 KiB; the host rejects it before routing using this envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable | Exact counting exceeded the server's statement budget; retry later.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ServiceUnavailableEncoded"},{"$ref":"#/components/schemas/CountTimeoutEncoded"}]}}}}},"description":"List events visible in the operator's dashboard event list that overlap the inclusive local date window. Defaults to today through the open end, including events that ended earlier today. Sorts by start, internal title (case-insensitive), then UUID. Repeat the same filters and limit with nextCursor. If the cursor no longer matches, restart from the first page. totalCount is exact for each fresh request snapshot and can change between pages. evaluatedAt is the instant used to evaluate the page. A database statement timeout returns retryable 503 count_timeout. Requires events:read. Registration and occupancy data are excluded. Machine integration bearer credentials only; storefront channel keys never authorize these operations. Buchung-Locale is not used; translations are addressed explicitly. Host enforces a 64 KiB request-body cap before parsing for every method with a body, including DELETE. Per-machine limits: 600 reads/minute, 300 writes/minute; over limit returns 429 rate_limited. Limiter store outage falls back to per-instance memory for reads; writes return 503 service_unavailable with Retry-After: 30.","summary":"List events"}},"/v1/management/events/{eventId}":{"get":{"tags":["management"],"operationId":"management.getEvent","parameters":[{"name":"eventId","in":"path","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"Event UUID scoped to the integration operator; see Id."}],"security":[{"integrationBearer":[]}],"responses":{"200":{"description":"ManagementEventDetail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagementEventDetail"}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"413":{"description":"PayloadTooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayloadTooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableEncoded"}}}}},"description":"Read one dashboard-visible event. Missing, deleted, hidden and foreign events return 404 not_found. Includes the first 100 current availabilities by start, activity title and UUID. Each availability includes its ID, activity, variation, start and end. The cap covers the observed event sizes and bounds response hydration. availabilitiesTruncated is true if more exist. evaluatedAt is the instant used to evaluate event timing. Requires events:read. Registration and occupancy data are excluded. Machine integration bearer credentials only; storefront channel keys never authorize these operations. Buchung-Locale is not used; translations are addressed explicitly. Host enforces a 64 KiB request-body cap before parsing for every method with a body, including DELETE. Per-machine limits: 600 reads/minute, 300 writes/minute; over limit returns 429 rate_limited. Limiter store outage falls back to per-instance memory for reads; writes return 503 service_unavailable with Retry-After: 30.","summary":"Get an event"}},"/v1/management/custom-definitions":{"get":{"tags":["management"],"operationId":"management.listDefinitions","parameters":[{"name":"includeRetired","in":"query","schema":{"type":"boolean","default":false},"required":false,"description":"Boolean, default false. True returns active definitions (at most 200) plus at most the 500 most recently retired, including unexposed entries. No pagination."}],"security":[{"integrationBearer":[]}],"responses":{"200":{"description":"Active definitions (at most 200), including unexposed entries. includeRetired=true adds at most the 500 most recently retired definitions; default false. No pagination.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDefinitionList"}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"413":{"description":"PayloadTooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayloadTooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableEncoded"}}}}},"description":"List the operator's definitions, including unexposed entries. includeRetired is a boolean defaulting to false; true returns active definitions (at most 200) plus at most the 500 most recently retired. No pagination. Requires activities:read. Machine integration bearer credentials only; storefront channel keys never authorize these operations. Buchung-Locale is not used; translations are addressed explicitly. Host enforces a 64 KiB request-body cap before parsing for every method with a body, including DELETE. Per-machine limits: 600 reads/minute, 300 writes/minute; over limit returns 429 rate_limited. Limiter store outage falls back to per-instance memory for reads; writes return 503 service_unavailable with Retry-After: 30.","summary":"List custom definitions"},"post":{"tags":["management"],"operationId":"management.createDefinition","parameters":[],"security":[{"integrationBearer":[]}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CustomDefinition"}]}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"The expected revision is stale; required object details contain the current revision (null when the value is currently absent; retry with expectedRevision: null) and optionally the stored value. Deleting a value on an archived activity returns currentRevision only; reads there return not_found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisionConflictEncoded"}}}},"413":{"description":"PayloadTooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayloadTooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableEncoded"}}}}},"description":"Create an unexposed definition with explicit translations and closed type-specific constraints. Requires activities:write. Machine integration bearer credentials only; storefront channel keys never authorize these operations. Buchung-Locale is not used; translations are addressed explicitly. Host enforces a 64 KiB request-body cap before parsing for every method with a body, including DELETE. Per-machine limits: 600 reads/minute, 300 writes/minute; over limit returns 429 rate_limited. Limiter store outage falls back to per-instance memory for reads; writes return 503 service_unavailable with Retry-After: 30.","summary":"Create a custom definition","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDefinitionCreate"}}},"required":true}}},"/v1/management/custom-definitions/{id}":{"get":{"tags":["management"],"operationId":"management.getDefinition","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"Stable resource UUID scoped to the authenticated operator; see Id."}],"security":[{"integrationBearer":[]}],"responses":{"200":{"description":"Management definition, including unexposed and retired entries. type is a closed discriminator (text, text_list, boolean, number, choice, json, pdf); localized is a closed boolean constrained by that type. Stored text maxLength and text_list maxItems are required, including server defaults. Translations are explicit; no Buchung-Locale header or fallback projection.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDefinition"}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"413":{"description":"PayloadTooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayloadTooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableEncoded"}}}}},"description":"Retrieve a definition by UUID under the integration's operator. Foreign or unknown ids return 404. Requires activities:read. Machine integration bearer credentials only; storefront channel keys never authorize these operations. Buchung-Locale is not used; translations are addressed explicitly. Host enforces a 64 KiB request-body cap before parsing for every method with a body, including DELETE. Per-machine limits: 600 reads/minute, 300 writes/minute; over limit returns 429 rate_limited. Limiter store outage falls back to per-instance memory for reads; writes return 503 service_unavailable with Retry-After: 30.","summary":"Get a custom definition"},"patch":{"tags":["management"],"operationId":"management.updateDefinition","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"Stable resource UUID scoped to the authenticated operator; see Id."}],"security":[{"integrationBearer":[]}],"responses":{"200":{"description":"Management definition, including unexposed and retired entries. type is a closed discriminator (text, text_list, boolean, number, choice, json, pdf); localized is a closed boolean constrained by that type. Stored text maxLength and text_list maxItems are required, including server defaults. Translations are explicit; no Buchung-Locale header or fallback projection.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDefinition"}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"The expected revision is stale; required object details contain the current revision (null when the value is currently absent; retry with expectedRevision: null) and optionally the stored value. Deleting a value on an archived activity returns currentRevision only; reads there return not_found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisionConflictEncoded"}}}},"413":{"description":"PayloadTooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayloadTooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableEncoded"}}}}},"description":"Update explicit labels, option labels or widen constraints with expectedRevision. Type and localized are immutable. Requires activities:write. Machine integration bearer credentials only; storefront channel keys never authorize these operations. Buchung-Locale is not used; translations are addressed explicitly. Host enforces a 64 KiB request-body cap before parsing for every method with a body, including DELETE. Per-machine limits: 600 reads/minute, 300 writes/minute; over limit returns 429 rate_limited. Limiter store outage falls back to per-instance memory for reads; writes return 503 service_unavailable with Retry-After: 30.","summary":"Update a custom definition","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDefinitionUpdate"}}},"required":true}}},"/v1/management/custom-definitions/{id}/exposure":{"post":{"tags":["management"],"operationId":"management.setExposure","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"Stable resource UUID scoped to the authenticated operator; see Id."}],"security":[{"integrationBearer":[]}],"responses":{"200":{"description":"Updated definition and affectedValueCount of valid stored values on published/hidden activities affected by the exposure change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomExposureResult"}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"The expected revision is stale; required object details contain the current revision (null when the value is currently absent; retry with expectedRevision: null) and optionally the stored value. Deleting a value on an archived activity returns currentRevision only; reads there return not_found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisionConflictEncoded"}}}},"413":{"description":"PayloadTooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayloadTooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableEncoded"}}}}},"description":"Toggle exposure with expectedRevision; returns the updated definition and affectedValueCount of valid values on published/hidden activities so the visibility consequence is explicit. Requires activities:write. Machine integration bearer credentials only; storefront channel keys never authorize these operations. Buchung-Locale is not used; translations are addressed explicitly. Host enforces a 64 KiB request-body cap before parsing for every method with a body, including DELETE. Per-machine limits: 600 reads/minute, 300 writes/minute; over limit returns 429 rate_limited. Limiter store outage falls back to per-instance memory for reads; writes return 503 service_unavailable with Retry-After: 30.","summary":"Set custom definition exposure","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomExposure"}}},"required":true}}},"/v1/management/custom-definitions/{id}/retire":{"post":{"tags":["management"],"operationId":"management.retireDefinition","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"Stable resource UUID scoped to the authenticated operator; see Id."}],"security":[{"integrationBearer":[]}],"responses":{"200":{"description":"Management definition, including unexposed and retired entries. type is a closed discriminator (text, text_list, boolean, number, choice, json, pdf); localized is a closed boolean constrained by that type. Stored text maxLength and text_list maxItems are required, including server defaults. Translations are explicit; no Buchung-Locale header or fallback projection.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDefinition"}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"The expected revision is stale; required object details contain the current revision (null when the value is currently absent; retry with expectedRevision: null) and optionally the stored value. Deleting a value on an archived activity returns currentRevision only; reads there return not_found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisionConflictEncoded"}}}},"413":{"description":"PayloadTooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayloadTooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableEncoded"}}}}},"description":"Retire with expectedRevision, preventing new value writes and public projection while retaining stored values for management reads and allowing their deletion. Requires activities:write. Machine integration bearer credentials only; storefront channel keys never authorize these operations. Buchung-Locale is not used; translations are addressed explicitly. Host enforces a 64 KiB request-body cap before parsing for every method with a body, including DELETE. Per-machine limits: 600 reads/minute, 300 writes/minute; over limit returns 429 rate_limited. Limiter store outage falls back to per-instance memory for reads; writes return 503 service_unavailable with Retry-After: 30.","summary":"Retire a custom definition","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpectedRevision"}}},"required":true}}},"/v1/management/activities/{id}/custom-values":{"get":{"tags":["management"],"operationId":"management.listValues","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"Stable resource UUID scoped to the authenticated operator; see Id."}],"security":[{"integrationBearer":[]}],"responses":{"200":{"description":"Every stored translation and revision for the activity, without fallback.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomValueList"}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"413":{"description":"PayloadTooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayloadTooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableEncoded"}}}}},"description":"Read every stored translation and revision without materializing locale fallback. Requires activities:read. Machine integration bearer credentials only; storefront channel keys never authorize these operations. Buchung-Locale is not used; translations are addressed explicitly. Host enforces a 64 KiB request-body cap before parsing for every method with a body, including DELETE. Per-machine limits: 600 reads/minute, 300 writes/minute; over limit returns 429 rate_limited. Limiter store outage falls back to per-instance memory for reads; writes return 503 service_unavailable with Retry-After: 30.","summary":"List an activity's custom values"}},"/v1/management/activities/{id}/custom-values/{definitionId}":{"put":{"tags":["management"],"operationId":"management.putValue","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"Stable resource UUID scoped to the authenticated operator; see Id."},{"name":"definitionId","in":"path","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"Custom definition UUID scoped to the integration operator; see Id."},{"name":"locale","in":"query","schema":{"$ref":"#/components/schemas/Language"},"required":false,"description":"Explicit stored translation locale; required by localized definitions and forbidden by invariant definitions. No fallback; see Language."}],"security":[{"integrationBearer":[]}],"responses":{"200":{"description":"CustomValueSaved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomValueSaved"}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"The expected revision is stale; required object details contain the current revision (null when the value is currently absent; retry with expectedRevision: null) and optionally the stored value. Deleting a value on an archived activity returns currentRevision only; reads there return not_found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisionConflictEncoded"}}}},"413":{"description":"PayloadTooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayloadTooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableEncoded"}}}}},"description":"Replace the whole value. Archived activities return not_found. expectedRevision is required; null means expected absent. For json definitions only, JSON null stores a value. Localized definitions require an explicit supported locale; invariant definitions forbid one. Cumulative serialized custom values per activity are capped at 64 KiB at write time; overflow returns 400 validation_failed with a budget detail. A pdf value whose documentId does not name a live document of the operator whose current file is a validated catalogue PDF returns 400 validation_failed; 422 is reserved for the three document upload operations. Requires activities:write. Machine integration bearer credentials only; storefront channel keys never authorize these operations. Buchung-Locale is not used; translations are addressed explicitly. Host enforces a 64 KiB request-body cap before parsing for every method with a body, including DELETE. Per-machine limits: 600 reads/minute, 300 writes/minute; over limit returns 429 rate_limited. Limiter store outage falls back to per-instance memory for reads; writes return 503 service_unavailable with Retry-After: 30.","summary":"Replace a custom value","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomValuePut"}}},"required":true}},"delete":{"tags":["management"],"operationId":"management.deleteValue","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"Stable resource UUID scoped to the authenticated operator; see Id."},{"name":"definitionId","in":"path","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"Custom definition UUID scoped to the integration operator; see Id."},{"name":"locale","in":"query","schema":{"$ref":"#/components/schemas/Language"},"required":false,"description":"Explicit stored translation locale; required by localized definitions and forbidden by invariant definitions. No fallback; see Language."}],"security":[{"integrationBearer":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"The expected revision is stale; required object details contain the current revision (null when the value is currently absent; retry with expectedRevision: null) and optionally the stored value. Deleting a value on an archived activity returns currentRevision only; reads there return not_found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisionConflictEncoded"}}}},"413":{"description":"PayloadTooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayloadTooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableEncoded"}}}}},"description":"Delete the explicitly addressed value with expectedRevision in the body; deletion remains allowed under a retired definition and on archived activities because removing a value is not a content edit. Missing or foreign activities still return not_found. A stale revision on an archived activity returns currentRevision only, without currentValue; reads there return not_found. Unlinking a pdf reference does not unpublish the document. Localized definitions require locale; invariant definitions forbid it. Requires activities:write. Machine integration bearer credentials only; storefront channel keys never authorize these operations. Buchung-Locale is not used; translations are addressed explicitly. Host enforces a 64 KiB request-body cap before parsing for every method with a body, including DELETE. Per-machine limits: 600 reads/minute, 300 writes/minute; over limit returns 429 rate_limited. Limiter store outage falls back to per-instance memory for reads; writes return 503 service_unavailable with Retry-After: 30.","summary":"Delete a custom value","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpectedRevision"}}},"required":true}}},"/v1/management/documents/uploads":{"post":{"tags":["management"],"operationId":"management.prepareDocument","parameters":[],"security":[{"integrationBearer":[]}],"responses":{"200":{"description":"Private upload session and signed URL; do not log the signed URL. Uploading publishes nothing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentPrepared"}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"413":{"description":"PayloadTooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayloadTooLargeEncoded"}}}},"422":{"description":"A document upload request is ineligible: PDF bytes, size or private upload target do not satisfy catalogue document policy. Only the three document upload operations use this 422 error; document operations and putValue answer an unusable candidate or reference with 400 validation_failed. Failed finalization instead returns 200 with status failed and a reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogueDocumentIneligibleEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableEncoded"}}}}},"description":"Prepare a private catalogue_document upload, optionally attributed to an activity, PDF only, at most 20 MiB. Requires media:upload and catalogue_pdf_publishing_enabled for the operator. When disabled, returns 403 forbidden with a message naming the catalogue_pdf_publishing_enabled rollout flag. Upload bytes using the signed upload URL. Machine integration bearer credentials only; storefront channel keys never authorize these operations. Buchung-Locale is not used; translations are addressed explicitly. Host enforces a 64 KiB request-body cap before parsing for every method with a body, including DELETE. Per-machine limits: 600 reads/minute, 300 writes/minute; over limit returns 429 rate_limited. Limiter store outage falls back to per-instance memory for reads; writes return 503 service_unavailable with Retry-After: 30.","summary":"Prepare a catalogue document upload","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentPrepare"}}},"required":true}}},"/v1/management/documents/uploads/{id}/finalize":{"post":{"tags":["management"],"operationId":"management.finalizeDocument","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"Stable resource UUID scoped to the authenticated operator; see Id."}],"security":[{"integrationBearer":[]}],"responses":{"200":{"description":"Canonical upload-session status. status is a closed discriminator: uploading, uploaded, finalizing, cancelled, ready or failed; each branch defines its mediaId/reason requirements. The ready branch carries a required, non-null mediaId, a private validated candidate for createDocument or replaceDocumentFile. Finalization and status polling return the same shape. Failed finalization returns 200, never 422, with status failed and a required reason of 1..256 characters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentUploadStatus"}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"413":{"description":"PayloadTooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayloadTooLargeEncoded"}}}},"422":{"description":"A document upload request is ineligible: PDF bytes, size or private upload target do not satisfy catalogue document policy. Only the three document upload operations use this 422 error; document operations and putValue answer an unusable candidate or reference with 400 validation_failed. Failed finalization instead returns 200 with status failed and a reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogueDocumentIneligibleEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableEncoded"}}}}},"description":"Finalize the upload once, validating actual size, sniffed PDF MIME, signature and structure; returns canonical session status. Failed finalization returns 200 with status failed and a required reason (1..256 characters), never 422. Requires media:upload. Nothing is labelled scanned or published. Machine integration bearer credentials only; storefront channel keys never authorize these operations. Buchung-Locale is not used; translations are addressed explicitly. Host enforces a 64 KiB request-body cap before parsing for every method with a body, including DELETE. Per-machine limits: 600 reads/minute, 300 writes/minute; over limit returns 429 rate_limited. Limiter store outage falls back to per-instance memory for reads; writes return 503 service_unavailable with Retry-After: 30.","summary":"Finalize a catalogue document upload"}},"/v1/management/documents/uploads/{id}":{"get":{"tags":["management"],"operationId":"management.documentStatus","parameters":[{"name":"id","in":"path","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"Stable resource UUID scoped to the authenticated operator; see Id."}],"security":[{"integrationBearer":[]}],"responses":{"200":{"description":"Canonical upload-session status. status is a closed discriminator: uploading, uploaded, finalizing, cancelled, ready or failed; each branch defines its mediaId/reason requirements. The ready branch carries a required, non-null mediaId, a private validated candidate for createDocument or replaceDocumentFile. Finalization and status polling return the same shape. Failed finalization returns 200, never 422, with status failed and a required reason of 1..256 characters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentUploadStatus"}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"413":{"description":"PayloadTooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayloadTooLargeEncoded"}}}},"422":{"description":"A document upload request is ineligible: PDF bytes, size or private upload target do not satisfy catalogue document policy. Only the three document upload operations use this 422 error; document operations and putValue answer an unusable candidate or reference with 400 validation_failed. Failed finalization instead returns 200 with status failed and a reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogueDocumentIneligibleEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableEncoded"}}}}},"description":"Read-only polling with the same fields as finalization, including private candidate mediaId. Failed finalization returns 200 with status failed and a required reason (1..256 characters), never 422. Requires media:read. Machine integration bearer credentials only; storefront channel keys never authorize these operations. Buchung-Locale is not used; translations are addressed explicitly. Host enforces a 64 KiB request-body cap before parsing for every method with a body, including DELETE. Per-machine limits: 600 reads/minute, 300 writes/minute; over limit returns 429 rate_limited. Limiter store outage falls back to per-instance memory for reads; writes return 503 service_unavailable with Retry-After: 30.","summary":"Get catalogue document upload status"}},"/v1/management/documents":{"get":{"tags":["management"],"operationId":"management.listDocuments","parameters":[],"security":[{"integrationBearer":[]}],"responses":{"200":{"description":"At most the 500 most recently updated documents of the operator that are not deleted, published or not, most recently updated first. No pagination.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperatorDocumentList"}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"413":{"description":"PayloadTooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayloadTooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableEncoded"}}}}},"description":"List the operator's documents that are not deleted, published or not, each with its current file, revision, reference count and, while published, its storefront URL. Returns at most the 500 most recently updated documents, most recently updated first. No pagination. This resource exposes only documents whose current file is a validated catalogue PDF; other document files (event attachments and legacy event documents) are managed in the dashboard and return 404 here. Requires media:read. Machine integration bearer credentials only; storefront channel keys never authorize these operations. Buchung-Locale is not used; translations are addressed explicitly. Host enforces a 64 KiB request-body cap before parsing for every method with a body, including DELETE. Per-machine limits: 600 reads/minute, 300 writes/minute; over limit returns 429 rate_limited. Limiter store outage falls back to per-instance memory for reads; writes return 503 service_unavailable with Retry-After: 30.","summary":"List documents"},"post":{"tags":["management"],"operationId":"management.createDocument","parameters":[],"security":[{"integrationBearer":[]}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OperatorDocument"}]}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"413":{"description":"PayloadTooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayloadTooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableEncoded"}}}}},"description":"Create an unpublished document from the mediaId of a ready catalogue document upload, which the document then owns. Bytes never leave the private bucket. The document URL is the storefront's own route, which answers a 302 to a short-lived signed URL of the current file only while the document is published, so unpublishing takes effect on the next request. A candidate of another operator, one that is not a validated catalogue PDF or one another document already owns returns 400 validation_failed. Requires media:upload and catalogue_pdf_publishing_enabled for the operator. When disabled, returns 403 forbidden with a message naming the catalogue_pdf_publishing_enabled rollout flag. Machine integration bearer credentials only; storefront channel keys never authorize these operations. Buchung-Locale is not used; translations are addressed explicitly. Host enforces a 64 KiB request-body cap before parsing for every method with a body, including DELETE. Per-machine limits: 600 reads/minute, 300 writes/minute; over limit returns 429 rate_limited. Limiter store outage falls back to per-instance memory for reads; writes return 503 service_unavailable with Retry-After: 30.","summary":"Create a document","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentCreate"}}},"required":true}}},"/v1/management/documents/{documentId}":{"get":{"tags":["management"],"operationId":"management.getDocument","parameters":[{"name":"documentId","in":"path","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"Document UUID scoped to the integration operator; see Id."}],"security":[{"integrationBearer":[]}],"responses":{"200":{"description":"Operator-level document with a stable id, a display name, one current validated PDF and a published flag. Bytes never leave the private bucket. The URL is the storefront's own route, which answers a 302 to a short-lived signed URL of the current file only while the document is published, so unpublishing takes effect on the next request; copies clients already downloaded cannot be recalled.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperatorDocument"}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"413":{"description":"PayloadTooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayloadTooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableEncoded"}}}}},"description":"Retrieve a document by UUID under the integration's operator. Foreign, unknown or deleted ids return 404. This resource exposes only documents whose current file is a validated catalogue PDF; other document files (event attachments and legacy event documents) are managed in the dashboard and return 404 here. Requires media:read. Machine integration bearer credentials only; storefront channel keys never authorize these operations. Buchung-Locale is not used; translations are addressed explicitly. Host enforces a 64 KiB request-body cap before parsing for every method with a body, including DELETE. Per-machine limits: 600 reads/minute, 300 writes/minute; over limit returns 429 rate_limited. Limiter store outage falls back to per-instance memory for reads; writes return 503 service_unavailable with Retry-After: 30.","summary":"Get a document"},"patch":{"tags":["management"],"operationId":"management.renameDocument","parameters":[{"name":"documentId","in":"path","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"Document UUID scoped to the integration operator; see Id."}],"security":[{"integrationBearer":[]}],"responses":{"200":{"description":"Operator-level document with a stable id, a display name, one current validated PDF and a published flag. Bytes never leave the private bucket. The URL is the storefront's own route, which answers a 302 to a short-lived signed URL of the current file only while the document is published, so unpublishing takes effect on the next request; copies clients already downloaded cannot be recalled.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperatorDocument"}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"The expected revision is stale; required object details contain the current revision (null when the value is currently absent; retry with expectedRevision: null) and optionally the stored value. Deleting a value on an archived activity returns currentRevision only; reads there return not_found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisionConflictEncoded"}}}},"413":{"description":"PayloadTooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayloadTooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableEncoded"}}}}},"description":"Change the display name with expectedRevision. The storefront fileName and URL slug follow; the slug is cosmetic and old links keep resolving. A stale expectedRevision returns 409 revision_conflict with the document's currentRevision in the required details. Requires media:write. Machine integration bearer credentials only; storefront channel keys never authorize these operations. Buchung-Locale is not used; translations are addressed explicitly. Host enforces a 64 KiB request-body cap before parsing for every method with a body, including DELETE. Per-machine limits: 600 reads/minute, 300 writes/minute; over limit returns 429 rate_limited. Limiter store outage falls back to per-instance memory for reads; writes return 503 service_unavailable with Retry-After: 30.","summary":"Rename a document","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentRename"}}},"required":true}},"delete":{"tags":["management"],"operationId":"management.deleteDocument","parameters":[{"name":"documentId","in":"path","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"Document UUID scoped to the integration operator; see Id."}],"security":[{"integrationBearer":[]}],"responses":{"204":{"description":"<No Content>"},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"The expected revision is stale; required object details contain the current revision (null when the value is currently absent; retry with expectedRevision: null) and optionally the stored value. Deleting a value on an archived activity returns currentRevision only; reads there return not_found. | The document cannot be deleted while custom fact values or event attachments reference it; required object details carry referenceCount and references (value slots with activityId, handle, archived, definitionId, key, locale and revision). referenceCount is the total number of references that block deletion: custom fact values plus event attachments. references lists only custom fact value slots (first 50, ordered by activity id, key then locale (null last)), because those are deletable through the management API. Event attachments are counted but not listed and are detached in the dashboard. When references is empty and referenceCount is still above zero, the remaining blockers are event attachments. Archived activities still count to prevent dangling PDF facts after unarchive. The 409 body is a diagnostic, not a listing API. Delete each referenced value at /activities/{activityId}/custom-values/{definitionId} with expectedRevision = revision and the locale query for localized values; invariant locales are null and omitted from DELETE. This also addresses retired definitions without includeRetired, including on archived activities. Remove all references before retrying, or unpublish to hide the document now.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RevisionConflictEncoded"},{"$ref":"#/components/schemas/DocumentReferencedEncoded"}]}}}},"413":{"description":"PayloadTooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayloadTooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableEncoded"}}}}},"description":"Delete the document and its current file with expectedRevision in the body. Refused with 409 document_referenced, whose details carry referenceCount and references [{ activityId, handle, archived, definitionId, key, locale, revision }] (individual value slots), while any custom fact value or event attachment references it, including on archived activities. A 409 body is a diagnostic, not a listing API. referenceCount is the total number of references that block deletion: custom fact values plus event attachments. references lists only custom fact value slots (first 50, ordered by activity id, key then locale (null last)), because those are deletable through the management API. Event attachments are counted but not listed and are detached in the dashboard. When references is empty and referenceCount is still above zero, the remaining blockers are event attachments. Use each reference's revision as expectedRevision when deleting its value, including on archived activities; locale is null for invariant values and must be omitted from their DELETE query. Repeat document deletion until no references remain; unpublish is the way to hide a document now, delete is housekeeping. A stale expectedRevision returns 409 revision_conflict with the document's currentRevision in the required details. Requires media:write. Machine integration bearer credentials only; storefront channel keys never authorize these operations. Buchung-Locale is not used; translations are addressed explicitly. Host enforces a 64 KiB request-body cap before parsing for every method with a body, including DELETE. Per-machine limits: 600 reads/minute, 300 writes/minute; over limit returns 429 rate_limited. Limiter store outage falls back to per-instance memory for reads; writes return 503 service_unavailable with Retry-After: 30.","summary":"Delete a document","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpectedRevision"}}},"required":true}}},"/v1/management/documents/{documentId}/file":{"post":{"tags":["management"],"operationId":"management.replaceDocumentFile","parameters":[{"name":"documentId","in":"path","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"Document UUID scoped to the integration operator; see Id."}],"security":[{"integrationBearer":[]}],"responses":{"200":{"description":"Operator-level document with a stable id, a display name, one current validated PDF and a published flag. Bytes never leave the private bucket. The URL is the storefront's own route, which answers a 302 to a short-lived signed URL of the current file only while the document is published, so unpublishing takes effect on the next request; copies clients already downloaded cannot be recalled.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperatorDocument"}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"The expected revision is stale; required object details contain the current revision (null when the value is currently absent; retry with expectedRevision: null) and optionally the stored value. Deleting a value on an archived activity returns currentRevision only; reads there return not_found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisionConflictEncoded"}}}},"413":{"description":"PayloadTooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayloadTooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableEncoded"}}}}},"description":"Swap the current file for another validated upload candidate in one step, with expectedRevision. Every custom fact reference and the storefront URL follow; publication is unchanged, and the previous file is deleted. Bytes never leave the private bucket. The document URL is the storefront's own route, which answers a 302 to a short-lived signed URL of the current file only while the document is published, so unpublishing takes effect on the next request. An unusable candidate returns 400 validation_failed as on createDocument. A stale expectedRevision returns 409 revision_conflict with the document's currentRevision in the required details. Requires media:upload. Machine integration bearer credentials only; storefront channel keys never authorize these operations. Buchung-Locale is not used; translations are addressed explicitly. Host enforces a 64 KiB request-body cap before parsing for every method with a body, including DELETE. Per-machine limits: 600 reads/minute, 300 writes/minute; over limit returns 429 rate_limited. Limiter store outage falls back to per-instance memory for reads; writes return 503 service_unavailable with Retry-After: 30.","summary":"Replace a document's file","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentFileReplace"}}},"required":true}}},"/v1/management/documents/{documentId}/publish":{"post":{"tags":["management"],"operationId":"management.publishDocument","parameters":[{"name":"documentId","in":"path","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"Document UUID scoped to the integration operator; see Id."}],"security":[{"integrationBearer":[]}],"responses":{"200":{"description":"Operator-level document with a stable id, a display name, one current validated PDF and a published flag. Bytes never leave the private bucket. The URL is the storefront's own route, which answers a 302 to a short-lived signed URL of the current file only while the document is published, so unpublishing takes effect on the next request; copies clients already downloaded cannot be recalled.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperatorDocument"}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"The expected revision is stale; required object details contain the current revision (null when the value is currently absent; retry with expectedRevision: null) and optionally the stored value. Deleting a value on an archived activity returns currentRevision only; reads there return not_found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisionConflictEncoded"}}}},"413":{"description":"PayloadTooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayloadTooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableEncoded"}}}}},"description":"Publish with expectedRevision: the storefront URL starts answering and pdf custom facts referencing the document project it. Bytes never leave the private bucket. The document URL is the storefront's own route, which answers a 302 to a short-lived signed URL of the current file only while the document is published, so unpublishing takes effect on the next request. A stale expectedRevision returns 409 revision_conflict with the document's currentRevision in the required details. Requires media:write and catalogue_pdf_publishing_enabled for the operator. When disabled, returns 403 forbidden with a message naming the catalogue_pdf_publishing_enabled rollout flag. Machine integration bearer credentials only; storefront channel keys never authorize these operations. Buchung-Locale is not used; translations are addressed explicitly. Host enforces a 64 KiB request-body cap before parsing for every method with a body, including DELETE. Per-machine limits: 600 reads/minute, 300 writes/minute; over limit returns 429 rate_limited. Limiter store outage falls back to per-instance memory for reads; writes return 503 service_unavailable with Retry-After: 30.","summary":"Publish a document","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpectedRevision"}}},"required":true}}},"/v1/management/documents/{documentId}/unpublish":{"post":{"tags":["management"],"operationId":"management.unpublishDocument","parameters":[{"name":"documentId","in":"path","schema":{"$ref":"#/components/schemas/Id"},"required":true,"description":"Document UUID scoped to the integration operator; see Id."}],"security":[{"integrationBearer":[]}],"responses":{"200":{"description":"Operator-level document with a stable id, a display name, one current validated PDF and a published flag. Bytes never leave the private bucket. The URL is the storefront's own route, which answers a 302 to a short-lived signed URL of the current file only while the document is published, so unpublishing takes effect on the next request; copies clients already downloaded cannot be recalled.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperatorDocument"}}}},"400":{"description":"ValidationFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationFailedEncoded"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedEncoded"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenEncoded"}}}},"404":{"description":"NotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundEncoded"}}}},"409":{"description":"The expected revision is stale; required object details contain the current revision (null when the value is currently absent; retry with expectedRevision: null) and optionally the stored value. Deleting a value on an archived activity returns currentRevision only; reads there return not_found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisionConflictEncoded"}}}},"413":{"description":"PayloadTooLarge","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayloadTooLargeEncoded"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedEncoded"}}}},"500":{"description":"Unexpected runtime failure. Configuration errors close the API mount with 404 not_found in the shared error envelope and an api_misconfigured log line (R23), never 500 internal_error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorEncoded"}}}},"503":{"description":"ServiceUnavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableEncoded"}}}}},"description":"Unpublish with expectedRevision: the storefront URL answers 404 from the next request and pdf custom facts referencing the document project as absent. Copies clients already downloaded cannot be recalled. Bytes never leave the private bucket. The document URL is the storefront's own route, which answers a 302 to a short-lived signed URL of the current file only while the document is published, so unpublishing takes effect on the next request. A stale expectedRevision returns 409 revision_conflict with the document's currentRevision in the required details. Requires media:write. Never gated by catalogue_pdf_publishing_enabled: hiding a document always works, even when the rollout flag is off. Machine integration bearer credentials only; storefront channel keys never authorize these operations. Buchung-Locale is not used; translations are addressed explicitly. Host enforces a 64 KiB request-body cap before parsing for every method with a body, including DELETE. Per-machine limits: 600 reads/minute, 300 writes/minute; over limit returns 429 rate_limited. Limiter store outage falls back to per-instance memory for reads; writes return 503 service_unavailable with Retry-After: 30.","summary":"Unpublish a document","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpectedRevision"}}},"required":true}}}},"components":{"schemas":{"UnauthorizedEncoded":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized"],"description":"Closed error discriminator for this HTTP error variant."},"message":{"type":"string"},"doc_url":{"type":"string","enum":["https://api.buchungapp.com/v1/docs#errors/unauthorized"],"description":"Closed documentation URL corresponding to this error code."},"request_id":{"type":"string"},"details":{"type":"array","items":{"$ref":"#/components/schemas/ErrorDetail"}}},"required":["code","message","doc_url","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"ErrorDetail":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false,"description":"A validation issue at a request field path."},"DocumentReferencedEncoded":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["document_referenced"],"description":"Closed error discriminator for this HTTP error variant."},"message":{"type":"string"},"doc_url":{"type":"string","enum":["https://api.buchungapp.com/v1/docs#errors/document_referenced"],"description":"Closed documentation URL corresponding to this error code."},"request_id":{"type":"string"},"details":{"type":"object","properties":{"referenceCount":{"type":"integer","minimum":1,"maximum":9007199254740991},"references":{"type":"array","items":{"type":"object","properties":{"activityId":{"$ref":"#/components/schemas/Id"},"handle":{"type":"string"},"archived":{"type":"boolean"},"definitionId":{"$ref":"#/components/schemas/Id"},"key":{"$ref":"#/components/schemas/CustomDefinitionKey"},"locale":{"anyOf":[{"$ref":"#/components/schemas/Language"},{"type":"null"}]},"revision":{"$ref":"#/components/schemas/Revision"}},"required":["activityId","handle","archived","definitionId","key","locale","revision"],"additionalProperties":false},"maxItems":50}},"required":["referenceCount","references"],"additionalProperties":false}},"required":["code","message","doc_url","request_id","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"Revision":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Monotonic integer optimistic-concurrency revision assigned from a database sequence, starting at 1. Not dense: gaps are normal. Clients compare equality only. A value slot never reuses a revision across delete/recreate, so a stale expectedRevision always conflicts."},"Language":{"type":"string","pattern":"^[A-Za-z]{2,3}(-[A-Za-z0-9]{1,8}){0,3}$","maxLength":35,"description":"Matched case-insensitively against the operator's supported locale codes and normalized to the stored code. On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed. Only checkout.createHandoff requires a supported Buchung-Locale: absence or malformed values return 400 validation_failed, and well-formed unsupported values return 400 locale_not_supported with details naming the requested and supported locales. Start with site.get to discover the operator's locales. Accepted locale codes form a closed set per operator, discovered from Site.locales; syntactically valid codes do not imply support. Management uses explicit locales without fallback; unsupported locales return 400 validation_failed."},"CustomDefinitionKey":{"type":"string","pattern":"^[a-z][a-z0-9-]{1,63}$","description":"Stable operator-scoped key, 2..64 characters matching ^[a-z][a-z0-9-]{1,63}$; never reused after retirement."},"Id":{"type":"string","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$","format":"uuid","description":"Stable UUID of a public resource."},"RevisionConflictEncoded":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["revision_conflict"],"description":"Closed error discriminator for this HTTP error variant."},"message":{"type":"string"},"doc_url":{"type":"string","enum":["https://api.buchungapp.com/v1/docs#errors/revision_conflict"],"description":"Closed documentation URL corresponding to this error code."},"request_id":{"type":"string"},"details":{"type":"object","properties":{"currentRevision":{"anyOf":[{"$ref":"#/components/schemas/Revision"},{"type":"null"}]},"currentValue":{"$ref":"#/components/schemas/CustomValuePayloadEncoded"}},"required":["currentRevision"],"additionalProperties":false}},"required":["code","message","doc_url","request_id","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"CustomValuePayloadEncoded":{"description":"Server validates the definition codec: text trimmed plain text, maxLength 1..4000 (default 1000), no control characters except newline/tab; text_list maxItems 1..50 (default 20), each item <= 500 characters, whole-list replacement; boolean strict; number finite with |value| <= 1e15, integer/min/max and precision 0..6, no rounding; choice one declared option key; json <= 16 KiB serialized UTF-8, depth <= 16, <= 5000 nodes, keys <= 128 characters, strings <= 8 KiB, rejects __proto__/constructor/prototype; pdf { documentId } must name a live document of the same operator whose current file is a validated catalogue PDF, never an upload candidate's mediaId; public projection additionally requires the document to be published, so a reference to an unpublished document is stored but stays absent from the storefront. For json definitions only, explicit JSON null is a stored value distinct from deletion. Cumulative serialized custom values per activity are capped at 64 KiB at write time; exceeding the budget returns 400 validation_failed with a budget detail. Retired definitions block new value writes and public projection but allow deleting stored values. Host caps management request bodies at 64 KiB before parsing."},"ForbiddenEncoded":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["forbidden"],"description":"Closed error discriminator for this HTTP error variant."},"message":{"type":"string"},"doc_url":{"type":"string","enum":["https://api.buchungapp.com/v1/docs#errors/forbidden"],"description":"Closed documentation URL corresponding to this error code."},"request_id":{"type":"string"},"details":{"type":"array","items":{"$ref":"#/components/schemas/ErrorDetail"}}},"required":["code","message","doc_url","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"PayloadTooLargeEncoded":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["payload_too_large"],"description":"Closed error discriminator for this HTTP error variant."},"message":{"type":"string"},"doc_url":{"type":"string","enum":["https://api.buchungapp.com/v1/docs#errors/payload_too_large"],"description":"Closed documentation URL corresponding to this error code."},"request_id":{"type":"string"},"details":{"type":"array","items":{"$ref":"#/components/schemas/ErrorDetail"}}},"required":["code","message","doc_url","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"NotFoundEncoded":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["not_found"],"description":"Closed error discriminator for this HTTP error variant."},"message":{"type":"string"},"doc_url":{"type":"string","enum":["https://api.buchungapp.com/v1/docs#errors/not_found"],"description":"Closed documentation URL corresponding to this error code."},"request_id":{"type":"string"},"details":{"type":"array","items":{"$ref":"#/components/schemas/ErrorDetail"}}},"required":["code","message","doc_url","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"InternalErrorEncoded":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["internal_error"],"description":"Closed error discriminator for this HTTP error variant."},"message":{"type":"string"},"doc_url":{"type":"string","enum":["https://api.buchungapp.com/v1/docs#errors/internal_error"],"description":"Closed documentation URL corresponding to this error code."},"request_id":{"type":"string"},"details":{"type":"array","items":{"$ref":"#/components/schemas/ErrorDetail"}}},"required":["code","message","doc_url","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"ServiceUnavailableEncoded":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["service_unavailable"],"description":"Closed error discriminator for this HTTP error variant."},"message":{"type":"string"},"doc_url":{"type":"string","enum":["https://api.buchungapp.com/v1/docs#errors/service_unavailable"],"description":"Closed documentation URL corresponding to this error code."},"request_id":{"type":"string"},"details":{"type":"array","items":{"$ref":"#/components/schemas/ErrorDetail"}}},"required":["code","message","doc_url","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"RateLimitedEncoded":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["rate_limited"],"description":"Closed error discriminator for this HTTP error variant."},"message":{"type":"string"},"doc_url":{"type":"string","enum":["https://api.buchungapp.com/v1/docs#errors/rate_limited"],"description":"Closed documentation URL corresponding to this error code."},"request_id":{"type":"string"},"details":{"type":"array","items":{"$ref":"#/components/schemas/ErrorDetail"}}},"required":["code","message","doc_url","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"ValidationFailedEncoded":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["validation_failed"],"description":"Closed error discriminator for this HTTP error variant."},"message":{"type":"string"},"doc_url":{"type":"string","enum":["https://api.buchungapp.com/v1/docs#errors/validation_failed"],"description":"Closed documentation URL corresponding to this error code."},"request_id":{"type":"string"},"details":{"type":"array","items":{"$ref":"#/components/schemas/ErrorDetail"}}},"required":["code","message","doc_url","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"ExpectedRevision":{"type":"object","properties":{"expectedRevision":{"$ref":"#/components/schemas/Revision"}},"required":["expectedRevision"],"additionalProperties":false},"OperatorDocument":{"type":"object","properties":{"documentId":{"allOf":[{"$ref":"#/components/schemas/Id"}],"description":"Stable document UUID. Custom fact references and the storefront URL keep it across file replacement and renaming."},"displayName":{"$ref":"#/components/schemas/DocumentDisplayName"},"published":{"type":"boolean"},"publishedAt":{"anyOf":[{"$ref":"#/components/schemas/Instant"},{"type":"null"}],"description":"When the current publication began; null while unpublished."},"revision":{"$ref":"#/components/schemas/Revision"},"file":{"type":"object","properties":{"size":{"type":"integer","minimum":1,"maximum":20971520,"description":"Byte size of the current file, at most 20 MiB."},"validatedAt":{"allOf":[{"$ref":"#/components/schemas/Instant"}],"description":"When finalization validated the current file's bytes."}},"required":["size","validatedAt"],"additionalProperties":false,"description":"Current validated PDF. Its bytes stay in the private bucket; there is no public storage URL."},"referenceCount":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Total references that block deletion: custom fact values (including on archived activities) plus event attachments. Deletion is refused with 409 document_referenced while it is above zero; that error lists the custom fact value slots."},"url":{"anyOf":[{"$ref":"#/components/schemas/PublicUrl"},{"type":"null"}],"description":"While published, the storefront's own document route (/documents/{documentId}/{slug}.pdf on the operator's storefront host); null while unpublished. The slug is cosmetic."}},"required":["documentId","displayName","published","publishedAt","revision","file","referenceCount","url"],"additionalProperties":false,"description":"Operator-level document with a stable id, a display name, one current validated PDF and a published flag. Bytes never leave the private bucket. The URL is the storefront's own route, which answers a 302 to a short-lived signed URL of the current file only while the document is published, so unpublishing takes effect on the next request; copies clients already downloaded cannot be recalled."},"PublicUrl":{"type":"string","format":"uri","pattern":"^[Hh][Tt][Tt][Pp][Ss]?:\\/\\/\\S+$","description":"Absolute public HTTP(S) URL; data and javascript URLs are not allowed."},"Instant":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$","format":"date-time","description":"ISO 8601 absolute instant with explicit UTC offset (including Z). Render using the resource's documented display timezone; the serialized offset need not equal that zone."},"DocumentDisplayName":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[^\\u0000-\\u001F\\u007F]+$","description":"Display name of a document, 1 to 255 characters with no control characters (U+0000-U+001F, U+007F). The storefront fileName is the display name with .pdf, and the slug of the document URL derives from it."},"DocumentFileReplace":{"type":"object","properties":{"candidateMediaId":{"allOf":[{"$ref":"#/components/schemas/Id"}],"description":"mediaId of a ready catalogue document upload (DocumentUploadStatus): a validated catalogue PDF of the same operator that no document owns yet. Anything else returns 400 validation_failed."},"expectedRevision":{"$ref":"#/components/schemas/Revision"}},"required":["candidateMediaId","expectedRevision"],"additionalProperties":false,"description":"Swap the document's current file for another validated upload candidate in one step; every reference and the storefront URL follow, and the previous file is deleted."},"DocumentRename":{"type":"object","properties":{"displayName":{"$ref":"#/components/schemas/DocumentDisplayName"},"expectedRevision":{"$ref":"#/components/schemas/Revision"}},"required":["displayName","expectedRevision"],"additionalProperties":false},"DocumentCreate":{"type":"object","properties":{"candidateMediaId":{"allOf":[{"$ref":"#/components/schemas/Id"}],"description":"mediaId of a ready catalogue document upload (DocumentUploadStatus): a validated catalogue PDF of the same operator that no document owns yet. Anything else returns 400 validation_failed."},"displayName":{"$ref":"#/components/schemas/DocumentDisplayName"}},"required":["candidateMediaId","displayName"],"additionalProperties":false,"description":"Create an unpublished document from a validated upload candidate, which the document then owns. Host caps this JSON body at 64 KiB before parsing."},"OperatorDocumentList":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/OperatorDocument"},"maxItems":500}},"required":["items"],"additionalProperties":false,"description":"At most the 500 most recently updated documents of the operator that are not deleted, published or not, most recently updated first. No pagination."},"CatalogueDocumentIneligibleEncoded":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["validation_failed"],"description":"Closed error discriminator for this HTTP error variant."},"message":{"type":"string"},"doc_url":{"type":"string","enum":["https://api.buchungapp.com/v1/docs#errors/validation_failed"],"description":"Closed documentation URL corresponding to this error code."},"request_id":{"type":"string"},"details":{"type":"array","items":{"$ref":"#/components/schemas/ErrorDetail"}}},"required":["code","message","doc_url","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"DocumentUploadStatus":{"anyOf":[{"type":"object","properties":{"uploadSessionId":{"$ref":"#/components/schemas/Id"},"mediaId":{"anyOf":[{"$ref":"#/components/schemas/Id"},{"type":"null"}]},"status":{"type":"string","enum":["uploading","uploaded","finalizing","cancelled"]}},"required":["uploadSessionId","mediaId","status"],"additionalProperties":false},{"type":"object","properties":{"uploadSessionId":{"$ref":"#/components/schemas/Id"},"status":{"type":"string","enum":["ready"]},"mediaId":{"$ref":"#/components/schemas/Id"}},"required":["uploadSessionId","status","mediaId"],"additionalProperties":false},{"type":"object","properties":{"uploadSessionId":{"$ref":"#/components/schemas/Id"},"mediaId":{"anyOf":[{"$ref":"#/components/schemas/Id"},{"type":"null"}]},"status":{"type":"string","enum":["failed"]},"reason":{"type":"string","minLength":1,"maxLength":256}},"required":["uploadSessionId","mediaId","status","reason"],"additionalProperties":false}],"description":"Canonical upload-session status. status is a closed discriminator: uploading, uploaded, finalizing, cancelled, ready or failed; each branch defines its mediaId/reason requirements. The ready branch carries a required, non-null mediaId, a private validated candidate for createDocument or replaceDocumentFile. Finalization and status polling return the same shape. Failed finalization returns 200, never 422, with status failed and a required reason of 1..256 characters."},"DocumentPrepared":{"type":"object","properties":{"uploadSessionId":{"$ref":"#/components/schemas/Id"},"uploadUrl":{"$ref":"#/components/schemas/PublicUrl"},"expiresAt":{"$ref":"#/components/schemas/Instant"}},"required":["uploadSessionId","uploadUrl","expiresAt"],"additionalProperties":false,"description":"Private upload session and signed URL; do not log the signed URL. Uploading publishes nothing."},"DocumentPrepare":{"type":"object","properties":{"activityId":{"allOf":[{"$ref":"#/components/schemas/Id"}],"description":"Optional activity the upload is attributed to; never part of the storage key. A document is operator-level either way."},"fileName":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[^\\u0000-\\u001F\\u007F]+$"},"byteSize":{"type":"integer","minimum":1,"maximum":20971520},"mimeType":{"type":"string","enum":["application/pdf"],"description":"Closed upload MIME set: application/pdf only."}},"required":["fileName","byteSize","mimeType"],"additionalProperties":false,"description":"Prepare a private catalogue PDF upload, at most 20 MiB. Filename is 1 to 255 characters with no control characters (U+0000-U+001F, U+007F). Filename, size and MIME are admission hints; finalization validates stored bytes and PDF structure. Host caps this JSON body at 64 KiB before parsing."},"CustomValueSaved":{"type":"object","properties":{"status":{"type":"string","enum":["saved"],"description":"Closed acknowledgement: saved means the write completed."},"revision":{"$ref":"#/components/schemas/Revision"}},"required":["status","revision"],"additionalProperties":false},"CustomValuePut":{"type":"object","properties":{"value":{"$ref":"#/components/schemas/CustomValuePayloadEncoded"},"expectedRevision":{"anyOf":[{"$ref":"#/components/schemas/Revision"},{"type":"null"}]}},"required":["value","expectedRevision"],"additionalProperties":false,"description":"Whole-value replacement. Required expectedRevision: null means expected absent; an integer must match the stored revision. Host caps request bodies at 64 KiB before parsing."},"CustomValueList":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CustomValue"}}},"required":["items"],"additionalProperties":false,"description":"Every stored translation and revision for the activity, without fallback."},"CustomValue":{"type":"object","properties":{"definitionId":{"$ref":"#/components/schemas/Id"},"definitionKey":{"$ref":"#/components/schemas/CustomDefinitionKey"},"locale":{"anyOf":[{"$ref":"#/components/schemas/Language"},{"type":"null"}]},"value":{"$ref":"#/components/schemas/CustomValuePayloadEncoded"},"revision":{"$ref":"#/components/schemas/Revision"}},"required":["definitionId","definitionKey","locale","value","revision"],"additionalProperties":false,"description":"Stored translation with revision; no fallback materialized. Null locale denotes an invariant value."},"CustomDefinition":{"anyOf":[{"type":"object","properties":{"key":{"$ref":"#/components/schemas/CustomDefinitionKey"},"labels":{"$ref":"#/components/schemas/CustomLabels"},"id":{"$ref":"#/components/schemas/Id"},"exposed":{"type":"boolean"},"valueCount":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Number of stored values across activities."},"retiredAt":{"anyOf":[{"$ref":"#/components/schemas/Instant"},{"type":"null"}]},"revision":{"$ref":"#/components/schemas/Revision"},"createdAt":{"$ref":"#/components/schemas/Instant"},"updatedAt":{"$ref":"#/components/schemas/Instant"},"type":{"type":"string","enum":["text"]},"localized":{"type":"boolean"},"constraints":{"type":"object","properties":{"maxLength":{"type":"integer","minimum":1,"maximum":4000}},"required":["maxLength"],"additionalProperties":false}},"required":["key","labels","id","exposed","valueCount","retiredAt","revision","createdAt","updatedAt","type","localized","constraints"],"additionalProperties":false},{"type":"object","properties":{"key":{"$ref":"#/components/schemas/CustomDefinitionKey"},"labels":{"$ref":"#/components/schemas/CustomLabels"},"id":{"$ref":"#/components/schemas/Id"},"exposed":{"type":"boolean"},"valueCount":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Number of stored values across activities."},"retiredAt":{"anyOf":[{"$ref":"#/components/schemas/Instant"},{"type":"null"}]},"revision":{"$ref":"#/components/schemas/Revision"},"createdAt":{"$ref":"#/components/schemas/Instant"},"updatedAt":{"$ref":"#/components/schemas/Instant"},"type":{"type":"string","enum":["text_list"]},"localized":{"type":"boolean"},"constraints":{"type":"object","properties":{"maxItems":{"type":"integer","minimum":1,"maximum":50}},"required":["maxItems"],"additionalProperties":false}},"required":["key","labels","id","exposed","valueCount","retiredAt","revision","createdAt","updatedAt","type","localized","constraints"],"additionalProperties":false},{"type":"object","properties":{"key":{"$ref":"#/components/schemas/CustomDefinitionKey"},"labels":{"$ref":"#/components/schemas/CustomLabels"},"id":{"$ref":"#/components/schemas/Id"},"exposed":{"type":"boolean"},"valueCount":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Number of stored values across activities."},"retiredAt":{"anyOf":[{"$ref":"#/components/schemas/Instant"},{"type":"null"}]},"revision":{"$ref":"#/components/schemas/Revision"},"createdAt":{"$ref":"#/components/schemas/Instant"},"updatedAt":{"$ref":"#/components/schemas/Instant"},"type":{"type":"string","enum":["boolean"]},"localized":{"type":"boolean","enum":[false]},"constraints":{"type":"object","additionalProperties":false}},"required":["key","labels","id","exposed","valueCount","retiredAt","revision","createdAt","updatedAt","type","localized","constraints"],"additionalProperties":false},{"type":"object","properties":{"key":{"$ref":"#/components/schemas/CustomDefinitionKey"},"labels":{"$ref":"#/components/schemas/CustomLabels"},"id":{"$ref":"#/components/schemas/Id"},"exposed":{"type":"boolean"},"valueCount":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Number of stored values across activities."},"retiredAt":{"anyOf":[{"$ref":"#/components/schemas/Instant"},{"type":"null"}]},"revision":{"$ref":"#/components/schemas/Revision"},"createdAt":{"$ref":"#/components/schemas/Instant"},"updatedAt":{"$ref":"#/components/schemas/Instant"},"type":{"type":"string","enum":["number"]},"localized":{"type":"boolean","enum":[false]},"constraints":{"type":"object","properties":{"integer":{"type":"boolean"},"min":{"$ref":"#/components/schemas/CustomNumber"},"max":{"$ref":"#/components/schemas/CustomNumber"},"precision":{"type":"integer","minimum":0,"maximum":6}},"additionalProperties":false}},"required":["key","labels","id","exposed","valueCount","retiredAt","revision","createdAt","updatedAt","type","localized","constraints"],"additionalProperties":false},{"type":"object","properties":{"key":{"$ref":"#/components/schemas/CustomDefinitionKey"},"labels":{"$ref":"#/components/schemas/CustomLabels"},"id":{"$ref":"#/components/schemas/Id"},"exposed":{"type":"boolean"},"valueCount":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Number of stored values across activities."},"retiredAt":{"anyOf":[{"$ref":"#/components/schemas/Instant"},{"type":"null"}]},"revision":{"$ref":"#/components/schemas/Revision"},"createdAt":{"$ref":"#/components/schemas/Instant"},"updatedAt":{"$ref":"#/components/schemas/Instant"},"type":{"type":"string","enum":["choice"]},"localized":{"type":"boolean","enum":[false]},"constraints":{"type":"object","properties":{"options":{"type":"array","items":{"type":"object","properties":{"key":{"$ref":"#/components/schemas/CustomOptionKey"}},"required":["key"],"additionalProperties":false},"maxItems":100}},"required":["options"],"additionalProperties":false},"optionLabels":{"$ref":"#/components/schemas/CustomOptionLabels"}},"required":["key","labels","id","exposed","valueCount","retiredAt","revision","createdAt","updatedAt","type","localized","constraints"],"additionalProperties":false},{"type":"object","properties":{"key":{"$ref":"#/components/schemas/CustomDefinitionKey"},"labels":{"$ref":"#/components/schemas/CustomLabels"},"id":{"$ref":"#/components/schemas/Id"},"exposed":{"type":"boolean"},"valueCount":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Number of stored values across activities."},"retiredAt":{"anyOf":[{"$ref":"#/components/schemas/Instant"},{"type":"null"}]},"revision":{"$ref":"#/components/schemas/Revision"},"createdAt":{"$ref":"#/components/schemas/Instant"},"updatedAt":{"$ref":"#/components/schemas/Instant"},"type":{"type":"string","enum":["json"]},"localized":{"type":"boolean"},"constraints":{"type":"object","additionalProperties":false}},"required":["key","labels","id","exposed","valueCount","retiredAt","revision","createdAt","updatedAt","type","localized","constraints"],"additionalProperties":false},{"type":"object","properties":{"key":{"$ref":"#/components/schemas/CustomDefinitionKey"},"labels":{"$ref":"#/components/schemas/CustomLabels"},"id":{"$ref":"#/components/schemas/Id"},"exposed":{"type":"boolean"},"valueCount":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Number of stored values across activities."},"retiredAt":{"anyOf":[{"$ref":"#/components/schemas/Instant"},{"type":"null"}]},"revision":{"$ref":"#/components/schemas/Revision"},"createdAt":{"$ref":"#/components/schemas/Instant"},"updatedAt":{"$ref":"#/components/schemas/Instant"},"type":{"type":"string","enum":["pdf"]},"localized":{"type":"boolean"},"constraints":{"type":"object","additionalProperties":false}},"required":["key","labels","id","exposed","valueCount","retiredAt","revision","createdAt","updatedAt","type","localized","constraints"],"additionalProperties":false}],"description":"Management definition, including unexposed and retired entries. type is a closed discriminator (text, text_list, boolean, number, choice, json, pdf); localized is a closed boolean constrained by that type. Stored text maxLength and text_list maxItems are required, including server defaults. Translations are explicit; no Buchung-Locale header or fallback projection."},"CustomLabels":{"type":"object","propertyNames":{"$ref":"#/components/schemas/Language"},"additionalProperties":{"type":"string","maxLength":120},"description":"Explicit locale-to-label translations, at most 120 characters per label. Locale keys match case-insensitively; the server rejects unsupported locales and keys colliding after normalization."},"CustomOptionLabels":{"type":"object","propertyNames":{"$ref":"#/components/schemas/CustomOptionKey"},"additionalProperties":{"$ref":"#/components/schemas/CustomLabels"},"description":"Choice option key to explicit locale-to-label translations."},"CustomOptionKey":{"type":"string","minLength":1,"maxLength":128,"description":"Bounded opaque catalogue key (fact set, field, choice, facet or option).","pattern":"^[a-z0-9][a-z0-9_-]{0,63}$"},"CustomNumber":{"type":"number","minimum":-1000000000000000,"maximum":1000000000000000,"description":"Finite custom number with |value| <= 1e15."},"CustomExposureResult":{"type":"object","properties":{"definition":{"$ref":"#/components/schemas/CustomDefinition"},"affectedValueCount":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["definition","affectedValueCount"],"additionalProperties":false,"description":"Updated definition and affectedValueCount of valid stored values on published/hidden activities affected by the exposure change."},"CustomExposure":{"type":"object","properties":{"exposed":{"type":"boolean"},"expectedRevision":{"$ref":"#/components/schemas/Revision"}},"required":["exposed","expectedRevision"],"additionalProperties":false},"CustomDefinitionUpdate":{"type":"object","properties":{"expectedRevision":{"$ref":"#/components/schemas/Revision"},"labels":{"$ref":"#/components/schemas/CustomLabels"},"optionLabels":{"$ref":"#/components/schemas/CustomOptionLabels"},"constraints":{"$ref":"#/components/schemas/CustomDefinitionConstraints"}},"required":["expectedRevision"],"additionalProperties":false,"description":"Update labels or widen constraints; optionLabels are allowed only for choice definitions, and the server checks against the existing type. Host caps request bodies at 64 KiB before parsing."},"CustomDefinitionConstraints":{"anyOf":[{"type":"object","properties":{"maxLength":{"type":"integer","minimum":1,"maximum":4000}},"required":["maxLength"],"additionalProperties":false},{"type":"object","properties":{"maxItems":{"type":"integer","minimum":1,"maximum":50}},"required":["maxItems"],"additionalProperties":false},{"type":"object","properties":{"integer":{"type":"boolean"},"min":{"$ref":"#/components/schemas/CustomNumber"},"max":{"$ref":"#/components/schemas/CustomNumber"},"precision":{"type":"integer","minimum":0,"maximum":6}},"additionalProperties":false},{"type":"object","properties":{"options":{"type":"array","items":{"type":"object","properties":{"key":{"$ref":"#/components/schemas/CustomOptionKey"}},"required":["key"],"additionalProperties":false},"maxItems":100}},"required":["options"],"additionalProperties":false},{"type":"object","additionalProperties":false}],"description":"Closed per-type constraints: text maxLength 1..4000 (default 1000); text_list maxItems 1..50 (default 20); number integer/min/max/precision 0..6 with finite min/max and |value| <= 1e15; choice at most 100 option keys; boolean/json/pdf empty. The server permits only widening updates for the existing immutable type."},"CustomDefinitionCreate":{"anyOf":[{"type":"object","properties":{"key":{"$ref":"#/components/schemas/CustomDefinitionKey"},"labels":{"$ref":"#/components/schemas/CustomLabels"},"type":{"type":"string","enum":["text"]},"localized":{"type":"boolean"},"constraints":{"type":"object","properties":{"maxLength":{"type":"integer","minimum":1,"maximum":4000,"description":"Server defaults to 1000 when omitted."}},"additionalProperties":false}},"required":["key","labels","type","localized","constraints"],"additionalProperties":false},{"type":"object","properties":{"key":{"$ref":"#/components/schemas/CustomDefinitionKey"},"labels":{"$ref":"#/components/schemas/CustomLabels"},"type":{"type":"string","enum":["text_list"]},"localized":{"type":"boolean"},"constraints":{"type":"object","properties":{"maxItems":{"type":"integer","minimum":1,"maximum":50,"description":"Server defaults to 20 when omitted."}},"additionalProperties":false}},"required":["key","labels","type","localized","constraints"],"additionalProperties":false},{"type":"object","properties":{"key":{"$ref":"#/components/schemas/CustomDefinitionKey"},"labels":{"$ref":"#/components/schemas/CustomLabels"},"type":{"type":"string","enum":["boolean"]},"localized":{"type":"boolean","enum":[false]},"constraints":{"type":"object","additionalProperties":false}},"required":["key","labels","type","localized","constraints"],"additionalProperties":false},{"type":"object","properties":{"key":{"$ref":"#/components/schemas/CustomDefinitionKey"},"labels":{"$ref":"#/components/schemas/CustomLabels"},"type":{"type":"string","enum":["number"]},"localized":{"type":"boolean","enum":[false]},"constraints":{"type":"object","properties":{"integer":{"type":"boolean"},"min":{"$ref":"#/components/schemas/CustomNumber"},"max":{"$ref":"#/components/schemas/CustomNumber"},"precision":{"type":"integer","minimum":0,"maximum":6}},"additionalProperties":false}},"required":["key","labels","type","localized","constraints"],"additionalProperties":false},{"type":"object","properties":{"key":{"$ref":"#/components/schemas/CustomDefinitionKey"},"labels":{"$ref":"#/components/schemas/CustomLabels"},"type":{"type":"string","enum":["choice"]},"localized":{"type":"boolean","enum":[false]},"constraints":{"type":"object","properties":{"options":{"type":"array","items":{"type":"object","properties":{"key":{"$ref":"#/components/schemas/CustomOptionKey"}},"required":["key"],"additionalProperties":false},"maxItems":100}},"required":["options"],"additionalProperties":false},"optionLabels":{"$ref":"#/components/schemas/CustomOptionLabels"}},"required":["key","labels","type","localized","constraints"],"additionalProperties":false},{"type":"object","properties":{"key":{"$ref":"#/components/schemas/CustomDefinitionKey"},"labels":{"$ref":"#/components/schemas/CustomLabels"},"type":{"type":"string","enum":["json"]},"localized":{"type":"boolean"},"constraints":{"type":"object","additionalProperties":false}},"required":["key","labels","type","localized","constraints"],"additionalProperties":false},{"type":"object","properties":{"key":{"$ref":"#/components/schemas/CustomDefinitionKey"},"labels":{"$ref":"#/components/schemas/CustomLabels"},"type":{"type":"string","enum":["pdf"]},"localized":{"type":"boolean"},"constraints":{"type":"object","additionalProperties":false}},"required":["key","labels","type","localized","constraints"],"additionalProperties":false}],"description":"Create an unexposed definition. type is a closed discriminator (text, text_list, boolean, number, choice, json, pdf); localized is a closed boolean constrained by that type. Server enforces at most 200 active definitions, key uniqueness and localization only for text/text_list/json/pdf. Type and localized are immutable. Only choice definitions accept optionLabels. Omitted text maxLength defaults to 1000; omitted text_list maxItems defaults to 20. Host caps management request bodies at 64 KiB before parsing. Values of pdf definitions reference a live document of the same operator whose current file is a validated catalogue PDF by documentId."},"CustomDefinitionList":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CustomDefinition"}}},"required":["items"],"additionalProperties":false,"description":"Active definitions (at most 200), including unexposed entries. includeRetired=true adds at most the 500 most recently retired definitions; default false. No pagination."},"ManagementEventDetail":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"handle":{"type":"string"},"title":{"type":"string"},"startsAt":{"$ref":"#/components/schemas/Instant"},"endsAt":{"$ref":"#/components/schemas/Instant"},"timing":{"type":"string","enum":["upcoming","ongoing","past"]},"evaluatedAt":{"$ref":"#/components/schemas/Instant"},"timeZone":{"type":"string","description":"IANA time zone of the operator, used to interpret dates and render instants."},"availabilities":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"activity":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"title":{"type":"string"}},"required":["id","title"],"additionalProperties":false},"variation":{"anyOf":[{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"title":{"type":"string"}},"required":["id","title"],"additionalProperties":false},{"type":"null"}]},"startsAt":{"$ref":"#/components/schemas/Instant"},"endsAt":{"$ref":"#/components/schemas/Instant"}},"required":["id","activity","variation","startsAt","endsAt"],"additionalProperties":false},"maxItems":100},"availabilitiesTruncated":{"type":"boolean"}},"required":["id","handle","title","startsAt","endsAt","timing","evaluatedAt","timeZone","availabilities","availabilitiesTruncated"],"additionalProperties":false},"RequestTooLargeEncoded":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["validation_failed"],"description":"Closed error discriminator for this HTTP error variant."},"message":{"type":"string"},"doc_url":{"type":"string","enum":["https://api.buchungapp.com/v1/docs#errors/validation_failed"],"description":"Closed documentation URL corresponding to this error code."},"request_id":{"type":"string"},"details":{"type":"array","items":{"$ref":"#/components/schemas/ErrorDetail"}}},"required":["code","message","doc_url","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"CountTimeoutEncoded":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["count_timeout"],"description":"Closed error discriminator for this HTTP error variant."},"message":{"type":"string"},"doc_url":{"type":"string","enum":["https://api.buchungapp.com/v1/docs#errors/count_timeout"],"description":"Closed documentation URL corresponding to this error code."},"request_id":{"type":"string"},"details":{"type":"array","items":{"$ref":"#/components/schemas/ErrorDetail"}}},"required":["code","message","doc_url","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"ManagementEventPage":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ManagementEvent"}},"nextCursor":{"anyOf":[{"$ref":"#/components/schemas/Cursor"},{"type":"null"}]},"totalCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"evaluatedAt":{"$ref":"#/components/schemas/Instant"},"timeZone":{"type":"string","description":"IANA time zone of the operator, used to interpret dates and render instants."}},"required":["items","nextCursor","totalCount","evaluatedAt","timeZone"],"additionalProperties":false},"Cursor":{"type":"string","minLength":1,"pattern":"^[A-Za-z0-9_-]+$","maxLength":4096,"description":"Opaque base64url keyset token, at most 4 KiB to bound continuation decoding. The server also validates its operator and filter scope."},"ManagementEvent":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"handle":{"type":"string"},"title":{"type":"string"},"startsAt":{"$ref":"#/components/schemas/Instant"},"endsAt":{"$ref":"#/components/schemas/Instant"},"timing":{"type":"string","enum":["upcoming","ongoing","past"]}},"required":["id","handle","title","startsAt","endsAt","timing"],"additionalProperties":false},"EventCalendarDate":{"type":"string","pattern":"^(?!9999-)(?:19[0-9]{2}|[2-9][0-9]{3})-[0-9]{2}-[0-9]{2}$","format":"date","description":"Local calendar date from 1900 through 9998. The window computes the day after to as its exclusive upper bound, which must remain a representable four-digit-year instant."},"StorefrontDomainMissingEncoded":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["storefront_domain_missing"],"description":"Closed error discriminator for this HTTP error variant."},"message":{"type":"string"},"doc_url":{"type":"string","enum":["https://api.buchungapp.com/v1/docs#errors/storefront_domain_missing"],"description":"Closed documentation URL corresponding to this error code."},"request_id":{"type":"string"},"details":{"type":"array","items":{"$ref":"#/components/schemas/ErrorDetail"}}},"required":["code","message","doc_url","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"CheckoutHandoffNotFoundEncoded":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["not_found"],"description":"Closed error discriminator for this HTTP error variant."},"message":{"type":"string"},"doc_url":{"type":"string","enum":["https://api.buchungapp.com/v1/docs#errors/not_found"],"description":"Closed documentation URL corresponding to this error code."},"request_id":{"type":"string"},"details":{"type":"array","items":{"$ref":"#/components/schemas/ErrorDetail"},"minItems":1}},"required":["code","message","doc_url","request_id","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"LocaleNotSupportedEncoded":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["locale_not_supported"],"description":"Closed error discriminator for this HTTP error variant."},"message":{"type":"string"},"doc_url":{"type":"string","enum":["https://api.buchungapp.com/v1/docs#errors/locale_not_supported"],"description":"Closed documentation URL corresponding to this error code."},"request_id":{"type":"string"},"details":{"type":"array","items":{"$ref":"#/components/schemas/ErrorDetail"}}},"required":["code","message","doc_url","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"ForbiddenOriginEncoded":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["forbidden_origin"],"description":"Closed error discriminator for this HTTP error variant."},"message":{"type":"string"},"doc_url":{"type":"string","enum":["https://api.buchungapp.com/v1/docs#errors/forbidden_origin"],"description":"Closed documentation URL corresponding to this error code."},"request_id":{"type":"string"},"details":{"type":"array","items":{"$ref":"#/components/schemas/ErrorDetail"}}},"required":["code","message","doc_url","request_id"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"CheckoutHandoff":{"type":"object","properties":{"locale":{"$ref":"#/components/schemas/Language"},"url":{"allOf":[{"$ref":"#/components/schemas/PublicUrl"}],"description":"Absolute URL on the hosted checkout origin of this channel, with path and query /<lang>/booking?seed=<token>, where lang is the web-store route locale: the applied locale's primary subtag when supported by the web-store route locale configuration, otherwise that configuration's defaultLocale. The seed loc claim retains the applied locale. The supported route locale list comes from web-store src/i18n-config.ts; it is not the operator locale list. The signed seed carries SKUs and quantities only, never prices, and is valid 15 minutes; a second redemption is not guaranteed."},"expiresAt":{"allOf":[{"$ref":"#/components/schemas/Instant"}],"description":"Seed validity only: 15 minutes from issuance. It is not a reservation, a price freeze or a quote deadline."},"lines":{"type":"array","items":{"type":"object","properties":{"sku":{"$ref":"#/components/schemas/Sku"},"quantity":{"type":"integer","minimum":1,"maximum":10,"description":"1–10 booking units per line, matching the hosted storefront per-line maximum."},"listedTotal":{"allOf":[{"$ref":"#/components/schemas/Price"}],"description":"Line amount the customer saw at handoff time, in the currency's minor units. This total is the invariant when pricing has multiple components; never infer it by multiplying a unit price. For display only and never included in the seed; checkout revalidates price and availability."},"listedUnitPrice":{"allOf":[{"$ref":"#/components/schemas/Price"}],"description":"Per-unit price in the currency's minor units, present only when the price is one component. Omitted for component pricing; listedTotal remains the line amount the customer saw. For display only and never included in the seed; checkout revalidates price and availability."}},"required":["sku","quantity","listedTotal"],"additionalProperties":false},"minItems":1,"maxItems":10},"warnings":{"type":"array","items":{"type":"object","properties":{"sku":{"$ref":"#/components/schemas/Sku"},"code":{"anyOf":[{"anyOf":[{"type":"string","enum":["sold_out_at_handoff"]}]},{"type":"string"}],"description":"Non-fatal checkout handoff warning. Known values: sold_out_at_handoff. Open vocabulary: new strings may appear; clients must tolerate unknown values and provide a rendering fallback."}},"required":["sku","code"],"additionalProperties":false}}},"required":["locale","url","expiresAt","lines","warnings"],"additionalProperties":false,"description":"Stateless hosted-checkout handoff; nothing is persisted. The signed seed carries SKUs and quantities only, never prices, and is valid 15 minutes; a second redemption is not guaranteed. Listed prices are for display only. Checkout revalidates price and availability; no capacity is reserved and prices are not frozen. A sold-out SKU remains a successful handoff with a sold_out_at_handoff warning."},"Sku":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[\\x00-\\x7F]+$","description":"Opaque sellable reference minted by the server; clients must never parse it. Today it names one activity availability; later it may name a series cohort or a window created on book. 1–128 ASCII characters on both reads and handoffs, matching the hosted seed cookie carrier."},"Price":{"type":"object","properties":{"amount":{"$ref":"#/components/schemas/MinorUnits"},"currency":{"$ref":"#/components/schemas/Currency"},"amountBeforeDiscounts":{"$ref":"#/components/schemas/MinorUnits"},"hasPromotion":{"type":"boolean"}},"required":["amount","currency","hasPromotion"],"additionalProperties":false,"description":"Advertised from-price: the base price plus the compulsory upsells the operator includes in it. An operator may exclude a compulsory upsell from the advertised price (a dashboard setting with a pricing-regulation warning); checkout always charges every compulsory upsell. Not a checkout price promise."},"MinorUnits":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Nonnegative integer amount in the currency's minor units."},"Currency":{"type":"string","pattern":"^[A-Z]{3}$","description":"ISO 4217 currency code."},"CheckoutHandoffCreate":{"type":"object","properties":{"lines":{"type":"array","items":{"type":"object","properties":{"sku":{"$ref":"#/components/schemas/Sku"},"quantity":{"type":"integer","minimum":1,"maximum":10,"description":"1–10 booking units per line, matching the hosted storefront per-line maximum."}},"required":["sku","quantity"],"additionalProperties":false},"minItems":1,"maxItems":10}},"required":["lines"],"additionalProperties":false,"description":"Create a stateless checkout seed using the validated Buchung-Locale header, with 1–10 lines and 1–10 booking units per line, matching the hosted storefront maximum. SKUs and handles are 1–128 ASCII characters because the hosted seed cookie carrier assumes ASCII. Quantity counts units of the selected sellable, never necessarily people. Nothing is persisted. The signed seed carries SKUs and quantities only, never prices, and is valid 15 minutes; a second redemption is not guaranteed. No capacity is reserved. Host caps the body at 16 KiB before parsing."},"Site":{"type":"object","properties":{"locale":{"$ref":"#/components/schemas/Language"},"trustSignals":{"type":"array","items":{"$ref":"#/components/schemas/TrustSignal"},"description":"Operator-scope trust signals, ordered by position. Scope is operator truth resolved server-side; surfaces are theme presentation, and a frontend may ignore any surface it does not render."},"operator":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"name":{"type":"string"},"legalName":{"type":"string"}},"required":["id","name","legalName"],"additionalProperties":false},"brand":{"type":"object","properties":{"name":{"type":"string"},"slogan":{"type":"string"},"shortDescription":{"type":"string"},"logo":{"$ref":"#/components/schemas/Media"},"squareLogo":{"$ref":"#/components/schemas/Media"},"logoOnDark":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"url":{"$ref":"#/components/schemas/PublicUrl"},"srcSet":{"type":"array","items":{"type":"object","properties":{"url":{"$ref":"#/components/schemas/PublicUrl"},"width":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["url","width"],"additionalProperties":false}},"width":{"type":"integer","minimum":1,"maximum":9007199254740991},"height":{"type":"integer","minimum":1,"maximum":9007199254740991},"muxPlaybackId":{"type":"string"},"posterUrl":{"$ref":"#/components/schemas/PublicUrl"},"alt":{"type":"string"},"position":{"type":"integer","minimum":0,"maximum":9007199254740991},"type":{"type":"string","enum":["image"]}},"required":["id","url","srcSet","position","type"],"additionalProperties":false,"description":"The logo for surfaces with a dark background. The operator's own logo for dark backgrounds when it is set and is a public, ready image, else the logo; absent when neither exists."},"colors":{"type":"object","properties":{"primary":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"secondary":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["primary","secondary"],"additionalProperties":false},"socials":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"url":{"$ref":"#/components/schemas/PublicUrl"}},"required":["name","url"],"additionalProperties":false}}},"required":["name","socials"],"additionalProperties":false},"locations":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"kind":{"type":"string","enum":["office","activity_site"],"description":"Closed set: office or activity_site. Platform place classification; operator-named harbours and meeting points use activity_site."},"name":{"type":"string"},"address":{"$ref":"#/components/schemas/SiteAddress"},"coordinates":{"$ref":"#/components/schemas/Coordinates"},"timezone":{"$ref":"#/components/schemas/LocationTimezone"},"channels":{"type":"array","items":{"type":"object","properties":{"type":{"anyOf":[{"type":"string","enum":["email","phone","whatsapp","url"]},{"type":"string"}],"description":"Contact channel; ignore channels the client cannot render. Known values: email, phone, whatsapp, url. Open vocabulary: new strings may appear; clients must tolerate unknown values and provide a rendering fallback."},"value":{"type":"string"}},"required":["type","value"],"additionalProperties":false}}},"required":["id","kind","name","channels"],"additionalProperties":false,"allOf":[{"anyOf":[{"required":["address"]},{"required":["coordinates"]}],"description":"A location must carry an address or coordinates (or both)."}]},"description":"Locations carry an address or coordinates (or both). Locations are operator truth, with stable ids. A harbour, beach or meeting point is an activity_site named by the operator; legal and contact roles are not exposed here."},"legal":{"type":"object","properties":{"privacyUrl":{"anyOf":[{"$ref":"#/components/schemas/PublicUrl"},{"type":"null"}]},"termsUrl":{"anyOf":[{"$ref":"#/components/schemas/PublicUrl"},{"type":"null"}]},"contactUrl":{"anyOf":[{"$ref":"#/components/schemas/PublicUrl"},{"type":"null"}]}},"required":["privacyUrl","termsUrl","contactUrl"],"additionalProperties":false},"locales":{"type":"array","items":{"type":"object","properties":{"code":{"$ref":"#/components/schemas/Language"},"isDefault":{"type":"boolean"}},"required":["code","isDefault"],"additionalProperties":false}},"defaultLocale":{"$ref":"#/components/schemas/Language"},"timeZone":{"type":"string"},"currency":{"$ref":"#/components/schemas/Currency"}},"required":["locale","trustSignals","operator","brand","locations","legal","locales","defaultLocale","timeZone","currency"],"additionalProperties":false,"description":"Operator identity, brand, locations, legal links and locale configuration. locale is the applied locale: the operator's default when Buchung-Locale is absent or well-formed but unsupported, otherwise the normalized supported request locale. locales lists all supported codes with the default marked by isDefault; defaultLocale names that default."},"LocationTimezone":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_+-]*(?:\\/[A-Za-z0-9_+-]+)*$","description":"IANA timezone name, checked for name syntax rather than registry membership (for example Europe/Amsterdam, America/Argentina/Buenos_Aires or UTC). When absent, use the operator's default timeZone."},"Coordinates":{"type":"object","properties":{"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180}},"required":["latitude","longitude"],"additionalProperties":false,"description":"Finite latitude and longitude in degrees, within [-90, 90] and [-180, 180] respectively."},"SiteAddress":{"type":"object","properties":{"address1":{"type":"string"},"address2":{"anyOf":[{"type":"string"},{"type":"null"}]},"postalCode":{"type":"string"},"city":{"type":"string"},"countryCode":{"type":"string"},"components":{"$ref":"#/components/schemas/AddressComponents"}},"required":["address1","address2","postalCode","city","countryCode"],"additionalProperties":false,"description":"Operator location address. Preserve address1 and nullable address2; structured components supplement the lines only when reliably known. This response does not prescribe address storage or input forms."},"AddressComponents":{"type":"object","properties":{"street":{"type":"string"},"houseNumber":{"type":"string"},"addition":{"type":"string"}},"additionalProperties":false,"description":"Optional known address components. House number and addition are text. Omit unknown components; never infer them by splitting address lines."},"Media":{"anyOf":[{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"url":{"$ref":"#/components/schemas/PublicUrl"},"srcSet":{"type":"array","items":{"type":"object","properties":{"url":{"$ref":"#/components/schemas/PublicUrl"},"width":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["url","width"],"additionalProperties":false}},"width":{"type":"integer","minimum":1,"maximum":9007199254740991},"height":{"type":"integer","minimum":1,"maximum":9007199254740991},"muxPlaybackId":{"type":"string"},"posterUrl":{"$ref":"#/components/schemas/PublicUrl"},"alt":{"type":"string"},"position":{"type":"integer","minimum":0,"maximum":9007199254740991},"type":{"type":"string","enum":["image","video"]}},"required":["id","url","srcSet","position","type"],"additionalProperties":false},{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"url":{"$ref":"#/components/schemas/PublicUrl"},"srcSet":{"type":"array","items":{"type":"object","properties":{"url":{"$ref":"#/components/schemas/PublicUrl"},"width":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["url","width"],"additionalProperties":false}},"width":{"type":"integer","minimum":1,"maximum":9007199254740991},"height":{"type":"integer","minimum":1,"maximum":9007199254740991},"muxPlaybackId":{"type":"string"},"posterUrl":{"$ref":"#/components/schemas/PublicUrl"},"alt":{"type":"string"},"position":{"type":"integer","minimum":0,"maximum":9007199254740991},"type":{"type":"string","enum":["file"]},"mimeType":{"type":"string","minLength":1},"size":{"type":"integer","minimum":0,"maximum":9007199254740991},"fileName":{"type":"string","minLength":1}},"required":["id","url","srcSet","position","type","mimeType","size","fileName"],"additionalProperties":false}],"description":"Public media projection. type is a closed discriminator: image, video or file; file requires download metadata. Private storage paths and credentials are never exposed."},"TrustSignal":{"type":"object","properties":{"id":{"allOf":[{"$ref":"#/components/schemas/Id"}],"description":"Unique per operator signal; readers mint this id per operator."},"kind":{"anyOf":[{"type":"string","enum":["accreditation","membership","guarantee","payment_method","award","review_score"]},{"type":"string"}],"description":"Trust evidence kind; only review_score carries a snapshot. Known values: accreditation, membership, guarantee, payment_method, award, review_score. Open vocabulary: new strings may appear; clients must tolerate unknown values and provide a rendering fallback."},"source":{"anyOf":[{"type":"string","enum":["library","authored","integration"]},{"type":"string"}],"description":"Provenance of trust evidence. Known values: library, authored, integration. Open vocabulary: new strings may appear; clients must tolerate unknown values and provide a rendering fallback."},"title":{"type":"string"},"url":{"$ref":"#/components/schemas/PublicUrl"},"logo":{"$ref":"#/components/schemas/Media"},"logoUrl":{"allOf":[{"$ref":"#/components/schemas/PublicUrl"}],"description":"Interim public logo URL for readers that cannot yet produce the Media projection. Prefer logo when available."},"renderingShape":{"anyOf":[{"type":"string","enum":["badge","rating","widget"]},{"type":"string"}],"description":"Theme presentation hint independent of kind. Known values: badge, rating, widget. Open vocabulary: new strings may appear; clients must tolerate unknown values and provide a rendering fallback."},"surfaces":{"type":"array","items":{"anyOf":[{"type":"string","enum":["footer","activity_card","activity_page","checkout","confirmation_email"]},{"type":"string"}],"description":"Theme presentation surface independent of operator-owned scope; ignore surfaces the client does not render. Known values: footer, activity_card, activity_page, checkout, confirmation_email. Open vocabulary: new strings may appear; clients must tolerate unknown values and provide a rendering fallback."},"description":"Allowed theme presentation surfaces, independent of operator-owned scope. Known values: footer, activity_card, activity_page, checkout, confirmation_email. New strings may appear; a frontend may ignore any surface it does not render."},"validUntil":{"$ref":"#/components/schemas/CalendarDate"},"snapshot":{"type":"object","properties":{"value":{"type":"number"},"max":{"type":"number"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"fetchedAt":{"$ref":"#/components/schemas/Instant"},"sourceUrl":{"$ref":"#/components/schemas/PublicUrl"},"attribution":{"type":"string","minLength":1}},"required":["value","max","count","fetchedAt","sourceUrl","attribution"],"additionalProperties":false,"description":"Required exactly for review_score: aggregate measurement, provider link, fetch time and required provider attribution. Review texts never appear."}},"required":["id","kind","source","title","renderingShape","surfaces"],"additionalProperties":false,"allOf":[{"anyOf":[{"properties":{"kind":{"type":"string","not":{"const":"review_score"}}},"not":{"required":["snapshot"]}},{"properties":{"kind":{"const":"review_score"}},"required":["snapshot"]}],"description":"Operator-level trust evidence: scope is operator truth, resolved server-side; surfaces are theme presentation. Library signals link platform-curated reference data, authored signals carry operator content, integration signals carry connector evidence without credentials. renderingShape is a presentation hint independent of kind. Review scores carry aggregate snapshots and attribution; assertions carry no snapshot. Review texts never appear. Expired signals and snapshots stale beyond policy are omitted by the server."}]},"CalendarDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","format":"date","description":"Inclusive YYYY-MM-DD calendar date, interpreted in the operator's time zone."},"BookingOptions":{"type":"object","properties":{"locale":{"$ref":"#/components/schemas/Language"},"activityId":{"$ref":"#/components/schemas/Id"},"activityHandle":{"$ref":"#/components/schemas/Handle"},"priceSummary":{"anyOf":[{"$ref":"#/components/schemas/ActivityPriceSummary"},{"type":"null"}]},"from":{"anyOf":[{"$ref":"#/components/schemas/Price"},{"type":"null"}],"description":"Cheapest dated option that is open (not sold out and already bookable), or null; covers dated options only. Equal final amounts retain the first price object in the reader's order."},"options":{"type":"array","items":{"type":"object","properties":{"locale":{"$ref":"#/components/schemas/Language"},"id":{"allOf":[{"$ref":"#/components/schemas/Id"}],"description":"Resource identity for reads; checkout accepts sku instead."},"activityId":{"$ref":"#/components/schemas/Id"},"eventId":{"$ref":"#/components/schemas/Id"},"variationId":{"$ref":"#/components/schemas/Id"},"status":{"type":"string","enum":["upcoming","in_progress","past"],"description":"Closed set: upcoming, in_progress, past. Exhaustive temporal states determine price and remaining semantics."},"startsAt":{"allOf":[{"$ref":"#/components/schemas/Instant"}],"description":"Start of the sellable window interval; for a series cohort, the first session start."},"endsAt":{"allOf":[{"$ref":"#/components/schemas/Instant"}],"description":"End of the sellable window interval; for a series cohort, the last session end."},"timeZone":{"type":"string","description":"Operator's default timezone, used when the departure or arrival location does not set timezone."},"locations":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["venue","departure","stop","arrival"],"description":"Closed set: venue, departure, stop, arrival. These roles determine itinerary and display-timezone semantics."},"position":{"type":"integer","minimum":0,"maximum":9007199254740991},"location":{"$ref":"#/components/schemas/Location"}},"required":["role","position","location"],"additionalProperties":false},"description":"The event's itinerary inherited by this availability, ordered by position: venue by default; departure, stops and arrival for trips. May be empty for online or customer-chosen locations. Start times render in the departure location's timezone and end times in the arrival location's timezone when set; otherwise use the operator's default timeZone. No activity default or availability override."},"title":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"sku":{"$ref":"#/components/schemas/Sku"},"bookingUnitNounForms":{"$ref":"#/components/schemas/BookingUnitNounForms"},"price":{"anyOf":[{"$ref":"#/components/schemas/Price"},{"type":"null"}]},"remaining":{"$ref":"#/components/schemas/Remaining"},"soldOut":{"type":"boolean"},"bookableFrom":{"anyOf":[{"$ref":"#/components/schemas/Instant"},{"type":"null"}],"description":"Instant from which this option can be booked on the storefront, or null when it is bookable whenever it is offerable. While it is in the future the option is listed with open: false; copy such as 'bookable from 1 November 09:00' renders it in the operator's time zone."},"open":{"type":"boolean","description":"True when the option can be booked on the storefront right now: upcoming, not sold out and past bookableFrom. A sold-out option and a not-yet-bookable option are both open: false; soldOut and bookableFrom say which."},"facts":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/Fact"}}},"variationTitle":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["locale","id","activityId","eventId","variationId","status","startsAt","endsAt","timeZone","locations","title","description","sku","bookingUnitNounForms","price","remaining","soldOut","bookableFrom","open","facts","variationTitle"],"additionalProperties":false}}},"required":["locale","activityId","activityHandle","priceSummary","from","options"],"additionalProperties":false,"description":"Dated sellables, each one sellable scheduled instance with the same identity, window and remaining semantics as Availability. Undated sellables such as passes and vouchers will be listed separately. from covers dated options only. An empty options list does not mean not bookable: a stay or bespoke rental is searched, not listed."},"Fact":{"anyOf":[{"type":"object","properties":{"label":{"type":"string"},"kind":{"type":"string","enum":["reference"]},"value":{"$ref":"#/components/schemas/CatalogueReference"}},"required":["label","kind","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string"},"kind":{"type":"string","enum":["references"]},"value":{"type":"array","items":{"$ref":"#/components/schemas/CatalogueReference"}}},"required":["label","kind","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string"},"kind":{"type":"string","enum":["text"]},"value":{"type":"string"}},"required":["label","kind","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string"},"kind":{"type":"string","enum":["number"]},"value":{"$ref":"#/components/schemas/CustomNumber"}},"required":["label","kind","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string"},"kind":{"type":"string","enum":["boolean"]},"value":{"type":"boolean"}},"required":["label","kind","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string"},"kind":{"type":"string","enum":["choice"]},"value":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"],"additionalProperties":false}},"required":["label","kind","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string"},"kind":{"type":"string","enum":["media"]},"value":{"$ref":"#/components/schemas/Media"}},"required":["label","kind","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string"},"kind":{"type":"string","enum":["link"]},"value":{"type":"object","properties":{"url":{"$ref":"#/components/schemas/PublicUrl"},"label":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["url","label"],"additionalProperties":false}},"required":["label","kind","value"],"additionalProperties":false}],"description":"Localized public catalogue fact, discriminated by kind. kind is a closed discriminator: reference, references, text, number, boolean, choice, media or link; each determines its value shape. Storefront custom facts have a cumulative 4 MiB per-page serialized budget; result_too_large maps to the 400 validation_failed envelope without truncation."},"CatalogueReference":{"type":"object","properties":{"id":{"allOf":[{"$ref":"#/components/schemas/Id"}],"description":"Referenced catalogue entity UUID; query reference and set operators filter on this id."},"kind":{"type":"string","minLength":1,"description":"Kind of the referenced catalogue entity; an open vocabulary. Known value: activity. New strings may appear; clients must tolerate unknown values."}},"required":["id","kind"],"additionalProperties":false,"description":"Public reference to a catalogue entity, identified by its id and kind."},"Remaining":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"Remaining units of this sellable, never seats or people, or null for uncapped availability. Valid for a resource class of one unit and for a grouped resource. For a series cohort, counted across all sessions, all or nothing. Never sum remaining across display groups."},"BookingUnitNounForms":{"type":"array","items":{"type":"object","properties":{"locale":{"type":"string","minLength":1},"forms":{"type":"object","properties":{"zero":{"type":"string"},"one":{"type":"string"},"two":{"type":"string"},"few":{"type":"string"},"many":{"type":"string"},"other":{"type":"string"}},"additionalProperties":false}},"required":["locale","forms"],"additionalProperties":false},"minItems":1,"description":"Ordered noun fallback entries, including curated fallback. For each entry use its own locale's CLDR cardinal category for quantity, then forms[category] ?? forms.other; return the first nonblank value. Invalid legacy locale uses other. Preserve entry order, including repeated locales; never flatten into the request locale's plural categories."},"Location":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"kind":{"type":"string","enum":["office","activity_site"],"description":"Closed set: office or activity_site. Platform place classification; operator-named harbours and meeting points use activity_site."},"name":{"type":"string"},"address":{"$ref":"#/components/schemas/SiteAddress"},"coordinates":{"$ref":"#/components/schemas/Coordinates"},"timezone":{"$ref":"#/components/schemas/LocationTimezone"}},"required":["id","kind","name"],"additionalProperties":false,"allOf":[{"anyOf":[{"required":["address"]},{"required":["coordinates"]}],"description":"Operator-owned place with a stable id and localized name, carrying an address or coordinates (or both). Meeting points and itinerary stops may be known by coordinates only. A harbour, beach or meeting point is an activity_site named by the operator; legal and contact roles are not exposed here."}]},"ActivityPriceSummary":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["single"]},"minimum":{"$ref":"#/components/schemas/Price"},"maximum":{"$ref":"#/components/schemas/Price"},"overallMinimum":{"$ref":"#/components/schemas/Price"}},"required":["kind","minimum","maximum","overallMinimum"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["lead"]},"lead":{"type":"object","properties":{"variationId":{"$ref":"#/components/schemas/Id"},"publicTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"minimum":{"$ref":"#/components/schemas/Price"},"maximum":{"$ref":"#/components/schemas/Price"}},"required":["variationId","publicTitle","minimum","maximum"],"additionalProperties":false},"otherFormsMinimum":{"anyOf":[{"$ref":"#/components/schemas/Price"},{"type":"null"}]},"overallMinimum":{"$ref":"#/components/schemas/Price"}},"required":["kind","lead","otherFormsMinimum","overallMinimum"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["range"]},"overallMinimum":{"$ref":"#/components/schemas/Price"},"overallMaximum":{"$ref":"#/components/schemas/Price"}},"required":["kind","overallMinimum","overallMaximum"],"additionalProperties":false}],"description":"Advertised prices over open dated options only. Single means exactly one form among selected availabilities, open or closed, and has minimum and maximum over its open dates. With several forms, the next open form takes over the lead and keeps its title when earlier forms are closed. When only one form has open prices it is lead with otherFormsMinimum null. Several open forms use lead when the highest-ranked open form has an effective weight, otherwise range, even if a closed form has a weight. Effective weight is activity link weight when set, otherwise variation weight, ascending with nulls last. Ties retain offer reader order: event start, effective variation weight, global variation weight, activity weight, availability UUID. The lead publicTitle is the plain localized activity link public title override when nonblank, otherwise the localized variation meta title then label, without display templates or internal titles. otherFormsMinimum is null when no other form has an open price. The second line shows it only when non-null and cheaper than the lead minimum. Mixed currencies or no open prices produce null. Amounts are integer minor units with automatic promotion evidence. Equal final amounts retain the first reader price object. Rentals always use overallMinimum with a from label."},"Handle":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[\\x00-\\x7F]+$","description":"Public handle scoped to the authenticated operator, 1–128 ASCII characters, matching the hosted seed cookie carrier's ASCII assumption."},"Availability":{"type":"object","properties":{"locale":{"$ref":"#/components/schemas/Language"},"id":{"allOf":[{"$ref":"#/components/schemas/Id"}],"description":"Resource identity for reads; checkout accepts sku instead."},"activityId":{"$ref":"#/components/schemas/Id"},"eventId":{"$ref":"#/components/schemas/Id"},"variationId":{"$ref":"#/components/schemas/Id"},"status":{"type":"string","enum":["upcoming","in_progress","past"],"description":"Closed set: upcoming, in_progress, past. Exhaustive temporal states determine price and remaining semantics."},"startsAt":{"allOf":[{"$ref":"#/components/schemas/Instant"}],"description":"Start of the sellable window interval; for a series cohort, the first session start."},"endsAt":{"allOf":[{"$ref":"#/components/schemas/Instant"}],"description":"End of the sellable window interval; for a series cohort, the last session end."},"timeZone":{"type":"string","description":"Operator's default timezone, used when the departure or arrival location does not set timezone."},"locations":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","enum":["venue","departure","stop","arrival"],"description":"Closed set: venue, departure, stop, arrival. These roles determine itinerary and display-timezone semantics."},"position":{"type":"integer","minimum":0,"maximum":9007199254740991},"location":{"$ref":"#/components/schemas/Location"}},"required":["role","position","location"],"additionalProperties":false},"description":"The event's itinerary inherited by this availability, ordered by position: venue by default; departure, stops and arrival for trips. May be empty for online or customer-chosen locations. Start times render in the departure location's timezone and end times in the arrival location's timezone when set; otherwise use the operator's default timeZone. No activity default or availability override."},"title":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"sku":{"$ref":"#/components/schemas/Sku"},"bookingUnitNounForms":{"$ref":"#/components/schemas/BookingUnitNounForms"},"price":{"anyOf":[{"$ref":"#/components/schemas/Price"},{"type":"null"}]},"remaining":{"$ref":"#/components/schemas/Remaining"},"soldOut":{"type":"boolean"},"bookableFrom":{"anyOf":[{"$ref":"#/components/schemas/Instant"},{"type":"null"}],"description":"Instant from which this option can be booked on the storefront, or null when it is bookable whenever it is offerable. While it is in the future the option is listed with open: false; copy such as 'bookable from 1 November 09:00' renders it in the operator's time zone."},"open":{"type":"boolean","description":"True when the option can be booked on the storefront right now: upcoming, not sold out and past bookableFrom. A sold-out option and a not-yet-bookable option are both open: false; soldOut and bookableFrom say which."},"facts":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/Fact"}}}},"required":["locale","id","activityId","eventId","variationId","status","startsAt","endsAt","timeZone","locations","title","description","sku","bookingUnitNounForms","price","remaining","soldOut","bookableFrom","open","facts"],"additionalProperties":false,"description":"One sellable scheduled instance, today one activity availability (AA), with its opaque sku and canonical advertised price/capacity. id identifies the resource for reads; sku is what checkout accepts. A series cohort later appears as one item with startsAt at the first session start and endsAt at the last session end; remaining spans all sessions, all or nothing. Sessions may later be listed as optional occurrences[], never as separate items. startsAt/endsAt are the window interval. Remaining belongs only to this sellable; never sum it across a display group. Public resolved occurrence facts and references omit unavailable/private/suppressed values. Non-upcoming matches carry null price and zero remaining; status distinguishes historical/in-progress matches from upcoming sold-out options. soldOut reflects zero advertised remaining. open is true only for an upcoming option that is not sold out and past bookableFrom; it is false for every non-upcoming match. Advertisements do not reserve inventory or guarantee checkout acceptance."},"AvailabilityPage":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Availability"}},"locale":{"$ref":"#/components/schemas/Language"},"nextCursor":{"anyOf":[{"$ref":"#/components/schemas/Cursor"},{"type":"null"}]},"totalCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"evaluatedAt":{"$ref":"#/components/schemas/Instant"},"collection":{"anyOf":[{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"handle":{"$ref":"#/components/schemas/Handle"},"title":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","handle","title","description"],"additionalProperties":false},{"type":"null"}],"description":"Public details of the requested collection. A collection returns the activities it selects without exposing its selection criteria. Null when collectionId is omitted."},"facets":{"type":"array","items":{"$ref":"#/components/schemas/CatalogueFacet"}}},"required":["items","locale","nextCursor","totalCount","evaluatedAt","collection","facets"],"additionalProperties":false,"description":"AAs ordered by effective startsAt then UUID; exact total/facet counts count distinct AAs before pagination. Membership, hydration and counts share one request snapshot. Preserve timestamp precision in opaque continuation; each next page re-evaluates current authority and data. Grouping is a client presentation concern, with no group capacity total."},"CatalogueFacet":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/CatalogueKey"},"title":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"defaultOpen":{"type":"boolean"},"match":{"type":"string","enum":["any","all"],"description":"Closed set: any or all. Applied selection/counting mode with OR or AND semantics."},"supportedMatches":{"type":"array","items":{"type":"string","enum":["any","all"],"description":"Closed set: any or all. Supported OR/AND selection modes."}},"optionsTruncated":{"type":"boolean","description":"True when the facet cap or query budget limits the options shown. Refresh the available options after a selection. Counts for the options shown remain exact."},"selectedOptionIds":{"type":"array","items":{"$ref":"#/components/schemas/CatalogueKey"}},"options":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/CatalogueKey"},"title":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"input":{"allOf":[{"$ref":"#/components/schemas/CatalogueCondition"}],"description":"Exact JSON condition selecting this facet option: a leaf or an all/any/not tree under the same depth 6 and 64-node budgets as where. The client appends input unchanged to its where condition."}},"required":["id","title","description","count","input"],"additionalProperties":false}}},"required":["id","title","description","defaultOpen","match","supportedMatches","optionsTruncated","selectedOptionIds","options"],"additionalProperties":false,"description":"Exact counts in the response resource's unit. Any counts replace this facet's selection with the option; all counts retain this facet's other selected options and require this option. Other facets, direct filters and the collection selection still apply. Each option echoes its exact selecting condition in input; the client appends input unchanged to its where condition."},"CatalogueCondition":{"anyOf":[{"$ref":"#/components/schemas/CatalogueConditionLeaf"},{"type":"object","properties":{"all":{"type":"array","items":{"$ref":"#/components/schemas/CatalogueCondition"},"minItems":1}},"required":["all"],"additionalProperties":false},{"type":"object","properties":{"any":{"type":"array","items":{"$ref":"#/components/schemas/CatalogueCondition"},"minItems":1}},"required":["any"],"additionalProperties":false},{"type":"object","properties":{"not":{"$ref":"#/components/schemas/CatalogueCondition"}},"required":["not"],"additionalProperties":false}],"description":"Typed catalogue condition: a leaf or an all/any/not tree. Facet option input, GET CatalogueQuery and POST CatalogueQueryBody share maximum depth 6 and 64 condition nodes. Query decoding uses one iterative pre-walk, protecting the recursive decoder and SQL compiler on anonymous routes. The 8 KiB GET request target binds before the 64-node worst-case tree of 100-ID leaves; smaller leaves can hit the node limit first. Measured minified JSON: the largest tree within 64 nodes/depth <= 6 with 100-UUID fact leaves is 346887 bytes (63 leaves, depth 2, maximally escaped 128-character set/field keys); requiring depth exactly 6 gives 324903 bytes (59 leaves). With unescaped ASCII keys these are 266247 and 249383 bytes. These are structural decoder bounds; transport and reader budgets still apply. All occurrence conditions match the same AA. Leaves have exactly one activity, availability or fact key. Platform containers have exactly one field; leaves select exactly one operator (from/to together are one inclusive range). See CatalogueConditionLeaf for operators and bounds. Unknown keys/operators fail with 400 validation_failed. Unknown fact sets/fields or configured type mismatches are reader invalid_query errors, mapped to the same envelope."},"CatalogueConditionLeaf":{"anyOf":[{"type":"object","properties":{"activity":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"object","properties":{"eq":{"$ref":"#/components/schemas/Id"}},"required":["eq"],"additionalProperties":false},{"type":"object","properties":{"in":{"type":"array","items":{"$ref":"#/components/schemas/Id"},"minItems":1,"maxItems":100,"description":"Between 1 and 100 reference UUIDs. The 100-value ceiling is retained for client ergonomics; readers derive the actual allowance from remaining capacity under 1000 total slots and 50,000 expanded binds across facet-count scenarios. Each repeated predicate value consumes a bind per occurrence; budget violations are typed invalid_query (400 validation_failed)."}},"required":["in"],"additionalProperties":false}]}},"required":["id"],"additionalProperties":false},{"type":"object","properties":{"categories":{"anyOf":[{"type":"object","properties":{"containsAny":{"type":"array","items":{"$ref":"#/components/schemas/Id"},"minItems":1,"maxItems":100,"description":"Between 1 and 100 reference UUIDs. The 100-value ceiling is retained for client ergonomics; readers derive the actual allowance from remaining capacity under 1000 total slots and 50,000 expanded binds across facet-count scenarios. Each repeated predicate value consumes a bind per occurrence; budget violations are typed invalid_query (400 validation_failed)."}},"required":["containsAny"],"additionalProperties":false},{"type":"object","properties":{"containsAll":{"type":"array","items":{"$ref":"#/components/schemas/Id"},"minItems":1,"maxItems":100,"description":"Between 1 and 100 reference UUIDs. The 100-value ceiling is retained for client ergonomics; readers derive the actual allowance from remaining capacity under 1000 total slots and 50,000 expanded binds across facet-count scenarios. Each repeated predicate value consumes a bind per occurrence; budget violations are typed invalid_query (400 validation_failed)."}},"required":["containsAll"],"additionalProperties":false}]}},"required":["categories"],"additionalProperties":false}]}},"required":["activity"],"additionalProperties":false},{"type":"object","properties":{"availability":{"anyOf":[{"type":"object","properties":{"event":{"anyOf":[{"type":"object","properties":{"eq":{"$ref":"#/components/schemas/Id"}},"required":["eq"],"additionalProperties":false},{"type":"object","properties":{"in":{"type":"array","items":{"$ref":"#/components/schemas/Id"},"minItems":1,"maxItems":100,"description":"Between 1 and 100 reference UUIDs. The 100-value ceiling is retained for client ergonomics; readers derive the actual allowance from remaining capacity under 1000 total slots and 50,000 expanded binds across facet-count scenarios. Each repeated predicate value consumes a bind per occurrence; budget violations are typed invalid_query (400 validation_failed)."}},"required":["in"],"additionalProperties":false}]}},"required":["event"],"additionalProperties":false},{"type":"object","properties":{"variation":{"anyOf":[{"type":"object","properties":{"eq":{"$ref":"#/components/schemas/Id"}},"required":["eq"],"additionalProperties":false},{"type":"object","properties":{"in":{"type":"array","items":{"$ref":"#/components/schemas/Id"},"minItems":1,"maxItems":100,"description":"Between 1 and 100 reference UUIDs. The 100-value ceiling is retained for client ergonomics; readers derive the actual allowance from remaining capacity under 1000 total slots and 50,000 expanded binds across facet-count scenarios. Each repeated predicate value consumes a bind per occurrence; budget violations are typed invalid_query (400 validation_failed)."}},"required":["in"],"additionalProperties":false}]}},"required":["variation"],"additionalProperties":false},{"type":"object","properties":{"startDate":{"anyOf":[{"type":"object","properties":{"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","format":"date","description":"Inclusive YYYY-MM-DD calendar date, interpreted in the operator's time zone."},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","format":"date","description":"Inclusive YYYY-MM-DD calendar date, interpreted in the operator's time zone."}},"required":["from"],"additionalProperties":false},{"type":"object","properties":{"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","format":"date","description":"Inclusive YYYY-MM-DD calendar date, interpreted in the operator's time zone."}},"required":["to"],"additionalProperties":false}]}},"required":["startDate"],"additionalProperties":false}]}},"required":["availability"],"additionalProperties":false},{"type":"object","properties":{"fact":{"anyOf":[{"type":"object","properties":{"scope":{"type":"string","enum":["activity","availability"],"description":"Closed set: activity or availability. Selects the query grammar's fact owner."},"set":{"$ref":"#/components/schemas/CatalogueKey"},"field":{"$ref":"#/components/schemas/CatalogueKey"},"eq":{"$ref":"#/components/schemas/Id"}},"required":["scope","set","field","eq"],"additionalProperties":false},{"type":"object","properties":{"scope":{"type":"string","enum":["activity","availability"],"description":"Closed set: activity or availability. Selects the query grammar's fact owner."},"set":{"$ref":"#/components/schemas/CatalogueKey"},"field":{"$ref":"#/components/schemas/CatalogueKey"},"in":{"type":"array","items":{"$ref":"#/components/schemas/Id"},"minItems":1,"maxItems":100,"description":"Between 1 and 100 reference UUIDs. The 100-value ceiling is retained for client ergonomics; readers derive the actual allowance from remaining capacity under 1000 total slots and 50,000 expanded binds across facet-count scenarios. Each repeated predicate value consumes a bind per occurrence; budget violations are typed invalid_query (400 validation_failed)."}},"required":["scope","set","field","in"],"additionalProperties":false},{"type":"object","properties":{"scope":{"type":"string","enum":["activity","availability"],"description":"Closed set: activity or availability. Selects the query grammar's fact owner."},"set":{"$ref":"#/components/schemas/CatalogueKey"},"field":{"$ref":"#/components/schemas/CatalogueKey"},"containsAny":{"type":"array","items":{"$ref":"#/components/schemas/Id"},"minItems":1,"maxItems":100,"description":"Between 1 and 100 reference UUIDs. The 100-value ceiling is retained for client ergonomics; readers derive the actual allowance from remaining capacity under 1000 total slots and 50,000 expanded binds across facet-count scenarios. Each repeated predicate value consumes a bind per occurrence; budget violations are typed invalid_query (400 validation_failed)."}},"required":["scope","set","field","containsAny"],"additionalProperties":false},{"type":"object","properties":{"scope":{"type":"string","enum":["activity","availability"],"description":"Closed set: activity or availability. Selects the query grammar's fact owner."},"set":{"$ref":"#/components/schemas/CatalogueKey"},"field":{"$ref":"#/components/schemas/CatalogueKey"},"containsAll":{"type":"array","items":{"$ref":"#/components/schemas/Id"},"minItems":1,"maxItems":100,"description":"Between 1 and 100 reference UUIDs. The 100-value ceiling is retained for client ergonomics; readers derive the actual allowance from remaining capacity under 1000 total slots and 50,000 expanded binds across facet-count scenarios. Each repeated predicate value consumes a bind per occurrence; budget violations are typed invalid_query (400 validation_failed)."}},"required":["scope","set","field","containsAll"],"additionalProperties":false},{"type":"object","properties":{"scope":{"type":"string","enum":["activity","availability"],"description":"Closed set: activity or availability. Selects the query grammar's fact owner."},"set":{"$ref":"#/components/schemas/CatalogueKey"},"field":{"$ref":"#/components/schemas/CatalogueKey"},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","format":"date","description":"Inclusive YYYY-MM-DD calendar date, interpreted in the operator's time zone."},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","format":"date","description":"Inclusive YYYY-MM-DD calendar date, interpreted in the operator's time zone."}},"required":["scope","set","field","from"],"additionalProperties":false},{"type":"object","properties":{"scope":{"type":"string","enum":["activity","availability"],"description":"Closed set: activity or availability. Selects the query grammar's fact owner."},"set":{"$ref":"#/components/schemas/CatalogueKey"},"field":{"$ref":"#/components/schemas/CatalogueKey"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","format":"date","description":"Inclusive YYYY-MM-DD calendar date, interpreted in the operator's time zone."}},"required":["scope","set","field","to"],"additionalProperties":false},{"type":"object","properties":{"scope":{"type":"string","enum":["activity","availability"],"description":"Closed set: activity or availability. Selects the query grammar's fact owner."},"set":{"$ref":"#/components/schemas/CatalogueKey"},"field":{"$ref":"#/components/schemas/CatalogueKey"},"eq":{"type":"boolean"}},"required":["scope","set","field","eq"],"additionalProperties":false},{"type":"object","properties":{"scope":{"type":"string","enum":["activity","availability"],"description":"Closed set: activity or availability. Selects the query grammar's fact owner."},"set":{"$ref":"#/components/schemas/CatalogueKey"},"field":{"$ref":"#/components/schemas/CatalogueKey"},"eq":{"$ref":"#/components/schemas/CatalogueKey"}},"required":["scope","set","field","eq"],"additionalProperties":false},{"type":"object","properties":{"scope":{"type":"string","enum":["activity","availability"],"description":"Closed set: activity or availability. Selects the query grammar's fact owner."},"set":{"$ref":"#/components/schemas/CatalogueKey"},"field":{"$ref":"#/components/schemas/CatalogueKey"},"in":{"type":"array","items":{"$ref":"#/components/schemas/CatalogueKey"},"minItems":1,"maxItems":100,"description":"1–100 choice keys; 100 is a client ergonomics ceiling. Readers additionally enforce remaining 1000-slot and 50,000 expanded-bind capacity across all scenarios with typed invalid_query."}},"required":["scope","set","field","in"],"additionalProperties":false},{"type":"object","properties":{"scope":{"type":"string","enum":["activity","availability"],"description":"Closed set: activity or availability. Selects the query grammar's fact owner."},"set":{"$ref":"#/components/schemas/CatalogueKey"},"field":{"$ref":"#/components/schemas/CatalogueKey"},"eq":{"type":"number"}},"required":["scope","set","field","eq"],"additionalProperties":false},{"type":"object","properties":{"scope":{"type":"string","enum":["activity","availability"],"description":"Closed set: activity or availability. Selects the query grammar's fact owner."},"set":{"$ref":"#/components/schemas/CatalogueKey"},"field":{"$ref":"#/components/schemas/CatalogueKey"},"in":{"type":"array","items":{"type":"number"},"minItems":1,"maxItems":100,"description":"1–100 finite numbers; 100 is a client ergonomics ceiling. Readers additionally enforce remaining 1000-slot and 50,000 expanded-bind capacity across all scenarios with typed invalid_query."}},"required":["scope","set","field","in"],"additionalProperties":false},{"type":"object","properties":{"scope":{"type":"string","enum":["activity","availability"],"description":"Closed set: activity or availability. Selects the query grammar's fact owner."},"set":{"$ref":"#/components/schemas/CatalogueKey"},"field":{"$ref":"#/components/schemas/CatalogueKey"},"from":{"type":"number"},"to":{"type":"number"}},"required":["scope","set","field","from"],"additionalProperties":false},{"type":"object","properties":{"scope":{"type":"string","enum":["activity","availability"],"description":"Closed set: activity or availability. Selects the query grammar's fact owner."},"set":{"$ref":"#/components/schemas/CatalogueKey"},"field":{"$ref":"#/components/schemas/CatalogueKey"},"to":{"type":"number"}},"required":["scope","set","field","to"],"additionalProperties":false}]}},"required":["fact"],"additionalProperties":false}],"description":"Exactly one activity (id/categories), availability (event/variation/startDate), or fact entry. Exactly one field and operator per platform leaf; fact entries carry scope, set, field and one operator. References: eq UUID or in 1–100 UUIDs. Sets: containsAny/containsAll 1–100 UUIDs. Dates: inclusive from/to, at least one, years 0001–9999, from <= to. Booleans: eq. Choices: eq key or in 1–100 keys. Numbers: finite eq/in (1–100) or inclusive from/to. A from/to pair is one range operator. Fact set/field keys are bounded CatalogueKeys; readers resolve them against the operator's configured filterable fact sets and validate value-type agreement (invalid_query, 400 validation_failed). All 100-item ceilings are for client ergonomics; readers derive the effective allowance from 1000 total slots and 50,000 expanded binds, including predicate repetition across facet-count scenarios (typed invalid_query on overflow). No free-text filters."},"CatalogueKey":{"type":"string","minLength":1,"maxLength":128,"description":"Bounded opaque catalogue key (fact set, field, choice, facet or option)."},"CatalogueQueryBody":{"type":"object","properties":{"where":{"$ref":"#/components/schemas/CatalogueCondition"},"facets":{"$ref":"#/components/schemas/FacetSelections"},"collectionId":{"allOf":[{"$ref":"#/components/schemas/Id"}],"description":"Optional collection UUID. A collection returns the activities it selects without exposing its selection criteria. Availability queries return eligible dates for those activities. The existing ceiling of 1,000 distinct saved category IDs bounds the references checked per collection read. An unavailable collection, including one above this ceiling, returns 404 not_found. Check the UUID, storefront setup and booking channel before retrying."},"includePast":{"type":"boolean","default":false},"limit":{"type":"integer","minimum":1,"maximum":100,"description":"Page size 1–100, default 20, for client ergonomics and bounded page hydration.","default":20},"cursor":{"$ref":"#/components/schemas/Cursor"}},"additionalProperties":false,"description":"Read-only search request; no implicit collection. GET where/facets are JSON strings without per-parameter character caps; the only external GET bound is the raw request target strictly below 8 KiB, enforced before routing as 414 validation_failed. POST uses the same decoded fields in a JSON body capped at 16 KiB before parsing (413 payload_too_large). An iterative pre-walk limits depth to 6 and nodes to 64 to protect the recursive decoder and SQL compiler on an anonymous route, independently of transport byte limits. With worst-case 100-ID leaves the GET target binds first; compact leaves may reach 64 nodes first. Lists retain 100 as a client ergonomics ceiling; readers also require total slots <= 1000 and expanded binds <= 50,000 across all facet-count scenarios, including server-owned predicates. For a list repeated R times with B_other binds used by other predicates, the actual allowance is min(100, floor((50000 - B_other) / R)); expanded scenario slots must also fit 1000. Option keys are charged for the actual expansion of their configured predicates. A 1000-fold repetition leaves at most 50 values before other binds. Facet selections cannot exceed the collection's configured facets; static decoding permits up to 1000. Readers reject configured-bound/budget violations with typed invalid_query, mapped to 400 validation_failed. Field schemas bound page size and IDs and supply defaults. Unknown keys/operators and duplicate facet/option IDs return 400 validation_failed. Collection membership is counted once per query. Facets may return fewer options with optionsTruncated so a shown option can be selected with the current filters. Simplify filters or remove selections on budget errors. An unavailable collection, including one without a handle or with unusable saved criteria, returns 404 not_found. This also applies if the booking channel becomes unavailable after authentication. A cursor must match the current collection and its selection. If a cursor returns 400 validation_failed, restart without it. Structural where and facets errors return 400 validation_failed with detail paths such as body.where.activity.categories.containsAny.0 or body.facets.0.match. Unexpected properties can be reported at the enclosing object or array item. Unavailable category, event or variation references are handled like unknown ones. Refresh those values or remove the rejected filter."},"FacetSelections":{"type":"array","items":{"type":"object","properties":{"facetId":{"$ref":"#/components/schemas/CatalogueKey"},"match":{"type":"string","enum":["any","all"],"description":"Closed set: any or all, selecting OR or AND semantics."},"optionIds":{"type":"array","items":{"$ref":"#/components/schemas/CatalogueKey"},"maxItems":100,"description":"At most 100 option keys per selection for client ergonomics. Readers further require selections to fit the 1000-slot and 50,000 expanded-bind budgets, counting every repetition of the configured option predicates across facet-count scenarios; 100 is not a guarantee of admission."}},"required":["facetId","match","optionIds"],"additionalProperties":false},"maxItems":1000,"description":"Configured facet/option IDs with explicit any/all matching. The static ceiling of 1000 selections is a generous decoder allocation bound aligned with the reader's 1000-slot cap, not permission to select unconfigured facets. Readers require at most the facets the operator configured for this collection, reject unknown facets/options and enforce the aggregate 1000-slot and 50,000 expanded-bind budgets with typed invalid_query (400 validation_failed). GET and POST reject duplicate IDs and require collection context."},"Activity":{"type":"object","properties":{"locale":{"$ref":"#/components/schemas/Language"},"id":{"$ref":"#/components/schemas/Id"},"handle":{"$ref":"#/components/schemas/Handle"},"title":{"type":"string","description":"Activity identity."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Projection of the platform-declared presentation definition _bg:meta. A theme or operator may leave it unused; a frontend may ignore it."},"html":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Projection of the platform-declared presentation definition _bg:content, which may be null: rich text cleaned with the storefront read policy for operator rich text. It keeps headings, lists, links (with the editor's link classes), tables and text alignment; scripts, event handlers, embeds, images and unsafe link targets are removed. A theme or operator may leave it unused; a frontend may ignore it."},"bookingUnitNounForms":{"$ref":"#/components/schemas/BookingUnitNounForms"},"locations":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"kind":{"type":"string","enum":["office","activity_site"],"description":"Closed set: office or activity_site. Platform place classification; operator-named harbours and meeting points use activity_site."},"name":{"type":"string"}},"required":["id","kind","name"],"additionalProperties":false},"description":"Distinct places of this activity's published availabilities, not an activity default or override. May be empty. Availability start times render in the departure location's timezone and end times in the arrival location's timezone when set; otherwise use the operator's default timeZone."},"categories":{"type":"array","items":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"handle":{"$ref":"#/components/schemas/Handle"},"title":{"type":"string"}},"required":["id","handle","title"],"additionalProperties":false}},"usps":{"type":"array","items":{"type":"string"},"description":"Projection of the platform-declared presentation definition _bg:usps. A theme or operator may leave it unused; it may be empty for themed operators, and a frontend may ignore it."},"trustSignals":{"type":"array","items":{"$ref":"#/components/schemas/TrustSignal"},"description":"Signals whose operator, category or explicit activity scope includes this activity, ordered by position. Scope is operator truth resolved server-side; surfaces are theme presentation, and a frontend may ignore any surface it does not render."},"media":{"type":"array","items":{"$ref":"#/components/schemas/Media"}},"facts":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/Fact"}}},"customFacts":{"type":"object","patternProperties":{"^[a-z][a-z0-9-]{1,63}$":{"$ref":"#/components/schemas/PublicCustomFact"}},"additionalProperties":false,"description":"Public custom facts keyed by definition key; an empty object when none apply. Lists and direct lookup project the same shape, and these values count toward the 4 MiB per-page custom-fact budget."}},"required":["locale","id","handle","title","description","html","bookingUnitNounForms","locations","categories","usps","trustSignals","media","facts","customFacts"],"additionalProperties":false,"description":"Directly accessible activity with localized public catalogue data. Lists contain published activities; direct lookup also permits unlisted activities."},"PublicCustomFact":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"value":{"type":"string"},"locale":{"allOf":[{"$ref":"#/components/schemas/Language"}],"description":"Present only when the definition is localized: the locale of the translation returned. The value resolves as a whole from the request locale, then the operator default locale, so a locale differing from the response locale marks a fallback."}},"required":["type","value"],"additionalProperties":false,"description":"Text value, falling back from the request locale to the operator default locale when localized."},{"type":"object","properties":{"type":{"type":"string","enum":["text_list"]},"value":{"type":"array","items":{"type":"string"}},"locale":{"allOf":[{"$ref":"#/components/schemas/Language"}],"description":"Present only when the definition is localized: the locale of the translation returned. The value resolves as a whole from the request locale, then the operator default locale, so a locale differing from the response locale marks a fallback."}},"required":["type","value"],"additionalProperties":false,"description":"Ordered list of strings, falling back as a whole from the request locale to the operator default locale when localized."},{"type":"object","properties":{"type":{"type":"string","enum":["boolean"]},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false,"description":"Invariant boolean; the definition is never localized, so the fact carries no locale."},{"type":"object","properties":{"type":{"type":"string","enum":["number"]},"value":{"allOf":[{"$ref":"#/components/schemas/CustomNumber"}],"description":"Finite number with |value| <= 1e15 and at most 6 decimals."}},"required":["type","value"],"additionalProperties":false,"description":"Invariant number; the definition is never localized, so the fact carries no locale."},{"type":"object","properties":{"type":{"type":"string","enum":["choice"]},"value":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"],"additionalProperties":false}},"required":["type","value"],"additionalProperties":false,"description":"Invariant choice; the definition is never localized, so the fact carries no locale. The label falls back from the request locale to the operator default locale to the key."},{"type":"object","properties":{"type":{"type":"string","enum":["json"]},"value":{"description":"Any JSON value, including null. A value shaped like a choice or a pdf document is still json."},"locale":{"allOf":[{"$ref":"#/components/schemas/Language"}],"description":"Present only when the definition is localized: the locale of the translation returned. The value resolves as a whole from the request locale, then the operator default locale, so a locale differing from the response locale marks a fallback."}},"required":["type","value"],"additionalProperties":false,"description":"JSON value, falling back as a whole from the request locale to the operator default locale when localized."},{"type":"object","properties":{"type":{"type":"string","enum":["pdf"]},"value":{"$ref":"#/components/schemas/PublicCustomDocument"},"locale":{"allOf":[{"$ref":"#/components/schemas/Language"}],"description":"Present only when the definition is localized: always the request locale. pdf values resolve the exact requested locale and never fall back; without a document in that locale the fact is omitted."}},"required":["type","value"],"additionalProperties":false,"description":"Published document, resolved for the exact request locale only when localized."}],"description":"Public value of an exposed, non-retired custom definition, tagged by the definition type so clients need no discovery read to interpret it. type is a closed discriminator: text, text_list, boolean, number, choice, json or pdf; each determines its value shape. text, text_list and json localize with fallback from the request locale to the operator default locale; pdf localizes to the exact request locale only; boolean, number and choice are invariant and carry no locale. A json value keeps type json even when shaped like a choice or a pdf document. Definitions without a resolvable value are omitted: no translation after any applicable fallback, an invalid stored value, or an unpublished or deleted document. A stored json null projects as { \"type\": \"json\", \"value\": null }."},"PublicCustomDocument":{"type":"object","properties":{"url":{"$ref":"#/components/schemas/PublicUrl"},"mimeType":{"type":"string","minLength":1},"size":{"type":"integer","minimum":0,"maximum":9007199254740991},"fileName":{"type":"string","minLength":1}},"required":["url","mimeType","size","fileName"],"additionalProperties":false,"description":"Public download of the published document a pdf custom fact references: url, mimeType, size and fileName describe the current published file. url is the storefront's own document route, which answers a 302 to a short-lived signed URL of the document's current file only while the document is published; mimeType is application/pdf, size the current file's byte size and fileName the display name with .pdf. Unpublished or deleted documents are never projected."},"ActivityPage":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Activity"}},"locale":{"$ref":"#/components/schemas/Language"},"nextCursor":{"anyOf":[{"$ref":"#/components/schemas/Cursor"},{"type":"null"}]},"totalCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"evaluatedAt":{"$ref":"#/components/schemas/Instant"},"collection":{"anyOf":[{"type":"object","properties":{"id":{"$ref":"#/components/schemas/Id"},"handle":{"$ref":"#/components/schemas/Handle"},"title":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","handle","title","description"],"additionalProperties":false},{"type":"null"}],"description":"Public details of the requested collection. A collection returns the activities it selects without exposing its selection criteria. Null when collectionId is omitted."},"facets":{"type":"array","items":{"$ref":"#/components/schemas/CatalogueFacet"}}},"required":["items","locale","nextCursor","totalCount","evaluatedAt","collection","facets"],"additionalProperties":false,"description":"Activities ordered by authored weight (null last), then UUID. Exact totals and facet counts count distinct activities across the full matching domain, before pagination. Activities without eligible AAs remain unless occurrence conditions require one. Membership, hydration and counts share one request snapshot; each next page is a fresh snapshot."},"CatalogueQuery":{"type":"object","properties":{"where":{"$ref":"#/components/schemas/CatalogueCondition"},"facets":{"$ref":"#/components/schemas/FacetSelections"},"collectionId":{"allOf":[{"$ref":"#/components/schemas/Id"}],"description":"Optional collection UUID. A collection returns the activities it selects without exposing its selection criteria. Availability queries return eligible dates for those activities. The existing ceiling of 1,000 distinct saved category IDs bounds the references checked per collection read. An unavailable collection, including one above this ceiling, returns 404 not_found. Check the UUID, storefront setup and booking channel before retrying."},"includePast":{"type":"boolean","default":false},"limit":{"type":"integer","minimum":1,"maximum":100,"description":"Page size 1–100, default 20, for client ergonomics and bounded page hydration.","default":20},"cursor":{"$ref":"#/components/schemas/Cursor"}},"required":["includePast","limit"],"additionalProperties":false,"description":"Read-only search request; no implicit collection. GET where/facets are JSON strings without per-parameter character caps; the only external GET bound is the raw request target strictly below 8 KiB, enforced before routing as 414 validation_failed. POST uses the same decoded fields in a JSON body capped at 16 KiB before parsing (413 payload_too_large). An iterative pre-walk limits depth to 6 and nodes to 64 to protect the recursive decoder and SQL compiler on an anonymous route, independently of transport byte limits. With worst-case 100-ID leaves the GET target binds first; compact leaves may reach 64 nodes first. Lists retain 100 as a client ergonomics ceiling; readers also require total slots <= 1000 and expanded binds <= 50,000 across all facet-count scenarios, including server-owned predicates. For a list repeated R times with B_other binds used by other predicates, the actual allowance is min(100, floor((50000 - B_other) / R)); expanded scenario slots must also fit 1000. Option keys are charged for the actual expansion of their configured predicates. A 1000-fold repetition leaves at most 50 values before other binds. Facet selections cannot exceed the collection's configured facets; static decoding permits up to 1000. Readers reject configured-bound/budget violations with typed invalid_query, mapped to 400 validation_failed. Field schemas bound page size and IDs and supply defaults. Unknown keys/operators and duplicate facet/option IDs return 400 validation_failed. Collection membership is counted once per query. Facets may return fewer options with optionsTruncated so a shown option can be selected with the current filters. Simplify filters or remove selections on budget errors. An unavailable collection, including one without a handle or with unusable saved criteria, returns 404 not_found. This also applies if the booking channel becomes unavailable after authentication. A cursor must match the current collection and its selection. If a cursor returns 400 validation_failed, restart without it."},"CatalogueAttribute":{"anyOf":[{"type":"object","properties":{"scope":{"type":"string","enum":["activity"]},"field":{"type":"string","enum":["id"]},"template":{"type":"object","properties":{"activity":{"type":"object","properties":{"id":{"type":"object","additionalProperties":false,"description":"Empty operator container; choose an advertised operator and value."}},"required":["id"],"additionalProperties":false}},"required":["activity"],"additionalProperties":false},"type":{"type":"string","enum":["reference"]},"operators":{"type":"array","items":{"type":"string","enum":["eq","in"]},"minItems":1,"maxItems":2}},"required":["scope","field","template","type","operators"],"additionalProperties":false},{"type":"object","properties":{"scope":{"type":"string","enum":["activity"]},"field":{"type":"string","enum":["categories"]},"template":{"type":"object","properties":{"activity":{"type":"object","properties":{"categories":{"type":"object","additionalProperties":false,"description":"Empty operator container; choose an advertised operator and value."}},"required":["categories"],"additionalProperties":false}},"required":["activity"],"additionalProperties":false},"type":{"type":"string","enum":["set"]},"operators":{"type":"array","items":{"type":"string","enum":["containsAny","containsAll"]},"minItems":1,"maxItems":2}},"required":["scope","field","template","type","operators"],"additionalProperties":false},{"type":"object","properties":{"scope":{"type":"string","enum":["availability"]},"field":{"type":"string","enum":["event"]},"template":{"type":"object","properties":{"availability":{"type":"object","properties":{"event":{"type":"object","additionalProperties":false,"description":"Empty operator container; choose an advertised operator and value."}},"required":["event"],"additionalProperties":false}},"required":["availability"],"additionalProperties":false},"type":{"type":"string","enum":["reference"]},"operators":{"type":"array","items":{"type":"string","enum":["eq","in"]},"minItems":1,"maxItems":2}},"required":["scope","field","template","type","operators"],"additionalProperties":false},{"type":"object","properties":{"scope":{"type":"string","enum":["availability"]},"field":{"type":"string","enum":["variation"]},"template":{"type":"object","properties":{"availability":{"type":"object","properties":{"variation":{"type":"object","additionalProperties":false,"description":"Empty operator container; choose an advertised operator and value."}},"required":["variation"],"additionalProperties":false}},"required":["availability"],"additionalProperties":false},"type":{"type":"string","enum":["reference"]},"operators":{"type":"array","items":{"type":"string","enum":["eq","in"]},"minItems":1,"maxItems":2}},"required":["scope","field","template","type","operators"],"additionalProperties":false},{"type":"object","properties":{"scope":{"type":"string","enum":["availability"]},"field":{"type":"string","enum":["startDate"]},"template":{"type":"object","properties":{"availability":{"type":"object","properties":{"startDate":{"type":"object","additionalProperties":false,"description":"Empty operator container; choose an advertised operator and value."}},"required":["startDate"],"additionalProperties":false}},"required":["availability"],"additionalProperties":false},"type":{"type":"string","enum":["date"]},"operators":{"type":"array","items":{"type":"string","enum":["from","to"]},"minItems":1,"maxItems":2}},"required":["scope","field","template","type","operators"],"additionalProperties":false},{"type":"object","properties":{"scope":{"type":"string","enum":["activity","availability"],"description":"Closed set: activity or availability. Selects the query grammar's fact owner."},"set":{"$ref":"#/components/schemas/CatalogueKey"},"field":{"$ref":"#/components/schemas/CatalogueKey"},"type":{"type":"string","enum":["reference"]},"operators":{"type":"array","items":{"type":"string","enum":["eq","in"]},"minItems":1,"maxItems":2},"template":{"type":"object","properties":{"fact":{"type":"object","properties":{"scope":{"type":"string","enum":["activity","availability"],"description":"Closed set: activity or availability. Selects the query grammar's fact owner."},"set":{"$ref":"#/components/schemas/CatalogueKey"},"field":{"$ref":"#/components/schemas/CatalogueKey"}},"required":["scope","set","field"],"additionalProperties":false}},"required":["fact"],"additionalProperties":false}},"required":["scope","set","field","type","operators","template"],"additionalProperties":false},{"type":"object","properties":{"scope":{"type":"string","enum":["activity","availability"],"description":"Closed set: activity or availability. Selects the query grammar's fact owner."},"set":{"$ref":"#/components/schemas/CatalogueKey"},"field":{"$ref":"#/components/schemas/CatalogueKey"},"type":{"type":"string","enum":["set"]},"operators":{"type":"array","items":{"type":"string","enum":["containsAny","containsAll"]},"minItems":1,"maxItems":2},"template":{"type":"object","properties":{"fact":{"type":"object","properties":{"scope":{"type":"string","enum":["activity","availability"],"description":"Closed set: activity or availability. Selects the query grammar's fact owner."},"set":{"$ref":"#/components/schemas/CatalogueKey"},"field":{"$ref":"#/components/schemas/CatalogueKey"}},"required":["scope","set","field"],"additionalProperties":false}},"required":["fact"],"additionalProperties":false}},"required":["scope","set","field","type","operators","template"],"additionalProperties":false},{"type":"object","properties":{"scope":{"type":"string","enum":["activity","availability"],"description":"Closed set: activity or availability. Selects the query grammar's fact owner."},"set":{"$ref":"#/components/schemas/CatalogueKey"},"field":{"$ref":"#/components/schemas/CatalogueKey"},"type":{"type":"string","enum":["date"]},"operators":{"type":"array","items":{"type":"string","enum":["from","to"]},"minItems":1,"maxItems":2},"template":{"type":"object","properties":{"fact":{"type":"object","properties":{"scope":{"type":"string","enum":["activity","availability"],"description":"Closed set: activity or availability. Selects the query grammar's fact owner."},"set":{"$ref":"#/components/schemas/CatalogueKey"},"field":{"$ref":"#/components/schemas/CatalogueKey"}},"required":["scope","set","field"],"additionalProperties":false}},"required":["fact"],"additionalProperties":false}},"required":["scope","set","field","type","operators","template"],"additionalProperties":false},{"type":"object","properties":{"scope":{"type":"string","enum":["activity","availability"],"description":"Closed set: activity or availability. Selects the query grammar's fact owner."},"set":{"$ref":"#/components/schemas/CatalogueKey"},"field":{"$ref":"#/components/schemas/CatalogueKey"},"type":{"type":"string","enum":["boolean"]},"operators":{"type":"array","items":{"type":"string","enum":["eq"]},"minItems":1,"maxItems":1},"template":{"type":"object","properties":{"fact":{"type":"object","properties":{"scope":{"type":"string","enum":["activity","availability"],"description":"Closed set: activity or availability. Selects the query grammar's fact owner."},"set":{"$ref":"#/components/schemas/CatalogueKey"},"field":{"$ref":"#/components/schemas/CatalogueKey"}},"required":["scope","set","field"],"additionalProperties":false}},"required":["fact"],"additionalProperties":false}},"required":["scope","set","field","type","operators","template"],"additionalProperties":false},{"type":"object","properties":{"scope":{"type":"string","enum":["activity","availability"],"description":"Closed set: activity or availability. Selects the query grammar's fact owner."},"set":{"$ref":"#/components/schemas/CatalogueKey"},"field":{"$ref":"#/components/schemas/CatalogueKey"},"type":{"type":"string","enum":["choice"]},"operators":{"type":"array","items":{"type":"string","enum":["eq","in"]},"minItems":1,"maxItems":2},"template":{"type":"object","properties":{"fact":{"type":"object","properties":{"scope":{"type":"string","enum":["activity","availability"],"description":"Closed set: activity or availability. Selects the query grammar's fact owner."},"set":{"$ref":"#/components/schemas/CatalogueKey"},"field":{"$ref":"#/components/schemas/CatalogueKey"}},"required":["scope","set","field"],"additionalProperties":false}},"required":["fact"],"additionalProperties":false}},"required":["scope","set","field","type","operators","template"],"additionalProperties":false},{"type":"object","properties":{"scope":{"type":"string","enum":["activity","availability"],"description":"Closed set: activity or availability. Selects the query grammar's fact owner."},"set":{"$ref":"#/components/schemas/CatalogueKey"},"field":{"$ref":"#/components/schemas/CatalogueKey"},"type":{"type":"string","enum":["number"]},"operators":{"type":"array","items":{"type":"string","enum":["eq","in","from","to"]},"minItems":1,"maxItems":4},"template":{"type":"object","properties":{"fact":{"type":"object","properties":{"scope":{"type":"string","enum":["activity","availability"],"description":"Closed set: activity or availability. Selects the query grammar's fact owner."},"set":{"$ref":"#/components/schemas/CatalogueKey"},"field":{"$ref":"#/components/schemas/CatalogueKey"}},"required":["scope","set","field"],"additionalProperties":false}},"required":["fact"],"additionalProperties":false}},"required":["scope","set","field","type","operators","template"],"additionalProperties":false}],"description":"One filterable attribute for the current operator. Fact entries carry scope, set and field. type and operators describe accepted values. scope, field, type and operators are closed grammar sets: clients must understand the advertised operator and value shape before constructing a query. template is a JSON leaf object with operator values omitted: fill the empty platform field object with an advertised operator/value, or add it alongside scope/set/field in fact. Fact templates and metadata must agree; readers own configured whitelist validation."},"CatalogueAttributeDiscovery":{"type":"object","properties":{"attributes":{"type":"array","items":{"$ref":"#/components/schemas/CatalogueAttribute"}}},"required":["attributes"],"additionalProperties":false,"description":"Filterable platform attributes and configured fact-set fields for the current operator. No discovery HTTP route is declared by this contract yet."}},"securitySchemes":{"channelKey":{"description":"Required channel key for every storefront operation, including site.get. On every storefront read, Buchung-Locale is optional: omission or a well-formed but unsupported value applies the operator's default locale; a supported explicit value selects that exact locale, Content-Language always reports the applied locale, and Buchung-Locale-Fallback reports the requested value only when unsupported; malformed values return 400 validation_failed. Only checkout.createHandoff requires a supported Buchung-Locale: absence or malformed values return 400 validation_failed, and well-formed unsupported values return 400 locale_not_supported with details naming the requested and supported locales. Start with site.get to discover the operator's locales.","type":"apiKey","name":"X-Buchung-Channel-Key","in":"header"},"integrationBearer":{"description":"Machine integration credential: Authorization: Bearer bg_it_<32 lowercase hex characters> (^bg_it_[0-9a-f]{32}$). Resolved uncached on each request. Middleware binds the resolved principal once; handlers run under it and never re-derive authority. The request context includes credentialId for per-request logging alongside machineId, operatorId, organizationId and capabilities; the principal is opaque and server-owned. Storefront channel keys never authorize management operations; machine credentials never authorize storefront checkout handoffs. Invalid, expired, revoked, disabled or ungranted credentials return 401 unauthorized.","type":"http","scheme":"Bearer"}}},"security":[],"tags":[{"name":"activities"},{"name":"availabilities"},{"name":"bookingOptions"},{"name":"site"},{"name":"checkout"},{"name":"management"}],"servers":[{"url":"https://api.buchungapp.com"}]}