公司代码如何在 Amadeus Flight Offers Search API 中发挥作用?

How do corporate codes work in Amadeus Fligh Offers Search API?

我正在使用 Amadeus Flight Offers Search API,我想使用我客户的公司代码来搜索包括公司协商票价在内的报价。我看到架构中有一个公司代码字段,但公司代码需要加载到 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
        }
      }
  }
}

结果是所有公布的票价。

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