0

有人能帮我吗?我正在寻找一种方法来在所有行程中同时在 /v2/offers/shop 请求上获得所有类型的 Sabre 机舱类型。下面是我的代码。请用完整的 JSON 回答。任何帮助都是有价值的。另一个问题是我在哪里可以找到 /v2/offers/shop 的 NDC 和非 NDC 的一些好例子?

{
    "OTA_AirLowFareSearchRQ": {
        "OriginDestinationInformation": [
            {
                "DepartureDateTime": "2020-06-21T00:00:00",
                "DestinationLocation": {
                    "LocationCode": "YYC"
                },
                "OriginLocation": {
                    "LocationCode": "YYZ"
                },
                "RPH": "0"
            },
            {
                "DepartureDateTime": "2020-06-25T00:00:00",
                "DestinationLocation": {
                    "LocationCode": "YYZ"
                },
                "OriginLocation": {
                    "LocationCode": "YYC"
                },
                "RPH": "1"
            }
        ],
        "POS": {
            "Source": [
                {
                    "PseudoCityCode": "xxxxxxx",
                    "RequestorID": {
                        "CompanyName": {
                            "Code": "xxxxxxxxxx"
                        },
                        "ID": "1",
                        "Type": "1"
                    }
                }
            ]
        },
        "TPA_Extensions": {
            "IntelliSellTransaction": {
                "RequestType": {
                    "Name": "xxxxxxx"
                }
            }
        },
        "TravelPreferences": {
            "TPA_Extensions": {
                "DataSources": {
                    "ATPCO": "Enable",
                    "LCC": "Enable",
                    "NDC": "Enable"
                },
                "NumTrips": {},
                "FlexibleFares": {
                    "FareParameters": [
                        {
                            "PassengerType": {
                                "Code": "ADT"
                            },
                            "Cabin": {
                                "Type": "Y"
                            }
                        },
                        {
                            "PassengerType": {
                                "Code": "ADT"
                            },
                            "Cabin": {
                                "Type": "S"
                            }
                        },
                        {
                            "PassengerType": {
                                "Code": "ADT"
                            },
                            "Cabin": {
                                "Type": "C"
                            }
                        }
                    ]
                }
            }
        },
        "TravelerInfoSummary": {
            "AirTravelerAvail": [
                {
                    "PassengerTypeQuantity": [
                        {
                            "Code": "ADT",
                            "Quantity": 3
                        },
                        {
                            "Code": "CNN",
                            "Quantity": 2
                        },
                        {
                            "Code": "INF",
                            "Quantity": 1
                        }
                    ]
                }
            ],
            "SeatsRequested": [
                5
            ]
        },
        "Version": "1"
    }
}
4

2 回答 2

1

我不认为您可以在一个请求中获得所有类型的客舱类型响应,您必须为每种客舱类型进行不同的搜索,如果您需要,以下是客舱类型:

  1. 保费优先 (P),
  2. 第一(F),
  3. 高级商务 (J),
  4. 商务(C),
  5. 豪华经济舱 (S)
  6. 经济(Y)

但是您可以在OriginDestinationInformation块中的单个行程中搜索具有不同客舱类型的不同航班

"OriginDestinationInformation": [
      {
        "DepartureDateTime": "2019-06-21T00:00:00",
        "DestinationLocation": {
          "LocationCode": "LAX"
        },
        "OriginLocation": {
          "LocationCode": "NYC"
        },
        "TPA_Extensions": {
            "CabinPref": {
              "Cabin": "Y"
            }
        },
        "RPH": "0"
      },
      {
        "DepartureDateTime": "2019-06-22T00:00:00",
        "DestinationLocation": {
          "LocationCode": "NYC"
        },
        "OriginLocation": {
          "LocationCode": "LAX"
        },
        "TPA_Extensions": {
            "CabinPref": {
              "Cabin": "C"
            }
        },
        "RPH": "1"
      }
    ]
于 2020-05-18T12:50:36.140 回答
0

您可以在 OTA_AirLowFareSearchRQ 请求的 OriginDestinationInformation 块中搜索具有不同客舱类型的不同航班。

您可以使用 Cabin Pref 选项来指定要用于搜索此航段级别(如果 SegmentType 为“O”)或航段(如果 SegmentType 为“X”)的首选客舱。

此元素中指定的客舱类型将覆盖在请求级别为此航段/航段指定的客舱类型。

  • 如果没有为此元素指定客舱类型,则请求级别的客舱类型将用作此航段或航段的默认值。
  • 如果在航段/航段级别和请求级别均未指定客舱类型,则将使用默认客舱“经济舱”。

这是一个示例:-

"OriginDestinationInformation": [
  {
    "DepartureDateTime": "2020-07-05T00:00:00",
    "DestinationLocation": {
      "LocationCode": "SFO"
    },
    "OriginLocation": {
      "LocationCode": "NYC"
    },
    "TPA_Extensions": {
        "CabinPref": {
          "Cabin": "Y"
        }
    },
    "RPH": "0"`},
  {
    "DepartureDateTime": "2020-07-10T00:00:00",
    "DestinationLocation": {
      "LocationCode": "NYC"
    },
    "OriginLocation": {
      "LocationCode": "SFO"
    },
    "TPA_Extensions": {
        "CabinPref": {
          "Cabin": "C"
        }
    },
    "RPH": "1"
  }
]

`
这是一个链接,提供了 Sabre 中 NDC 的详细信息:- https://developer.sabre.com/guides/travel-agency/services/NDC

于 2020-07-10T12:27:00.880 回答