0

我正在使用 Amadeus Flight Offers Search API,我想使用我客户的公司代码来搜索包括 corp nego 票价在内的优惠。我看到架构中有一个公司代码字段,但是需要将公司代码加载到 OID 中才能工作,并且在调用 API 时我没有指定 OID。这将如何运作?

我尝试使用一些我知道的公司代码,但没有出现任何公司票价。这是我尝试过的一个例子。

{
  "currencyCode": "EUR",
  "originDestinations": [
    {
      "id": "1",
      "originLocationCode": "MAD",
      "destinationLocationCode": "NYC",
      "departureDateTimeRange": {
        "date": "2019-09-01",
        "time": "10:00:00",
        "timeWindow" : "6H"
      }
    },
    {
      "id": "2",
      "originLocationCode": "NYC",
      "destinationLocationCode": "MIA",
      "departureDateTimeRange": {
        "date": "2019-09-03",
        "time": "17:00:00",
        "timeWindow": "2H"
      }
    },
    {
      "id": "3",
      "originLocationCode": "MCO",
      "destinationLocationCode": "MAD",
      "departureDateTimeRange": {
        "date": "2019-09-07",
        "time": "17:00:00",
        "timeWindow": "6H"
      }
    }
  ],
  "travelers": [
    {
      "id": "1",
      "travelerType": "ADULT",
      "fareOptions": [
        "STANDARD"
      ]
    }
  ],
  "sources": [
    "GDS", "PYTON"
  ],
  "searchCriteria": {
    "maxFlightOffers": 50,
    "pricingOptions" : {
        "corporateCodes" : ["000001"]
    },
    "flightFilters": {
        "connectionRestriction":
        {
            "airportChangeAllowed" : false,
            "maxNumberOfConnections" : 1
        }
      }
  }
}

结果是所有公布的票价。

4

1 回答 1

1

在自助服务中,我们仅提供公共票价。协商票价或私人票价仅供我们的企业用户使用。参考文档不是很清楚,API 仍处于测试阶段,我们将根据您的反馈进行改进。

于 2019-07-26T15:18:28.960 回答