allowFreesaleis set to true on the product then this step is optional but it is advised you check it anyway if you can to check for closures.
This endpoint is highly optimised and will return a single object per day. It's designed to be queried for large date ranges and the result is used to populate an availability calendar.
When the end user selects an open date you can call on
/availability endpoint to get the
availabilityId to create the booking.
This endpoint is slightly slower as it will return an object for each individual departure time (or day). You have to perform this step to retrieve an
availabilityId in order to confirm a sale, so if you just want to use this endpoint and skip the calendar endpoint then that's perfectly ok.
You must pass in one of the following combinations of parameters for this endpoint: