【问题标题】:Sabre Unable to use "Revalidate Itinerary" REST APISabre 无法使用“重新验证行程”REST API
【发布时间】:2021-07-15 11:32:54
【问题描述】:

我正在尝试按照文档中的机票预订流程的开发人员指南进行操作。 https://developer.sabre.com/guides/travel-agency/workflows/air-booking

在这里,我使用了基于令牌的身份验证 (v2),我可以使用其余 api 成功搜索和预订。但是,在使用文档https://developer.sabre.com/docs/rest_apis/air/search/revalidate_itinerary/reference-documentation

中的示例点击 revalidate itinerary api 时

在这里,我收到以下错误。 (注意:我这里修改了pcc代码,原来的请求使用了正确的pnr。)

回复:

{
    "groupedItineraryResponse": {
        "version": "6.3.0",
        "messages": [
            {
                "severity": "Info",
                "type": "WORKERTHREAD",
                "code": "TRANSACTIONID",
                "text": "3019835637227710880"
            },
            {
                "severity": "Info",
                "type": "SERVER",
                "code": "ASE032LPSCIL668.ATSE.CERT.ASCINT.SABRECIRRUS.COM",
                "text": "27038"
            },
            {
                "severity": "Info",
                "type": "DRE",
                "code": "RULEID",
                "text": "25961"
            },
            {
                "severity": "Info",
                "type": "DEFAULT",
                "code": "RULEID",
                "text": "25959"
            },
            {
                "severity": "Error",
                "type": "IF2",
                "code": "PROCESS",
                "text": "PCC EPCC: Revalidate Itinerary not requested."
            },
            {
                "severity": "Error",
                "type": "ERR",
                "code": "ERR",
                "text": "Error during Processing"
            }
        ],
        "statistics": {
            "itineraryCount": 0
        }
    }
}

API 网址:https://api-crt.cert.havail.sabre.com/v3/shop/flights/revalidate

请求json:

{
    "OTA_AirLowFareSearchRQ": {
        "OriginDestinationInformation": [
            {
                "RPH": "0",
                "DepartureDateTime": "2021-08-14T00:00:00",
                "OriginLocation": {
                    "LocationCode": "KRK"
                },
                "DestinationLocation": {
                    "LocationCode": "WAW"
                }
            }
        ],
        "POS": {
            "Source": [
                {
                    "PseudoCityCode": "EPCC",
                    "RequestorID": {
                        "CompanyName": {
                            "Code": "TN"
                        },
                        "ID": "1",
                        "Type": "1"
                    }
                }
            ]
        },
        "TPA_Extensions": {
            "IntelliSellTransaction": {
                "RequestType": {
                    "Name": "200ITINS"
                }
            }
        },
        "TravelPreferences": {
            "TPA_Extensions": {
                "DataSources": {
                    "NDC": "Disable",
                    "ATPCO": "Enable",
                    "LCC": "Disable"
                },
                "NumTrips": {}
            }
        },
        "TravelerInfoSummary": {
            "AirTravelerAvail": [
                {
                    "PassengerTypeQuantity": [
                        {
                            "Code": "ADT",
                            "Quantity": 1
                        }
                    ]
                }
            ],
            "SeatsRequested": [
                1
            ]
        },
        "Version": "3"
    }
}

【问题讨论】:

    标签: rest sabre


    【解决方案1】:

    您需要在TPA_Extension下OriginDestinationInformation下列出所有预订舱位的航班。

    所以,您的OriginDestinationInformation 应该如下所示:

          "OriginDestinationInformation": [
                {
                    "RPH": "0",
                    "DepartureDateTime": "2021-10-11T14:50:00",
                    "OriginLocation": {
                        "LocationCode": "BEG"
                    },
                    "DestinationLocation": {
                        "LocationCode": "ZRH"
                    },
                    "TPA_Extensions": {
                        "SegmentType": {
                            "Code": "O"
                        },
                        "Flight": [
                            {
                                "Number": 1417,
                                "DepartureDateTime": "2021-10-11T14:50:00",
                                "ArrivalDateTime": "2021-10-11T16:40:00",
                                "Type": "A",
                                "ClassOfService": "K",
                                "OriginLocation": {
                                    "LocationCode": "BEG"
                                },
                                "DestinationLocation": {
                                    "LocationCode": "ZRH"
                                },
                                "Airline": {
                                    "Operating": "LX",
                                    "Marketing": "LX"
                                }
                            }
                        ]
                    }
                }
            ],
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-04-09
      • 1970-01-01
      • 1970-01-01
      • 2017-09-04
      • 1970-01-01
      • 2022-07-01
      相关资源
      最近更新 更多