提供异常订单列表查询,目前支持结账失败,未结账订单
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| tid | Number | 可选 | 123455678 | 订单号 | |
| loan_reason_code | Number | 可选 | 1 | 垫付操作状态:1、自动垫付,2、手动垫付,3、运营过滤,4、黑名单过滤,5、酒店卖家过滤,6、不需要垫付 | |
| voucher | Number | 可选 | 1 | 未收回凭证:0、未收回,1、已收回已验收,2、已收回未验证,3、已收回已拒绝 | |
| account_status | Number | 可选 | 1 | 追账状态 | |
| hid_list | String | 可选 | 1111,1112 | 酒店ID列表,逗号分隔 | |
| check_out_end | Date | 可选 | 2017-06-27 00:16:21 | 离店时间截止 | |
| check_out_start | Date | 可选 | 2017-06-27 23:16:21 | 离店时间起始 | |
| page_no | Number | 可选 | 1 | 页码,起始值1 | |
| query_type | Number | 可选 | 1 | 查询类型,1未结账订单,2结账异常订单 | |
| vendor | String | 可选 | taobao | 系统商标识 |
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| abnormal_order_result_set | AbnormalOrderResultSet | abnormalOrderResultSet | 异常订单列表 |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
XhotelOrderAbnormalSearchRequest req = new XhotelOrderAbnormalSearchRequest();
req.setTid(123455678L);
req.setLoanReasonCode(1L);
req.setVoucher(1L);
req.setAccountStatus(1L);
req.setHidList("1111,1112");
req.setCheckOutEnd(StringUtils.parseDateTime("2017-06-27 00:16:21"));
req.setCheckOutStart(StringUtils.parseDateTime("2017-06-27 23:16:21"));
req.setPageNo(1L);
req.setQueryType(1L);
req.setVendor("taobao");
XhotelOrderAbnormalSearchResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
<xhotel_order_abnormal_search_response>
<abnormal_order_result_set>
<total_count>12</total_count>
<credit_loan_orders>
<credit_loan_order_do>
<credit_score>12300</credit_score>
<gmt_modified>2017-12-05 12:00:00</gmt_modified>
<card_pic>默认字符串</card_pic>
<hid>21212232</hid>
<remark>默认字符串</remark>
<out_hid>a111</out_hid>
<out_trade_no>默认字符串</out_trade_no>
<pms_pic>默认字符串</pms_pic>
<out_oid>默认字符串</out_oid>
<seller_nick>默认字符串</seller_nick>
<hotel_name>默认字符串</hotel_name>
<account_status>12300</account_status>
<buyer_nick>默认字符串</buyer_nick>
<hotel_phone>默认字符串</hotel_phone>
<auto_result>默认字符串</auto_result>
<biz_id>12300</biz_id>
<alitrip_alipay_no>默认字符串</alitrip_alipay_no>
<alipay_trade_no>默认字符串</alipay_trade_no>
<contact_phone>默认字符串</contact_phone>
<loan_reason_code>12300</loan_reason_code>
<payment>12300</payment>
<gmt_create>2017-12-05 12:00:00</gmt_create>
<status>12300</status>
<other_fee>1000</other_fee>
<buyer_id>12300</buyer_id>
<check_in>2017-06-28 00:00:00</check_in>
<operator>默认字符串</operator>
<noshow>0</noshow>
<check_out>2017-06-29 00:00:00</check_out>
<seller_id>12300</seller_id>
<contact_name>默认字符串</contact_name>
<seller_alipay_no>默认字符串</seller_alipay_no>
<total_room_price>12100</total_room_price>
<checkin_pic>默认字符串</checkin_pic>
<attributes>默认字符串</attributes>
<voucher>1</voucher>
<room_type_name>默认字符串</room_type_name>
<voucher_info>默认字符串</voucher_info>
<buyer_alipay_no>默认字符串</buyer_alipay_no>
<vendor>技术提供商</vendor>
</credit_loan_order_do>
</credit_loan_orders>
<hotel_no_check_out_credit_orders>
<hotel_no_check_out_credit_order>
<tid>1323232</tid>
<tid_str>111,222</tid_str>
<outer_id>22222</outer_id>
<check_in_date>2017-06-28 00:00:00</check_in_date>
<check_out_date>2017-06-28 00:00:00</check_out_date>
<check_in_date_str>2017-06-28 00:00:00</check_in_date_str>
<check_out_date_str>2017-06-28 00:00:00</check_out_date_str>
<trade_status_code>1</trade_status_code>
<room_type_name>豪华房</room_type_name>
<contact_name>小红</contact_name>
<contact_phone_number>1345438948</contact_phone_number>
<check_in_name>2017-06-28 00:00:00</check_in_name>
<hotel_name>淘宝大酒店</hotel_name>
<hotel_tel>1212121</hotel_tel>
<hotel_code>1111</hotel_code>
<bd_name>小二</bd_name>
<seller_nick_name>淘宝酒店旗舰店</seller_nick_name>
<collect_day>2017-06-28 00:00:00</collect_day>
<out_trade_no>outTradeNo</out_trade_no>
<hotel_phone>hotelPhone</hotel_phone>
<out_oid>12121</out_oid>
</hotel_no_check_out_credit_order>
</hotel_no_check_out_credit_orders>
<error_code>1</error_code>
<error_msg>订单不存在</error_msg>
<error>false</error>
</abnormal_order_result_set>
</xhotel_order_abnormal_search_response>
<error_response>
<code>50</code>
<msg>Remote service error</msg>
<sub_code>isv.invalid-parameter</sub_code>
<sub_msg>非法参数</sub_msg>
</error_response>
| 错误码 | 错误描述 | 解决方案 |
|---|