Sabre Hotel列表不退还总住宿,返回第一晚的最低/最高价格

时间:2018-03-12 19:35:36

标签: sabre

通过以下对OTA_HotelAvailLLSRQ的请求,它会在所有房价代码中返回客人入住的第一晚的最小值和最大值。有没有办法从OTA_HotelAvailLLSRQ获得住宿总费用或者住宿的平均低点和高点?

<?xml version="1.0" encoding="UTF-8"?>
<OTA_HotelAvailRQ xmlns="http://webservices.sabre.com/sabreXML/2011/10" xmlns:xs="http://www.w3.org/2001/XMLSchema" ReturnHostCommand="true" TimeStamp="2015-03-12T02:00:26-06:00" Version="2.1.0">
   <AvailRequestSegment>
      <GuestCounts Count="2" />
      <HotelSearchCriteria NumProperties="100">
         <Criterion>
            <HotelRef HotelCode="0087974" />
         </Criterion>
      </HotelSearchCriteria>
      <RatePlanCandidates>
         <RateRange CurrencyCode="USD" />
      </RatePlanCandidates>
      <TimeSpan Start="03-31" End="04-02" />
   </AvailRequestSegment>
</OTA_HotelAvailRQ>

JSON格式的响应:

        {
            "@attributes": {
                "RPH": "009"
            },
            "BasicPropertyInfo": {
                "@attributes": {
                    "AreaID": "000",
                    "ChainCode": "DN",
                    "Distance": "M",
                    "GEO_ConfidenceLevel": "1",
                    "HotelCityCode": "SLC",
                    "HotelCode": "0087974",
                    "HotelName": "NEWPARK RESORT",
                    "Latitude": "40.721913",
                    "Longitude": "-111.539077"
                },
                "Address": {
                    "AddressLine": [
                        "1456 NEWPARK BOULEVARD",
                        "PARK CITY UT 84098",
                        "2016 TRIPADVR EXCELLENCE AWARD"
                    ]
                },
                "ContactNumbers": {
                    "ContactNumber": {
                        "@attributes": {
                            "Fax": "1-435-6157767",
                            "Phone": "1-435-6493600"
                        }
                    }
                },
                "DirectConnect": {
                    "Alt_Avail": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "DC_AvailParticipant": {
                        "@attributes": {
                            "Ind": "true"
                        }
                    },
                    "DC_SellParticipant": {
                        "@attributes": {
                            "Ind": "true"
                        }
                    },
                    "RatesExceedMax": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "UnAvail": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    }
                },
                "LocationDescription": {
                    "Text": "PARK CITY UT"
                },
                "PropertyOptionInfo": {
                    "ADA_Accessible": {
                        "@attributes": {
                            "Ind": "true"
                        }
                    },
                    "AdultsOnly": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "BeachFront": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "Breakfast": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "BusinessCenter": {
                        "@attributes": {
                            "Ind": "true"
                        }
                    },
                    "BusinessReady": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "Conventions": {
                        "@attributes": {
                            "Ind": "true"
                        }
                    },
                    "Dataport": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "Dining": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "DryClean": {
                        "@attributes": {
                            "Ind": "true"
                        }
                    },
                    "EcoCertified": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "ExecutiveFloors": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "FitnessCenter": {
                        "@attributes": {
                            "Ind": "true"
                        }
                    },
                    "FreeLocalCalls": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "FreeParking": {
                        "@attributes": {
                            "Ind": "true"
                        }
                    },
                    "FreeShuttle": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "FreeWifiInMeetingRooms": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "FreeWifiInPublicSpaces": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "FreeWifiInRooms": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "FullServiceSpa": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "GameFacilities": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "Golf": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "HighSpeedInternet": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "HypoallergenicRooms": {
                        "@attributes": {
                            "Ind": "true"
                        }
                    },
                    "IndoorPool": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "InRoomCoffeeTea": {
                        "@attributes": {
                            "Ind": "true"
                        }
                    },
                    "InRoomMiniBar": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "InRoomRefrigerator": {
                        "@attributes": {
                            "Ind": "true"
                        }
                    },
                    "InRoomSafe": {
                        "@attributes": {
                            "Ind": "true"
                        }
                    },
                    "InteriorDoorways": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "Jacuzzi": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "KidsFacilities": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "KitchenFacilities": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "MealService": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "MeetingFacilities": {
                        "@attributes": {
                            "Ind": "true"
                        }
                    },
                    "NoAdultTV": {
                        "@attributes": {
                            "Ind": "true"
                        }
                    },
                    "NonSmoking": {
                        "@attributes": {
                            "Ind": "true"
                        }
                    },
                    "OutdoorPool": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "Pets": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "Pool": {
                        "@attributes": {
                            "Ind": "true"
                        }
                    },
                    "PublicTransportationAdjacent": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "RateAssured": {
                        "@attributes": {
                            "Ind": "true"
                        }
                    },
                    "Recreation": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "RestrictedRoomAccess": {
                        "@attributes": {
                            "Ind": "true"
                        }
                    },
                    "RoomService": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "RoomService24Hours": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "RoomsWithBalcony": {
                        "@attributes": {
                            "Ind": "true"
                        }
                    },
                    "SkiInOutProperty": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "SmokeFree": {
                        "@attributes": {
                            "Ind": "true"
                        }
                    },
                    "SmokingRoomsAvail": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "Tennis": {
                        "@attributes": {
                            "Ind": "false"
                        }
                    },
                    "WaterPurificationSystem": {
                        "@attributes": {
                            "Ind": "true"
                        }
                    },
                    "Wheelchair": {
                        "@attributes": {
                            "Ind": "true"
                        }
                    }
                },
                "RateRange": {
                    "@attributes": {
                        "CurrencyCode": "USD",
                        "Max": "450.00",
                        "Min": "200.00"
                    }
                },
                "RoomRate": {
                    "@attributes": {
                        "RateLevelCode": "RAC"
                    },
                    "AdditionalInfo": {
                        "CancelPolicy": {
                            "@attributes": {
                                "Numeric": "00"
                            }
                        }
                    },
                    "HotelRateCode": "RAC"
                },
                "SpecialOffers": {
                    "@attributes": {
                        "Ind": "false"
                    }
                }
            }
        }

当执行HotelPropertyDescriptionLLSRQ时,我们可以看到最低费率的总额为$ 429.14。这是有用的数据,因为我们可以在初始搜索页面上显示该数据,或者除以停留时间以确定夜间平均值。在确定可用性之外,OTA_HotelAvailLLSRQ返回的数据不是很有用。如果我们能够从初始调用中获得更好的定价数据,那就太好了。

0 个答案:

没有答案