Partners could use this interface to update the order status
O: Optional; R: Required; SR: Special Required
| Name | Type | O/R/SR | Example | Description |
|---|---|---|---|---|
| tid | Number | R | 1387784033263 | tabao order id |
| opt_type | Number | R | 2 | 1:order cancelled(Push cancellation status only for out rule cancellation) 2:booking succeeded 3:Checked in 4: Checked out 5:noshow |
| confirm_code | String | O | 25705251 | hotelConfirmationNo |
| hotel_reverse_reason_desc | String | O | out rule cancellation | description of the reason for rejecting the order |
| hotel_reverse_reason_detail | String | O | Agreement on cancellation has been reached between platform customer service and the customer | description of the reason deta for rejecting the order |
Response successful, success and failure samples of result
1、Json- reservationInfoNotify -Response-Success
{
"xhotel_order_update_response":{
"result":"\"success\""
}
}
2、Json- reservationInfoNotify-Response-Failed
{
"error_response":{
"msg":"Remote service error",
"code":50,
"sub_msg":"非法参数",
"sub_code":"isv.invalid-parameter"
}
}
中文:https://fliggy.open.taobao.com/doc.htm?docId=23026&docType=2
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
XhotelOrderUpdateRequest req = new XhotelOrderUpdateRequest();
req.setTid(100100100L);
req.setOptType(2L);
req.setConfirmCode("25705251");
req.setHotelReverseReasonCode(3300001L);
req.setHotelReverseReasonDesc("House renovation");
req.setHotelReverseReasonDetail("House renovation requires maintenance");
XhotelOrderUpdateResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret); XhotelOrderUpdateRequest req = new XhotelOrderUpdateRequest(); req.Tid = 100100100L; req.OptType = 1L; req.ConfirmCode = "25705251"; req.HotelReverseReasonCode = 3300001L; req.HotelReverseReasonDesc = "House renovation"; req.HotelReverseReasonDetail = "House renovation require maintenance"; XhotelOrderUpdateResponse rsp = client.Execute(req, sessionKey); Console.WriteLine(rsp.Body);