Bookings can be created with contacts, events and line items. When the key booking_package is provided in the request and with the required params, a booking package will be created on the booking. To associate a booking with a contact, read more here.
Without booking package
Create a booking with line items, events and events with line items.
When the request contains the key booking_package, all events and line items will be created as a booking package on the booking. Any required parameters that are expected by events and line items but are not provided will use expected, guaranteed, start_date, end_date, start_time and end_time from the request. If the attribute quantity_behaviour is not provided on line items, the default will be flat.
If the request contains the key booking_package, the following attributes will be required: expected, guaranteed, start_date, end_date, start_time, end_time.