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

Order quotation interface

Request method: http,Returns the json format.

Interface address

Name Request format test address
Order quotation interface POST http://58.250.56.5:8158/api/hotel/queryOrderPrice.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
National code hotelId Integer yes none
Product No keyId String yes none
Check in date checkInDate String yes yyyy-MM-dd
Departure date checkOutDate String yes yyyy-MM-dd
Daily price nightlyPrices String yes 200.58|120.6|120.8
Room information roomGroups RoomGroup[] yes 2 Adults The common setting is one room and two adults

RoomGroup

The object includes room occupancy information.

attribute

Name code type samole description
Number of adults adults Integer Default 2
Number of children children Integer
Age of children childAges String Age of children (comma for multiple). The number of ages should be consistent with the number of children

sample

            	{"head":{"appKey":"SZ28276","timestamp":"1516816895000","sign":"063cae11a00896187f80eecbf922364a","version":"3.0.1"},"data":{"hotelId":171813,"keyId":"SGS8SD#4AA9A#DD#2#A","checkInDate":"2018-06-21","checkOutDate":"2018-06-23","nightlyPrices":"150|150","roomGroups":[{"adults":2}]}}
            	

Return parameters

Name code type samole description
Hotel product array hotelRatePlanList HotelRatePlan[] none Consistent with the quotation interface
Bookable information bookingMessage BookingMessage none Bookable information

BookingMessage

BookingMessage The object includes whether the information can be ordered

attribute

Name code type samole description
Orderable code code Integer none 0:Can be booked normally
1:Product problems
2:Insufficient rooms
3:Price discrepancy
4:Subscription rules are not met
5:Full room
99:other
Subscription error message message String Subscription error message

Return example

Return example
            	{"code":0,"errorMsg":"","result":{"orderPrice":{"hotelRatePlans":[{"hotelId":171813,"rooms":[{"roomTypeId":"133892","ratePlans":[{"keyId":"SGS8SD#4AA9A#DD#2#A","keyName":"套房(双床)","bedName":"双床","maxOccupancy":2,"currency":"CNY","rateTypeId":"2","paymentType":0,"breakfast":1,"bookingRuleId":"##W#7#W#9Q#Q#PW#WOEORO4O5OTO7#QQAQQ#RQAQQ","refundRuleId":"1","nightlyRates":[{"formulaType":0,"date":"2018-06-21","cose":150,"status":1,"currentAlloment":888},{"formulaType":0,"date":"2018-06-22","cose":150,"status":1,"currentAlloment":888}],"promotions":[{"startDate":"2018-04-11","endDate":"2019-04-12","description":"入住赠送礼包"}]}]}],"bookingRules":[{"bookingRuleId":"##W#7#W#9Q#Q#PW#WOEORO4O5OTO7#QQAQQ#RQAQQ","minAmount":1,"maxAmount":7,"minDays":1,"maxDays":90,"minAdvHours":0,"maxAdvHours":-1,"weekSet":"1,2,3,4,5,6,7","startTime":"00:00","endTime":"30:00","bookingNotices":""}],"refundRules":[{"refundRuleId":"1","refundRuleType":1}]}],"bookingMessage":{"code":0,"message":"正常可预订"}}},"respId":"3f879655-6143-46ae-aba7-6dd2a63ca888"}