API Lists
City List
Hotel List
Details of static information
Quotation interface
Price change increment interface
Order quotation interface
Create Order
Cancel Order
Query order

Hotel List

Hotel basic data, request method: http, Returns the json format.
Special optional parameters cannot be empty at the same time
When requesting time format, pay attention to translating URLEncoder.encod (updateTime, "UTF-8")

Interface address

Name Request format test address
Hotel list GET http://58.250.56.5:8158/api/hotel/queryHotelList.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
National code countryId Integer Special options 70007 70007 Mainland China, Hong Kong, Macao and Taiwan 700087000970555 1. If there is no update time request, it must be transferred to the province or city 2. Those with an updatetime request are not subject to this restriction 3. Updatetime (modification time) Query data within 2 months at most
Provincial code stateId Integer Special options 70017
city code cityId Integer Special options 70002
page no pageIndex Integer yes 1
Number of pages pageSize Integer yes Maximum 1000 records
Modification time updateTime String Special options yyyy-MM-dd hh:mm:ss
Whether to confirm immediately isConfirm Integer no 0: All, 1: Immediate confirmation, 2: To be checked

sample

            	{"head":{"appKey":"SZ28276","timestamp":"1516816895000","sign":"063cae11a00896187f80eecbf922364a","version":"3.0.1"},"data":{"countryId":"70007","pageIndex":0,"pageSize":2}}
            	

Return parameters

Name code type sample description
Total number of hotels count Integer 300
page no pageIndex Integer none 1
Number of pages pageSize Integer none 10
Hotel array hotels HotelInfo[] none HotelInfo See the following table for definitions

HotelInfo

The object includes hotel information.

attribute

Name code type sample description
Hotel No hotelId Integer none
Country number countryId Integer 70007
Province number stateId Integer 70017
City number cityId Integer 70002
Hotel star star Integer none
Chinese name of the hotel hotelNameCn String 捷旅IT测试酒店
English name of hotel hotelNameEn String JetourITTestHotel
Chinese address addressCn String 中兴路105号儒骏大厦
English address addressEn String none
Hotel switchboard phone String 0755123456789
longitude longitude String 119.8636
latitude latitude String 31.4368
Whether to confirm immediately instantConfirmation Integer none 0: All, 1: Immediate confirmation, 2: To be checked
Whether the hotel is popular sellType Integer none
Modification time updateTime String none yyyy-MM-dd hh:mm:ss

Return example

Return example
            	{"respId":"160b8746-a895-44af-b63b-b30f46ba4151","code":0,"errorMsg":"","result":{"count":300,"pageIndex":0,"pageSize":2,"hotels":[{"hotelId":1,"countryId":70007,"stateId":70017,"cityId":70002,"star":45,"hotelNameCn":"捷旅IT测试酒店","hotelNameEn":"JetourITTestHotel","addressCn":"中兴路105号儒骏大厦哈哈","addressEn":"ZhongxingRoad105RujunBuilding","phone":"0755123456789","longitude":"119.8636","latitude":"31.4368","sellType":0,"updateTime":"2018-01-0103:15:03"},{"hotelId":42,"countryId":70007,"stateId":70017,"cityId":30000961,"star":55,"hotelNameCn":"汕尾巴黎半岛酒店","hotelNameEn":"ShanweiParispeninsulahotel","addressCn":"汕尾市城区城区汕尾大道中段","addressEn":".","phone":"0660-3216888","longitude":"","latitude":"","sellType":0,"updateTime":"2018-01-0103:14:52"}]}}