搜索响应中的票价规则信息

Fare rules information in the response of search

我在航班搜索API和航班报价API(自助服务)的响应中找不到票价规则信息。

根据swagger(文档中提供),这样的信息应该在offer.fareRules。你有什么想法来获取这些信息吗?因为我想获取退款,换货等信息。谢谢

Flight Offers Price API 中,您需要使用值为 detailed-fare-rules

的查询参数 include

例如:

https://test.api.amadeus.com/v1/shopping/flight-offers/pricing?include=detailed-fare-rules

您将得到 detailed-fare-rules 作为对 included 的响应的一部分: