We now sort offers' and orders' slices and segments chronologically
We'll now always sort slices and segments inside offers and orders chronologically. That means that you don't have to worry about doing this yourself, and can display data in the order we returned it.
We've added extra information to airports in the API 🛫
We've added more information to our airports in our API, including the latitude, longitude, icao_code, city_name and time_zone, as well as improved names for Airports
When you request a specific cabin class, we now do a better job of making sure you only get matching offers
Some airlines don't necessarily listen to when you specify a cabin_class that the passenger wants to fly in and may return offers that don't match. We'll now handle this on our side, filtering out offers that don't match your original search.
You no longer need to provide passengers' `type`s when creating an order
You no longer need to provide the type of passengers when creating an order. We'll fill this information in automatically based on the offer you selected.
You should now give the age of passengers under 18 when creating an offer request
When searching for flights for a passenger who is under 18, you should now specify their age instead of a type. For passengers over 18, you can continue using "age": "adult" as before.
You can now paginate through offers from a search instead of getting them all in one go
When you search for flights by creating an offer request, we return all of the offers in the response. This can mean a very large response in some cases, with thousands of offers. You can now choose to paginate through those offers, a few hundred at a time, instead of having one massive response.
We've made creating an order with Iberia more reliable
Sometimes, we get a "please try again" error from Iberia when trying to create a booking. Instead of making you try again, we'll handle this automatically and try to create the order again. You won't even know the difference!
We'll tell you that an offer is no longer available if the price has changed since your original search
We'll now return a helpful error with the code 'offer_no_longer_available' if the price has changed on the airline's side between your search and trying to make a booking.
We now return a clear error if you try to make a booking which looks like a duplicate
Most airlines have checks on their side that prevent you from making duplicate bookings, with the same passenger(s) on the same flight(s). We now return a clear error if you try to make a booking which looks like a duplicate.
We've improved how we validate passengers' names to fit in better with airlines' rules
Airlines have different rules about the kinds of characters that can be included in passengers' names and how long these names can be. We now check this on our side before sending your request to the airline, avoiding confusing error messages and a bad experience for your customers.