The calendar search gives users the option to choose a range of departure dates and a range of duration to give a more flexible search.
Calendar search can be done for a flight search, a property search or package searches. These all work in the same way as a normal search, except that the user can specify whether the search is done with the Neo-Cache.Â
The structure of the XML will be:
The response returns a list of available flights/properties/packages matching the search criteria, along with the prices.
The structure of the XML will be:
A flight search request to Amsterdam airport between the dates 28/09/2014 and 28/11/2014 for between 2 and 15 nights and for 2 adults
<CalendarSearchRequest>
<LoginDetails>
<Login>TestLogin</Login>
<Password>TestPassword</Password>
</LoginDetails>
<SearchType>Flight</SearchType>
<DepartureAirportID>4</DepartureAirportID>
<ArrivalAirportID>62</ArrivalAirportID>
<DepartureDateStart>2014-09-28</DepartureDateStart>
<DepartureDateEnd>2014-09-30</DepartureDateEnd>
<DurationStart>2</DurationStart>
<DurationEnd>15</DurationEnd>
<Adults>2</Adults>
<Children>0</Children>
<NeoCache>false</NeoCache>
</CalendarSearchRequest>
iVectorConnect returns the cheapest flight for each day specified in the search.
<CalendarSearchResponse>
<ReturnStatus>
<Success>true</Success>
<Exceptions />
</ReturnStatus>
<Days>
<Day>
<TotalPrice>28.07</TotalPrice>
<PropertyReferenceID>0</PropertyReferenceID>
<MealBasisID>0</MealBasisID>
<PackageReference />
<DepartureAirportID>4</DepartureAirportID>
<ArrivalAirportID>62</ArrivalAirportID>
<Duration>6</Duration>
<Date>2014-09-28T00:00:00</Date>
</Day>
<Day>
<TotalPrice>26.46</TotalPrice>
<PropertyReferenceID>0</PropertyReferenceID>
<MealBasisID>0</MealBasisID>
<PackageReference />
<DepartureAirportID>4</DepartureAirportID>
<ArrivalAirportID>62</ArrivalAirportID>
<Duration>9</Duration>
<Date>2014-09-29T00:00:00</Date>
</Day>
<Day>
<TotalPrice>44.60</TotalPrice>
<PropertyReferenceID>0</PropertyReferenceID>
<MealBasisID>0</MealBasisID>
<PackageReference />
<DepartureAirportID>4</DepartureAirportID>
<ArrivalAirportID>62</ArrivalAirportID>
<Duration>8</Duration>
<Date>2014-09-30T00:00:00</Date>
</Day>
</Days>
</CalendarSearchResponse>