How to create a link to the search form with a complex flight ticket search on WayAway.io.
Complex (multi-city) route consists of several segments — the first flight, the second one, etc. Affiliate links to searches for complex routes are formed the same way. The first segment is denoted by segments. This parameter is added before each standard parameter in the link. The second segment is segments, the third segment is segments, etc.
Example of the resulting link: https://wayaway.io/?segments[origin_iata]=LAX&segments[destination_iata]=NYC&segments[depart_date]=2022-07-01&segments[origin_iata]=NYC&segments[destination_iata]=BOS&segments[depart_date]=2022-07-08&adults=1&children=0&infants=0&trip_class=0&with_request=true
Please note that the segment number must be specified only at the flight directions (origin and destination) and travel dates. The number of passengers and the flight class are set as common for the whole set of segments.
- origin_iata/destination_iata — departure/arrival points — line.
Recommended values: IATA city code.
- depart_date/return_date — departure/return dates — line.
Recommended format: Y-m-d (yy-mm-dd — JQuery).
- adults/children/infants — the number of adults, children and infants — numeric.
In total, the request cannot consist of more than nine passengers with seats (adults + children). In this case, infants travel without a seat on the adults' laps. The number of infants cannot exceed the number of adults. If the number of infants is larger than the number of adults, the excess number of infants is counted as children (with their own seats).
- trip_class — Flight class (Economy — 0, Business — 1, First — 2).
- with_request — Initiate search automatically (true: the search is loaded, false: the form is filled out, but search does not start).
After you get a link to the search results page, you should use the deep link creation form.
If you need to provide your clients with a link to the multi-city search, send them to this website: https://wayaway.io/#multicity
For these types of links, you should also use the deep link creation form.