Vendion
    Table Booking

    Type code on events

    2 min read
    Categories and articles

    A type code is a short name for the event that another system uses to add occurrences through the Vendion API, for example the chain's event tool that plans quiz nights in several restaurants. If you do not use such a system, the event does not need a type code.

    The admin is in Swedish; the Swedish labels are shown in bold with an explanation.

    Set the type code

    1. Go to Bordsbokning → Events & Resurser → Events and open the event.
    2. In the Om eventet (about the event) tab, fill in Typkod för API (API type code), for example quiz. When you create a new event, the field is in the first step.
    3. Press Spara (save).

    The type code may only contain lowercase letters, digits, hyphens and underscores, max 40 characters. Spaces become hyphens and capitals become lowercase. Two events in the same restaurant cannot have the same type code. Use the same code in all the chain's restaurants, so the system can use one code everywhere.

    What is required

    • The restaurant has Vendion Integration.
    • The system has an API key with the permission to create, change and delete events, and to read the restaurant's events and type codes also the permission to read event types and events. See API keys.
    • The event is active and has the type code.

    What the system can do

    • Add occurrences with date, time and spots, and optionally text, image, arrival, booking window, confirmation text and whether regular table booking is closed that day.
    • Change and delete occurrences. Time and date cannot be changed when the occurrence has active bookings, the spots cannot be lowered below the number of booked guests, and an occurrence with active bookings cannot be deleted.

    Occurrences the system created are labelled Från API (from API) in the list on the Tillfällen (occurrences) tab. You can change them in admin as usual.

    AI Boss can set the type code for you.

    This feature is part of Vendion Booking.

    Curious how it looks in practice? Read more about the product or book a short demo.

    Was this article helpful?