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
 | |
| id  | ID of the admission. | 
| from  | Start date (YYYY-MM-DD) for which the slots and availabilities are requested. | 
| to  | End date (YYYY-MM-DD) for which the slots and availabilities are requested. | 
Return
| name | Name of the admission in all available languages. | 
| is_all_day | If true, the admission has all-day slots. Otherwisefalsefor time-based slots. | 
| is_unlimited_availability | If true, a unlimited number of tickets is available. Iffalse, a quota applies. | 
| slots | A 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_count | Number of available tickets. Is only provided when is_unlimted_availabilityis false. | 
| starts_at | Start 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"
        }
    ]
}Updated 7 months ago
