Event

An event represents a scheduled activity or occasion. You can create ticket types for the event with EventTicketType.

PropertyTypeDefaultDescriptionExample
id*string (UUIDv4)Unique identifier"bd4a0997-39db-41d9-883a-cdfa83e2101f"
createdAtdateCreation timestamp of the event"2024-01-15T09:30:00.000Z"
masterLanguagestringMaster language of the event"en"
name*stringName of the event"Summer Festival 2024"
descriptionstringDescription of the event"Annual summer celebration with music and activities"
startDatedateStart date and time of the event"2024-07-01T14:00:00.000Z"
endDatedateEnd date and time of the event"2024-07-03T22:00:00.000Z"
allDaybooleanfalseWhether the event is an all-day eventtrue
parentEventIdstring (UUIDv4)If it is part of a series, then it will have a parent event id"bd4a0997-39db-41d9-883a-cdfa83e2101f"
publishedbooleanfalseWhether the event is publicly visible. This flag is considering also planned functionality.true
publishedAtdateThis is optional, since the event can be published right away. But there might be a date in the future or past. So if published is set to true, then it is published. Otherwise there might be info in this field on when the event will be published"2024-01-15T09:30:00.000Z"
imageIdstring (UUIDv4)nullID of an image associated with the event"bd4a0997-39db-41d9-883a-cdfa83e2101f"
translationsarray[]A list of translation objects EventTranslation for the object[{ language: "da", title: "Sommerfestival 2024", description: "Årlig sommerfest..." }]
enableTicketsbooleanfalseWhether tickets can be issued for this eventtrue
ticketTypesarray[]A list of ticket types (EventTicketType) associated with this event[{ id: "bd4a0997-39db-41d9-883a-cdfa83e2101f", name: "General Admission" }]
onSalebooleantrueA convenience field where you can check whether the event is on sale or not. The workspace is able to set all kind of rules for when the sale will start and finish and this field will dynamiccally update and take those settings into consideration
saleStartsAtdateThis field is optional and might include a date for when the sale starts for this event
saleEndsAtdateThis field is optional and might include a date for when the sale will end for this event
soldOutbooleanfalseWhether all tickets for this event have been sold. It takes max capacities into consideration for all ticket types and for the overall event.true
checkoutUrlstringThe URL to the checkout page for this event. This is automatically generated based on your workspace domain."https://acme-museum.membership.loby.io/events/bd4a0997-39db-41d9-883a-cdfa83e2101f/checkout"
maxTicketsnumbernullThe maximum number of tickets for the event, shared by all its ticket types. Null when the event has no overall limit40
numberOfIssuedTicketsnumber0Number of tickets that have been issued for the event32
totalNumberOfReservedTicketsnumber0Number of tickets that are issued or held in an ongoing checkout. This is the number the checkout checks the capacity against34
remainingTicketsnumbernullNumber of tickets that can still be bought for the event, never below 0. The capacity is maxTickets, or the sum of the ticket types' maxQuantity when every ticket type has a limit and that sum is lower. Null when the event has no limit6

Capacity and remaining tickets

Each time in a series is its own event (with a parentEventId), with its own capacity. When the ticket types of an event share one pool of places, use the event's remainingTickets (or calculate maxTickets - totalNumberOfReservedTickets). A ticket type's own availableQuantity and remainingTickets are only set when that ticket type has a limit of its own. For events sold from a seating map, the remaining numbers are not based on the seats yet: use soldOut.

EventTranslation

An EventTranslation contains translated fields for the event object.

PropertyTypeDefaultDescriptionExample
language*string (ISO 639-1)Language code for the translation"da"
namestringnullSee description of field in Event"Sommerfestival 2024"
descriptionstringnullSee description of field in Event"Årlig sommerfest..."

EventTicketType

An EventTicketType represents a type of ticket that can be issued for an event.

PropertyTypeDefaultDescriptionExample
id*string (UUIDv4)Unique identifier"bd4a0997-39db-41d9-883a-cdfa83e2101f"
masterLanguagestringMaster language of the event"en"
name*stringName of the ticket type"General Admission"
descriptionstringDescription of the ticket type"Standard entry ticket"
pricenumbernullPrice of ticket in lowest unit. Cents for EUR, USD etc. 0 = FREE2500
maxQuantitynumbernullMaximum number of tickets of this type that can be issued. Null means unlimited.1000
translationsarray[]A list of translation objects EventTicketTypeTranslation for the object[{ language: "da", name: "Standard billet", description: "Standard adgangsbillet" }]
availableQuantitynumbernullmaxQuantity minus the issued tickets of this type. Null when the ticket type has no limit of its own (it then shares the event's places, see remainingTickets on Event)850
soldOutbooleanfalseWhether all tickets of this type have been soldtrue
addOnbooleanfalseWhether this ticket type is an add-on. This ticket type cannot be used as admittance to the eventtrue
publishedbooleanfalseWhether this ticket type is publicly visibletrue
numberOfIssuedTicketsnumber0Number of tickets of this type that have been issued150
totalNumberOfReservedTicketsnumber0Number of tickets of this type that are issued or held in an ongoing checkout152
remainingTicketsnumbernullNumber of tickets of this type that can still be bought: maxQuantity minus totalNumberOfReservedTickets, never below 0. Null when the ticket type has no limit of its own848

EventTicketTypeTranslation

An EventTicketTypeTranslation contains translated fields for the event ticket type object.

PropertyTypeDefaultDescriptionExample
language*string (ISO 639-1)Language code for the translation"da"
namestringnullSee description of field in EventTicketType"Standard billet"
descriptionstringnullSee description of field in EventTicketType"Standard adgangsbillet"
‹ Previous
Time Slot
Next ›
Event Ticket Type