航班报价价格响应中缺少额外的行李信息

时间:2020-08-06 08:55:46

标签: amadeus

我正在测试自助服务API。我想知道这是否是错误:

  1. 我发出了搜索请求,响应中的flight-offer/price/additionalServices

    中包含多余的行李信息
  2. 然后,我通过在Flight Offer Price API的路径中添加include=bags参数来提出要约价格。

无论如何,响应中都没有任何行李信息,offer/price/additionalServicesincluded/中都没有。

  1. 我仍然尝试通过添加多余的袋子来创建订单。因此,我将使用在步骤1(搜索响应)中获得的额外行李信息。订单创建成功。

似乎在第2步(航班报价的响应)中缺少了额外的行李信息,这是一个错误吗?

这是我重现该问题的测试示例:

搜索请求

{
  "currencyCode": "EUR",
  "originDestinations": [
    {
      "id": "1",
      "originLocationCode": "PAR",
      "destinationLocationCode": "NYC",
      "departureDateTimeRange": {
        "date": "2020-08-20",
        "time": "10:00:00"
      }
    }
  ],
  "travelers": [
    {
      "id": "1",
      "travelerType": "ADULT"
    }
  ],
  "sources": [
    "GDS"
  ],
  "searchCriteria": {
    "maxFlightOffers": 3
  }
}

然后,我在响应中选择第二个要约,以使用include=bags参数提出要约价格

 {
      "type": "flight-offer",
      "id": "2",
      "source": "GDS",
      "instantTicketingRequired": false,
      "nonHomogeneous": false,
      "oneWay": false,
      "lastTicketingDate": "2020-08-13",
      "numberOfBookableSeats": 8,
      "itineraries": [
        {
          "duration": "PT8H15M",
          "segments": [
            {
              "departure": {
                "iataCode": "ORY",
                "terminal": "4",
                "at": "2020-08-20T19:45:00"
              },
              "arrival": {
                "iataCode": "EWR",
                "terminal": "B",
                "at": "2020-08-20T22:00:00"
              },
              "carrierCode": "TX",
              "number": "6720",
              "aircraft": {
                "code": "359"
              },
              "operating": {
                "carrierCode": "BF"
              },
              "duration": "PT8H15M",
              "id": "3",
              "numberOfStops": 0,
              "blacklistedInEU": false
            }
          ]
        }
      ],
      "price": {
        "currency": "EUR",
        "total": "149.44",
        "base": "41.00",
        "fees": [
          {
            "amount": "0.00",
            "type": "SUPPLIER"
          },
          {
            "amount": "0.00",
            "type": "TICKETING"
          }
        ],
        "grandTotal": "149.44",
        "additionalServices": [
          {
            "amount": "70.00",
            "type": "CHECKED_BAGS"
          }
        ]
      },
      "pricingOptions": {
        "fareType": [
          "PUBLISHED"
        ],
        "includedCheckedBagsOnly": false
      },
      "validatingAirlineCodes": [
        "TX"
      ],
      "travelerPricings": [
        {
          "travelerId": "1",
          "fareOption": "STANDARD",
          "travelerType": "ADULT",
          "price": {
            "currency": "EUR",
            "total": "149.44",
            "base": "41.00"
          },
          "fareDetailsBySegment": [
            {
              "segmentId": "3",
              "cabin": "ECONOMY",
              "fareBasis": "ULBCOWFR",
              "brandedFare": "EBASIC",
              "class": "U",
              "includedCheckedBags": {
                "quantity": 0
              }
            }
          ]
        }
      ]
 }

响应中没有多余的袋子。

谢谢

0 个答案:

没有答案