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

Price change increment interface

Request method: http,Returns the json format.
When requesting time format, pay attention to translating URLEncoder.encod (updateTime, "UTF-8")

Interface address

Name Request format test address
Price change increment interface GET http://58.250.56.5:8158/api/hotel/queryChangedPrice.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 indicates that the request is successful; non-0 indicates that there is a business exception.
Results description errorMsg String misdescription
version version String 3.0.1
Result object result String Different requests are different objects, and incorrect requests generally return empty
Response code respId String The only code of a single response. Please provide the code for troubleshooting business problems

input parameter

Name code type Whether it is mandatory samole description
Price change time updateTime String no Incremental list of current time -1 minute Mode 1: If this parameter is not entered, Jetty will return the maximum change time (system time -1 minute increment list)
Mode 2: The current time is transmitted to the system for the first time, and Jettravel returns the maximum change time of this time (price change time+1 minute increment list), and queries the next time according to the maximum change time.

sample

            	{"head":{"appKey":"SZ28276","timestamp":"1516816895000","sign":"063cae11a00896187f80eecbf922364a","version":"3.0.1"},"data":{"updateTime": "2017-12-28 09:30:29"}}
            	

Return parameters

Name code type samole description
Maximum update time maxUpdateTime String yyyy-MM-dd hh:mm:ss Next pull increment value
Price change details array changedHotels ChangedHotel[] none ChangedHotel See the following table for definitions

ChangedHotel

The object includes the price change details.

attribute

Name code type samole description
Hotel No hotelId Integer none
Incremental type type Integer 1: Change clause of variable price room inventory, 2: change clause of variable price room inventory, 3: change clause, 4: change of hotel static information, 99: update the full cache of the hotel

Return example

Return example
            	{"code": 0,"errorMsg": "","result": {"changedPrice": {"maxUpdateTime": "2018-01-13 18:00:50","changedHotels": [{"hotelId": 171813,"type": 2},{"hotelId": 2,"type": 2},{"hotelId": 171812,"type": 2}]},"respId": "a1c96785-9217-4ada-8cdf-c7c0025c29ee"}