Create a booking package from a package

Booking packages can be created from packages.

All package menu items associated with the package will be added to the booking package.

All line items created this way will use the guaranteed parameter value for the quantity attribute.

All package events and the package event's package menu items will be added to the booking package.

The parameters start_time, end_time and space_id are optional. If these attributes are provided, they will be used for the event's start_time, end_time and space_id attributes.

All events created this way will use the parameter values for its expected, guaranteed attributes. An event will be created for each day from start_date to end_date.


  {
    "data": {
      "type": "booking_packages",
      "attributes": {
        "booking_id": 1,
        "expected": 99,
        "guaranteed": 100,
        "start_date": "2023-03-30",
        "end_date": "2023-03-30",
        "package_id": 9
      }
    }
  }


Language
Credentials
Click Try It! to start a request and see the response here!