Amadeus 票价规则请求

Amadeus Fare Rule request

Amedeus Api 打电话, 我在 url 编码

中传递“include=detailed-fare-rules”

https://test.api.amadeus.com/v2/shopping/flight-offers/pricing?include=detailed-fare-rules&originLocationCode=ISB&destinationLocationCode=KHI&departureDate=2022-05-01&returnDate=2022-05-18&adults=1&max=5

but it return the below error.
{
    "errors": [
        {
            "status": 404,
            "title": "No routing found for this resource/method/version combination.",
            "code": 700,
            "source": {
                "pointer": "uri"
            }
        }
    ]
}

航班优惠价格API支持POST方法,只允许includeforceClass作为查询参数。请检查 API 的 API reference

调用API到return票价规则的正确方法如下:

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

正文如下:

{
   "data":{
      "type":"flight-offers-pricing",
      "flightOffers":[
          .....
      ]
   }
}

flightOffers 中,您必须通过 return 由您正在查找票价规则的 Flight Offers Search API 编辑的航班报价。