Sabre:酒店详细信息API出现问题

时间:2020-04-28 02:35:40

标签: sabre

关于Sabre酒店详细信息API

API端点:https://api-crt.cert.havail.sabre.com/v1.1.0/get/hoteldetails

样品申请

{
"GetHotelDetailsRQ": {
    "SearchCriteria": {
        "HotelRefs": {
            "HotelRef": {
                "HotelCode": "5436",
                "CodeContext": "SABRE"
            }
        },
        "RateInfoRef": {
            "CurrencyCode": "USD",
            "PrepaidQualifier": "IncludePrepaid",
            "RefundableOnly": false,
            "ConvertedRateInfoOnly": true,
            "StayDateRange": {
                "StartDate": "2020-05-05",
                "EndDate": "2020-05-06"
            },
            "Rooms": {
                "Room": [
                    {
                        "Index": 1,
                        "Adults": 2,
                        "Children": 0,
                        "ChildAges": ""
                    }
                ]
            }
        }
    }
}

}

最初,我得到了没有价格信息的回复。刷新后,我得到了带有速率信息的响应。为什么我最初没有价格信息就得到了答复。通常,这种情况会发生。

没有速率信息的样本响应

{
"GetHotelDetailsRS": {
    "ApplicationResults": {
        "status": "Complete",
        "Success": [
            {
                "timeStamp": "2020-04-27T21:41:43.936-05:00"
            }
        ],
        "Warning": [
            {
                "type": "Application",
                "timeStamp": "2020-04-27T21:41:43.933-05:00",
                "SystemSpecificResults": [
                    {
                        "Message": [
                            {
                                "code": "WARN.0450",
                                "value": "Unable to process"
                            }
                        ]
                    }
                ]
            }
        ]
    },
    "HotelDetailsInfo": {
        "HotelInfo": {
            "HotelCode": "5436",
            "CodeContext": "SABRE",
            "HotelName": "Fairfield Inn and Suites by Marriott Gulfport",
            "ChainCode": "FN",
            "ChainName": "Fairfield Inn",
            "BrandCode": "MARRIOTT",
            "BrandName": "Marriott International",
            "Status": "Active"
        },
        "HotelDescriptiveInfo": {}
    }
}

}

0 个答案:

没有答案