Skip to main content
Unlisted page
This page is unlisted. Search engines will not index it, and only users having a direct link can access it.

Booking stage

In the booking stage, the user can select a date and time to schedule an appointment in one of Onlive's services. In this stage, the availability of schedules and dates for the reservation is added to the context in the availability field of type array. Each element of this array has the following structure:

FieldNameTypeRequiredDescriptionDefault
ownersarrayXList of identifiers for the calendars of agents available for booking
assetsarrayXList of identifiers for the calendars of resources available for booking
startTimetimestampXStart date and time of availability
deltaTimesobjectXTimes when an appointment can start, where the key is the time interval until the start time and the value is a tuple of two arrays: the agents and the resources to be used in the appointment.

In this stage, the booking object is added to the context with the following fields:

FieldNameTypeRequiredDescriptionDefault
agentIdstringXIdentifier of the agent's calendar who will attend the appointment
assetsarrayList of identifiers for the resources to be used in the appointment
templateIdstringXIdentifier of the appointment template to be used
selectedDateTimestringXSelected date and time for the appointment in UTC format "YYYY-MM-DDTHH:mm:ssZ"