How to query for oneway flights using the Sabre Insta Flights Search REST API?

丶灬走出姿态 提交于 2020-01-06 16:14:30

问题


What query params do I need to pass to search for oneway flights only using the Sabre Insta Flights Search REST API?

I get an error from the service if I do not include a returndate param. If I do include a returndate, I get roundtrip flights in the result.

Thanks


回答1:


Not every market has one-way flights loaded, specially in TEST. For instance, US does not currently support one-ways with InstaFlights.

As an example, the following RQ will yield resulsts in PROD, but not in TEST.

v1/shop/flights?origin=SYD&destination=BNE&departuredate=2016-12-18&pointofsalecountry=AU




回答2:


As an option to Instaflight, Sabre REST Bargain Finder Max is a Live Air Shopping API, that support both One-Way, Roundtrip and Multi Desti Flight Searches.

https://developer.sabre.com/docs/read/rest_apis/air/search/bargain_finder_max



来源:https://stackoverflow.com/questions/40983478/how-to-query-for-oneway-flights-using-the-sabre-insta-flights-search-rest-api

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!