Hotel Data

Get details of designated hotel opening

Request Method#

POST

uri: /hotel

Content-Type:application/json


Request parameter description#

RequestHeader#

Common Request Header [reference]

RequestBody#

ParameterTypeRequiredMaximum lengthExampleDescription
hotelIdStringY3212 * * 567Hotel ID

Response parameter description#

Common Response Parameters [reference]

content#

ParameterTypeRequiredMaximum lengthExampleDescription
hotelIdStringY3212 * * 567Hotel ID
hotelNameStringY500Hotel name
hotelNameEnStringN500Hotel name (English)
brandCodeIntegerY50Hotel Brand Code
brandNameStringY50Hotel Brand Name
provinceNoStringY16Province/State Code
provinceNameStringY64Province/State Name
cityNoStringY16City Code
cityNameStringY64City Name
countyNoStringY16County code
countyNameStringY64District name
hotelAddressStringN500Address
hotelAddressEnStringN500Address
hotelAddressTipStringN500Address Hint
telephoneStringN200Phone
phoneCodeStringN16Area Code
faxStringN50Fax
zipCodeStringN50Zip code
roomNumIntegerN-Number of rooms
hotelWordIntroduceStringN2000Hotel Introduction
longitudeStringN50Longitude (eg:"57.038973")
latitudeStringN50Latitude (eg:"9.937596")
openingDateDateN-Official business date, format: yyyy-MM-dd
firstOpeningDateDateN-First opening date, format: yyyy-MM-dd
overhaulTimeDateN-Last decoration time, format: yyyy-MM-dd
trialOpeningDateDateN-Hotel trial opening date, format: yyyy-MM-dd
operateScopeIdIntegerN-Operate scopeid, Enumeration reference Business Scope
contactPositionString--Title (Deprecated)
contactNameString--Name (Deprecated)
emailStringN100Email, contact hotel email
internationalBooleanY-Whether it is an international hotel, Enumeration reference whether it is international
tradeCurrencyStringN20Currency, international standard: ISO-4217
invoiceTypeIntegerN-Invoice Type, Enumeration reference Invoice Type
scaleOfTaxpayerIntegerN-Taxpayer Size, Enumeration reference Invoice Type
cleanLevelIntegerN-clean level, Enumeration reference clean level
hotelRoomTypeListList<HotelRoomType>N-Hotel Room Type Information
hotelServiceListList<HotelService>N-Hotel Services
hotelPhotoListList<HotelPhoto>N-Hotel Image Information
hotelTrafficListList<HotelTraffic>N-Hotel Traffic Information
HotelRoomType#
ParameterTypeRequiredMaximum lengthExampleDescription
roomTypeCodeStringY64Room Code
roomTypeNameStringY200Room name
roomNumIntegerN-Number of rooms
summaryStringN500Introduction to Room Type
hotelAreaIntegerN-Area in Square Meters
floorPlaceStringN200Floor, e.g. 1: for 1st floor
bedWidthStringN200Bed width in meters
isADSLStringN50Whether broadband Internet access is available, and the Enumeration reference width Internet access
isADSLWifiStringN50Whether guest room wifi coverage, Enumeration reference guest room wifi coverage
isHasWindowStringN50Whether there is a window, Enumeration reference whether there is a window
isCanAddBedStringN50Enumeration reference extra bed
hasSmokeFreeStringN50Smoke-free, Enumeration reference whether there is a smoke room
maxOccupancyIntegerN-Maximum occupancy
maxAdultIntegerN-Maximum Number of People
maxChildIntegerN-Maximum number of children
statusIntegerN-Status, Status of Room 1-Enabled 0-Disabled
bedTypeListList<BedType>Y-Bed Type
BedType#
ParameterTypeRequiredMaximum lengthExampleDescription
bedTypeCodeStringY20Bed type code
bedSpecNoStringY50Bed type specification business number (-1 indicates the group default specification)
bedTypeNameStringN100Bed type name
bedSpecStringN50Bed type specification name
HotelService#
ParameterTypeRequiredMaximum lengthExampleDescription
childClassNameStringN50Facility Name
childClassCodeIntegerN50Facility Code, Enumeration reference typeMappingCode
childClassNameDescStringN200Facility description
HotelPhoto#
ParameterTypeRequiredMaximum lengthExampleDescription
fileNameStringN200Filename
fileTitleStringN100Picture Title
fileFormatStringN20File format
fileSizeDoubleN1510File Size
typeCodeStringN20File type, Enumeration reference typeCode
typeMappingCodeStringN50The specific code corresponding to the type, the Enumeration reference typeMappingCode
descriptStringN500Document description
sortIdIntegerN-sort value, the smaller the number, the image presentation has a higher priority
fileUrlStringN200Image URL
statusIntegerN-Status 1-Enabled 0-Disabled
HotelTraffic#
ParameterTypeRequiredMaximum lengthExampleDescription
destinationTypeStringN10Destination type, Enumeration reference destination type
destinationTypeNameStringN256Destination Type Name
destinationNameStringN256Destination name
destinationDistanceStringN50Destination distance
trafficTipsStringN512Traffic Alert

