Query order
Request method: http, return json format.
Interface address
Name |
Request format |
test address |
Query order |
GET |
http://58.250.56.5:8158/api/order/queryOrderDetail.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 |
Order No |
orderCode |
String |
Special options |
JLA20118010965193 |
Jielv order number |
Customer order number |
customerOrderCode |
String |
Special options |
R15644321361 |
Customer order number |
Order placing time starts |
createBegin |
String |
Special options |
|
yyyy-MM-dd hh:mm:ss |
Order placing time end |
createEnd |
String |
Special options |
|
yyyy-MM-dd hh:mm:ss The time range cannot exceed 1 day |
sample
{"head": {"appKey": "SZ28276","timestamp": "1516816895000","sign": "063cae11a00896187f80eecbf922364a","version":"3.0.1"},"data":{"orderCode":"P17122700035","customerOrderCode": "R15644321361"}}
Return parameters
Name |
code |
type |
samole |
description |
Order List |
orderDetailList |
OrderDetail[] |
|
|
The object includes order information.
attribute
Name |
code |
type |
samole |
description |
Order No |
orderCode |
String |
JLA20118010965193 |
Unique order number of Jettravel |
Customer order number |
customerOrderCode |
String |
R15644321361 |
|
Hotel No |
hotelId |
Integer |
|
15 |
Hotel name |
hotelNameCn |
String |
巴厘岛硬石酒店 |
|
Room type No |
roomTypeId |
String |
187 |
|
House type name |
roomTypeCn |
String |
阁楼房 |
|
Price type number |
rateTypeId |
String |
4 |
|
Price Type Name |
rateTypeCn |
String |
床位早 |
|
Product No |
keyId |
String |
SF#S6#S8G#4#A |
|
Check in date |
checkInDate |
String |
2017-12-28 |
yyyy-MM-dd |
Departure date |
checkOutDate |
String |
2017-12-29 |
yyyy-MM-dd |
Payment Type |
paymentType |
Integer |
0 |
0: Prepaid, 1: Cash |
Room information |
roomGroups |
RoomGroup[] |
|
none |
currency |
currency |
String |
|
CNY |
Remarks to the hotel |
hotelRemark |
String |
|
Try to arrange senior management |
Booking time |
createTime |
String |
2017-12-27 18:26:14 |
yyyy-MM-dd hh:mm:ss |
Order amount |
totalPrice |
Double |
677 |
|
Order confirmation number |
confirmNo |
String |
|
|
Order Status |
orderStatus |
Integer |
2 |
1: To be confirmed, 2: Confirmed, 3: Rejected, 4: Cancelled, 5: Checked in |
Cancellation clause |
refundRules |
RefundRule[] |
none |
refundRules See the following table for definitions |
The object includes cancellation term information. If it is blank, it is 1 by default and cannot be returned.
attribute
Name |
code |
type |
samole |
description |
Cancellation clause rule |
refundRuleType |
Integer |
none |
The cancellation terms returned from the order status interface are the cancellation terms when the order is placed. When the returned data is empty, it cannot be cancelled by default; 1: Non refundable, 2: Cancellation within time limit |
30 minute free cancellation is supported |
thirtyMinFreeCancelPolicy |
boolean |
none |
Whether it supports free cancellation 30 minutes after confirmation. True indicates support, and False indicates no support (if not filled in, 30 minute free cancellation is not supported by default) |
N hours before check-in |
refundRuleHours |
Integer |
none |
30 |
Cancellation of guest fines |
deductType |
Integer |
none |
1 deduction of the full amount, 0 deduction of the first night's room fee |
Return example
Return example
{"code":0,"errorMsg":"","result":{"orderDetailList":[{"orderCode":"P17122700035","customerOrderCode":"R15644321361","hotelId":15,"hotelNameCn":"巴厘岛硬石酒店","roomTypeId":"187","roomTypeCn":"阁楼房","rateTypeId":"4","rateTypeCn":"床位早","checkInDate":"2017-12-28","checkOutDate":"2017-12-29","paymentType":0,"roomGroups":[{"adults":2,"checkInPersions":[{"lastName":"姓名","firstName":"test"}]}],"currency":"CNY","hotelRemark":"酒店备注","createTime":"2017-12-27 18:26:14","totalPrice":677,"orderStatus":2,"keyId":"SF#S6#S8G#4#A"}]},"respId":"eca58d83-db5f-4147-9abc-565aea97a47d"}