Docs

List activity availabilities

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.

Early access. Use the API base, channel key and allowed origins supplied by Buchung before running examples. Interactive API requests are disabled here.

GET
/v1/availabilities

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.

Authorization

channelKey
headerX-Buchung-Channel-Key<token>

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.

Query Parameters

where?string

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.

facets?string

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.

collectionId?string

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.

Match^([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})$
Formatuuid
includePast?boolean

Include past AAs; default is declared by CatalogueQuery.

Defaultfalse
limit?integer

Page size; bounds and default are declared by CatalogueQuery.

Range1 <= value <= 100
Default20
cursor?string

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.

Match^[A-Za-z0-9_-]+$
Length1 <= length <= 4096

Header Parameters

Buchung-Locale?string

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.

Match^[A-Za-z]{2,3}(-[A-Za-z0-9]{1,8}){0,3}$
Lengthlength <= 35

Response Body

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.

application/json
  1. response

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.

items*array<>
locale*Language

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.

Match^[A-Za-z]{2,3}(-[A-Za-z0-9]{1,8}){0,3}$
Lengthlength <= 35
nextCursor*|null
totalCount*integer
Range0 <= value <= 9007199254740991
evaluatedAt*Instant

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.

Match^\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)$
Formatdate-time
collection*|

Public details of the requested collection. A collection returns the activities it selects without exposing its selection criteria. Null when collectionId is omitted.

facets*array<>
Example Request
curl -X GET 'https://api.buchungapp.com/v1/availabilities'
Example Response
{  "items": [    {      "locale": "string",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "activityId": "bdfd0655-55e6-45e6-8bbc-6ed31d3820b5",      "eventId": "d6703cc8-9e79-415d-ac03-a4dc7f6ab43c",      "variationId": "818c389d-b425-42eb-b751-daa67a093f4f",      "status": "upcoming",      "startsAt": "2019-08-24T14:15:22Z",      "endsAt": "2019-08-24T14:15:22Z",      "timeZone": "string",      "locations": [        {          "role": "venue",          "position": 0,          "location": {            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",            "kind": "office",            "name": "string",            "address": {              "address1": "string",              "address2": "string",              "postalCode": "string",              "city": "string",              "countryCode": "string",              "components": {                "street": "string",                "houseNumber": "string",                "addition": "string"              }            },            "coordinates": {              "latitude": -90,              "longitude": -180            },            "timezone": "string"          }        }      ],      "title": "string",      "description": "string",      "sku": "string",      "bookingUnitNounForms": [        {          "locale": "string",          "forms": {            "zero": "string",            "one": "string",            "two": "string",            "few": "string",            "many": "string",            "other": "string"          }        }      ],      "price": {        "amount": 0,        "currency": "string",        "amountBeforeDiscounts": 0,        "hasPromotion": true      },      "remaining": 0,      "soldOut": true,      "bookableFrom": "2019-08-24T14:15:22Z",      "open": true,      "facts": {        "property1": {          "property1": {            "label": "string",            "kind": "reference",            "value": {              "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",              "kind": "string"            }          },          "property2": {            "label": "string",            "kind": "reference",            "value": {              "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",              "kind": "string"            }          }        },        "property2": {          "property1": {            "label": "string",            "kind": "reference",            "value": {              "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",              "kind": "string"            }          },          "property2": {            "label": "string",            "kind": "reference",            "value": {              "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",              "kind": "string"            }          }        }      }    }  ],  "locale": "string",  "nextCursor": "string",  "totalCount": 0,  "evaluatedAt": "2019-08-24T14:15:22Z",  "collection": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "handle": "string",    "title": "string",    "description": "string"  },  "facets": [    {      "id": "string",      "title": "string",      "description": "string",      "defaultOpen": true,      "match": "any",      "supportedMatches": [        "any"      ],      "optionsTruncated": true,      "selectedOptionIds": [        "string"      ],      "options": [        {          "id": "string",          "title": "string",          "description": "string",          "count": 0,          "input": {            "activity": {              "id": {                "eq": "b81fe1a7-65b4-4169-b130-13fa2a25664c"              }            }          }        }      ]    }  ]}