包含新的 v2 航班优惠端点航空公司代码和排除航空公司代码不能一起使用吗?



在以前的版本V1中,低票价搜索中,这两个参数都可以使用。这已经不可能了吗?这些参数:

{'adults': 1, 'children': 0, 'currencyCode': 'USD', 'departureDate': '2020-09-30', 'destinationLocationCode': 'FLL', 'excludedAirlineCodes': 'NK,B6', 'includedAirlineCodes': 'DL', 'infants': 0, 'nonStop': 'false', 'originLocationCode': 'MSP', 'returnDate': '2020-10-07', 'travelClass': 'ECONOMY'}

生成此错误:

{'errors': [{'status': 400, 'code': 2668, 'title': 'PARAMETER COMBINATION INVALID/RESTRICTED', 'detail': 'excludedAirlineCodes and includedAirlineCodes are not compatible'}]}

在Flight Offers Search API(v2(中,我们修复了一些让用户感到困惑的问题:如果您使用includedAirlineCodes,则只能获得指定航空公司的航班(因此它排除了所有其他航空公司(。同时使用includedAirlineCodesexcludedAirlineCodes是不可能的。

最新更新