ResponseCode#

Exception CodeException TypeDescription
1000Success
3201Invalid hotel IdHotel Id does not exist
3202Hotel is closedHotel is closed
3203No hotel detail can be foundno hotel details found
3204The number of requests exceeded the daily limit
OthersGlobal Exception CodeGlobal Exception [Reference]

Message example#

Case1: Check the details of a hotel#

Request Example#

{
"hotelId":"12**567"
}

Example of successful response#

{
"code":1000
"content ":{
"brandCode":2
"brandName":"** court ",
"cityName":"Shanghai",
"cityNo":"310100 ",
"cleanLevel":"0 ",
"countyName":"Huangpu District",
"countyNo":"310101 ",
"email":"xxx.huazhu.com ",
"firstOpeningDate":1356883200000
"fax":"63232217 ",
"hotelAddress":"Shanghai** 3 ",
"hotelAddressEn":"** Yan'an East Road, Huangpu District, Shanghai ",
"hotelAddressTip":"Near Zhejiang** Food Street ",
"hotelName":"Han** Hotel ",
"hotelNameEn":"** Hotel Shanghai People's Square ",
"hotelId":"12**567 ",
"hotelPhotoList ":[
{
"descript ":"",
"fileFormat":"jpg ",
"fileName":"Conference Room",
"fileTitle":"Conference Room",
"fileUrl":"http://ws-p.**.com/f/k/1lz18g.jpg ",
"sortId":10100
"typeCode":"1 ",
"typeMappingCode":"3"
}
],
"hotelRoomTypeList ":[
{
"bedTypeList ":[
{
"bedSpec":"1.8m*1.8m ",
"bedSpecNo":"-1 ",
"bedTypeCode":"A ",
"bedTypeName":"Queen"
}
],
"floorPlace ":"",
"hasSmokeFree":"1 ",
"hotelArea":20
"isCanAddBed":"1 ",
"isHasWindow":"1 ",
"maxOccupancy":999
"maxChild":1
"maxAdult":1
"roomNum":1
"roomTypeCode":"AAA ",
"roomTypeName":"Class 5A Big Bed Room with Sea View",
"status":1
"summary":"Description"
}
],
"hotelServiceList ":[
{
"childClassCode":41
"childClassName":"Wardrobe",
"childClassNameDesc ":""
},
{
"childClassCode":49
"childClassName":"Chinese Restaurant"
}
],
"hotelTrafficList ":[
{
"destinationDistance":"25km ",
"destinationName":"Airport",
"destinationType":"1 ",
"destinationTypeName":"Airport",
"trafficTips":"Please drive"
},
{
"destinationDistance":"35km ",
"destinationName":"ship",
"destinationType":"3 ",
"destinationTypeName":"ship",
"trafficTips":"Sailing"
}
],
"hotelWordIntroduce":"** Hotel (**International Convention Center Store)",
"invoiceType":1
"international":false
"latitude":"*1.2300*68507687 ",
"longitude":"1*.481*60034847 ",
"openingDate":1356883200000
"operateScope":"1 ",
"provinceName":"Shanghai",
"provinceNo":"310000 ",
"roomNum":670
"scaleOfTaxpayer":"123 ",
"phoneCode":"021 ",
"telephone":"632**814 ",
"tradeCurrency":"CNY ",
"trialOpeningDate":1356883200000
"zipCode":"200001"
}
}

Response Failure Example#

{
"code": 3201
"message": "Invalid hotel Id"
}