Details of static information
Request method: http,Returns the json format.
Interface address
| Name | Request format | test address |
|---|---|---|
| Details of static information | GET | http://58.250.56.211:8081/api/hotel/queryHotelDetail.json?reqData=xxx |
System input parameters
| Name | code | type | samole | description |
|---|---|---|---|---|
| Customer ID | appKey | String | SZ28276 | JL provide |
| time stamp | timestamp | String | 1516816895000 | Unix timestamp |
| digital signature | sign | String | 063cae11a00896187f80eecbf922364a | Signature method: md5 (md5 (secretKey+appKey)+timestamp) md5 uses 32-bit lowercase. |
| version | version | String | 3.0.1 | Version information, please refer to version description |
System output parameters
| Name | code | type | samole | description |
|---|---|---|---|---|
| result code | code | Integer | 0 | 0 means the request is successful; Non 0 indicates that there is a business exception. |
| Results description | errorMsg | String | Error description | |
| version | version | String | 3.0.1 | |
| Result object | result | String | Different requests are different objects, and wrong requests are generally returned as null | |
| Response code | respId | String | The unique code of a single response. Please provide the code for troubleshooting business problems |
input parameter
| name | code | type | Whether it is mandatory | samole | description |
|---|---|---|---|---|---|
| Hotel No | hotelId | Integer | yes | 1 | none |
| Return result parameters | params | String | no | 1,2,3 | The default 1 is not transferred, and multiple commas are separated. 1 Hotel static information is required 2 Room type information is required 3 Price type is required 4 Hotel pictures are required |
sample
{"head": {"appKey": "SZ28276","timestamp": "1516816895000","sign":"063cae11a00896187f80eecbf922364a","version":"3.0.1"},"data": {"hotelId":15,"params":"1,2,3,4"}}
Return parameters
| Name | code | type | sample | description |
|---|---|---|---|---|
| Hotel No | hotelId | Integer | ||
| Hotel static information | hotelInfo | HotelInfo | none | Hotel See the following table for definitions |
| Room type array | roomTypeList | RoomType[] | none | RoomType See the following table for definitions |
| Price Type Array | rateTypeList | RateType[] | none | RateType See the following table for definitions |
| Picture array | imageList | Image[] | none | Image See the following table for definitions |
HotelInfo
The object includes hotel information.
attribute
| Name | code | type | sample | description |
|---|---|---|---|---|
| Hotel Theme | themeType | String | vacation | See constant list |
| Chinese name of the hotel | hotelNameCn | String | none | |
| English name of the hotel | hotelNameEn | String | none | |
| Hotel star | star | String | none | See constant list |
| Chinese address | addressCn | String | none | |
| English address | addressEn | String | none | |
| National code | countryId | Integer | 70007 | |
| Provincial code | stateId | Integer | 70017 | |
| city code | cityId | Integer | 70002 | |
| district | area | Integer | 30000184 | |
| Business District | businessCircle | Integer | 30001724 | |
| Hotel switchboard | phone | String | 0755123456789 | |
| longitude | longitude | String | 119.8636 | |
| latitude | latitude | String | 31.4368 | |
| facsimile | fax | String | 00623-61761868 | |
| mailbox | String | |||
| Zip code | postCode | String | ||
| Hotel entry and departure policy | checkPolicy | String | Check in time: after 14:00, check out time: before 12:00 | |
| Children's policy | childrenPolicy | String | Guests under 18 years old are not allowed to stay alone. | |
| Pet Policy | petPolicy | String | Pets are not allowed. | |
| Opening time | establishmentDate | String | ||
| Decoration time | renovationDate | String | ||
| group | hotelGroup | String | ||
| brand | hotelBrand | String | ||
| Hotel facilities | facilities | String | 11|12|13|14|15|17|18|19|20|22|23|24|21|73 | |
| credit card | cardType | String | Master,VISA,JCB,UnionPay, | |
| Hotel Introduction in Chinese | introduceCn | String | ||
| Hotel English Introduction | introduceEn | String | ||
| Whether the hotel is popular | sellType | Integer | none | |
| Modification time | updateTime | String | none | yyyy-MM-dd hh:mm:ss |
| External prompt | outeriornotes | String | none | none |
RoomType
The object includes room type information.
attribute
| Name | code | type | sample | description |
|---|---|---|---|---|
| Room type No | roomTypeId | Integer | none | |
| Chinese name of guest room | roomTypeCn | String | none | |
| English name of guest room | roomTypeEn | String | none | |
| English name of guest room | roomTypeEn | String | none | |
| Basic room type ID | basisroomid | Integer | 278954 | The basic room type is only for reference. If there is no physical room type, return -1 |
| Chinese name of basic room type | basisroomCn | String | 城景行政豪华房 | The basic room type is only for reference. If there is no physical room type, return -1 |
| Maximum occupancy | maximize | Integer | none | |
| Room area | acreage | String | none | |
| Bed type | bedType | String | Big bed | |
| Bed type name | bedName | String | 大床 | |
| Bed size | bedWidth | String | none | |
| floor | floorDistribute | String | none | |
| Room type facilities | facilities | String | none | |
| Allow extra bed | extraBedtState | String | none | 1 means no extra bed is allowed, 0 means extra bed is allowed |
| Number of extra beds | bedCount | Integer | none |
RateType
The object includes price type information.
attribute
| Name | code | type | sample | description |
|---|---|---|---|---|
| Price type number | rateTypeId | Integer | none | |
| Chinese name of price type | rateTypeCn | String | none | |
| English name of price type | rateTypeEn | String | none |
Image
The object includes picture information.
attribute
| Name | code | type | sample | description |
|---|---|---|---|---|
| Picture number | imageId | Integer | none | |
| Picture Type | type | String | none | See constant list |
| Picture related house type | roomTypeIds | String | none | A picture may correspond to multiple room types, separated by multiple commas. |
| Thumbnail Address | thumbUrl | String | none | |
| Picture address | imageUrl | String | none | |
| With watermark or not | imageLogo | Integer | none | 0 with watermark logo 1 without watermark logo |
| Picture specifications | imageSize | Integer | none | Picture specification 0: Unclassified, 1:350 * 350, 2:550 * 412, 3:640 * 960 |
Return example
{"code":0,"errorMsg":"","result":{"hotelDetailList":[{"hotelId":15,"hotelInfo":{"hotelId":15,"themeType":"vacation","hotelNameCn":"巴厘岛硬石酒店","hotelNameEn":"HardRockHotelBali","star":"高档型","addressCn":"印度尼西亚巴厘岛库塔海滩班加潘德马斯班底路","addressEn":"IndonesiaBaliKutaBeachBengalapandeMascusRoad","countryId":70242,"stateId":70558,"cityId":30001058,"longitude":"115.17083644866943","latitude":"-8.721369924535452","phone":"00623-61761869","fax":"00623-61761868","checkPolicy":"入住时间:14点以后,离店时间:12点以前","childrenPolicy":"不接受18岁以下客人单独入住。","petPolicy":"不可携带宠物。","hotelGroup":"1471","facilities":"11|12|13|14|15|17|18|19|20|22|23|24|21|73","cardType":"Master,VISA,JCB,UnionPay","introduceCn":"位于库塔的库塔-图班,只需几分钟便能到达库塔海滩和库塔广场。\r\n该4星级酒店紧邻库塔剧院及巴厘岛爆炸案纪念碑。"},"roomTypeList":[{"roomTypeId":"187","roomTypeCn":"阁楼房","roomTypeEn":"Loftroom","bedType":"other","bedName":"三张床","maximize":2,"bedWidth":"1.6m*2.0m","facilities":"12,16,19,21,22,14,30,32","extraBedtState":0,"bedCount":0},{"roomTypeId":"188","roomTypeCn":"豪华房","roomTypeEn":"DeluxeRoom","bedType":"bigdou","bedName":"大床/双床","maximize":2,"bedWidth":"180x200,1.6M*2M","floorDistribute":"1-4","facilities":"12,13,16,18,19,21,22,14,30,32","extraBedtState":1,"bedCount":1},{"roomTypeId":"189","roomTypeCn":"豪华套房","roomTypeEn":"DeluxeSuite","bedType":"other","bedName":"一大床两小床","maximize":2,"bedWidth":"1.8*2.0m,0.8m*1.8m","facilities":"12,16,18,19,21,22,30,32","extraBedtState":0,"bedCount":0},{"roomTypeId":"190","roomTypeCn":"豪华至尊房","roomTypeEn":"Deluxepremium","bedType":"bigdou","bedName":"大床/双床","maximize":2,"bedWidth":"180x200,1.6M*2M","floorDistribute":"1-4","facilities":"13,16,18,19,21,22,14,30,32","extraBedtState":0,"bedCount":0}],"rateTypeList":[{"ratetypeId":"4","ratetypeCn":"床位早","ratetypeEn":"Bed&Breakfast"},{"ratetypeId":"3","ratetypeCn":"双早","ratetypeEn":"Breakfastfor2Pax"}],"imageList":[{"imageId":1224,"type":-1,"thumbUrl":"","imageUrl":"http://image.jladmin.cn/13722177421840h6086.jpg","imageLogo":0,"imageSize":0},{"imageId":1225,"type":-1,"thumbUrl":"","imageUrl":"http://image.jladmin.cn/13722177434828h6086.jpg","imageLogo":0,"imageSize":0},{"imageId":1226,"type":-1,"thumbUrl":"","imageUrl":"http://image.jladmin.cn/13722177433247h6086.jpg","imageLogo":0,"imageSize":0},{"imageId":1227,"type":-1,"thumbUrl":"","imageUrl":"http://image.jladmin.cn/13722177431916h6086.jpg","imageLogo":0,"imageSize":0},{"imageId":1228,"type":-1,"thumbUrl":"","imageUrl":"http://image.jladmin.cn/13722177430375h6086.jpg","imageLogo":0,"imageSize":0},{"imageId":1229,"type":-1,"thumbUrl":"","imageUrl":"http://image.jladmin.cn/13722177428594h6086.jpg","imageLogo":0,"imageSize":0},{"imageId":1230,"type":-1,"thumbUrl":"","imageUrl":"http://image.jladmin.cn/13722177427453h6086.jpg","imageLogo":0,"imageSize":0},{"imageId":1231,"type":-1,"thumbUrl":"","imageUrl":"http://image.jladmin.cn/13722177426132h6086.jpg","imageLogo":0,"imageSize":0},{"imageId":1232,"type":-1,"thumbUrl":"","imageUrl":"http://image.jladmin.cn/13722177424751h6086.jpg","imageLogo":0,"imageSize":0},{"imageId":1233,"type":-1,"thumbUrl":"","imageUrl":"http://image.jladmin.cn/13722177436099h6086.jpg","imageLogo":0,"imageSize":0}]}]},"respId":"9ba70c17-a253-4063-8d09-6afb22504f81"}