Admission Availability

Use this endpoint to get all slots per day and their availability. This endpoint only supports calendar-based admissions.

GET https://api.e-guma.ch/v1/ticketing/admissions/{id}/availability.json?apikey={api-key}&from={from}&to={to}

Parameters

api-key required

id required

ID of the admission.

from required

Start date (YYYY-MM-DD) for which the slots and availabilities are requested.

to required

End date (YYYY-MM-DD) for which the slots and availabilities are requested.

Return

nameName of the admission in all available languages.
is_all_dayIf true, the admission has all-day slots. Otherwise false for time-based slots.
is_unlimited_availabilityIf true, a unlimited number of tickets is available. If false, a quota applies.
slotsA list of available slots within the requested period will be provided. The list is empty if no slots are available or admission unpublished.

Slots object

availability_countNumber of available tickets. Is only provided when is_unlimted_availability is false.
starts_atStart date and time (YYYY-MM-DDThh:mm:ss) of the slot. All-day slots start at 00:00:00.

Example

https://api.e-guma.ch/v1/ticketing/admissions/67ef9f405420fbfa8e550d99/availability.json?apikey=6731db84973b860a08f4023c&from=2025-04-01&to=2025-04-30
  {
    "name": {
        "de": "Eintritt mit Zeitslots",
        "en": "Admission with time slots"
    },
    "is_all_day": false,
    "is_unlimited_availability": false,
    "slots": [
        {
            "availability_count": 50,
            "starts_at": "2025-04-04T10:00:00"
        },
        {
            "availability_count": 50,
            "starts_at": "2025-04-04T12:00:00"
        },
        {
            "availability_count": 50,
            "starts_at": "2025-04-04T14:00:00"
        },
        {
            "availability_count": 50,
            "starts_at": "2025-04-04T16:00:00"
        },
        {
            "availability_count": 50,
            "starts_at": "2025-04-05T10:00:00"
        },
        {
            "availability_count": 50,
            "starts_at": "2025-04-05T12:00:00"
        },
        {
            "availability_count": 50,
            "starts_at": "2025-04-05T14:00:00"
        },
        {
            "availability_count": 50,
            "starts_at": "2025-04-05T16:00:00"
        }
    ]
}