提供酒店列表查询,支持多种条件查询
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
order_list_param | OrderListParam | 可选 | 订单列表查询参数 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
orders_result_set | OrdersResultSet | ordersResultSet | 订单列表结果 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); XhotelOrderListSearchRequest req = new XhotelOrderListSearchRequest(); XhotelOrderListSearchRequest.OrderListParam obj1 = new XhotelOrderListSearchRequest.OrderListParam(); obj1.setPaymentType(1L); obj1.setBuyerNick( "小红" ); obj1.setTids( "333,444" ); obj1.setOutOids( "111,222" ); obj1.setHids( "555,666" ); obj1.setCreatedStart(StringUtils.parseDateTime( "2017-06-28 00:00:00" )); obj1.setCreatedEnd(StringUtils.parseDateTime( "2017-06-28 00:00:00" )); obj1.setCheckinDateStart(StringUtils.parseDateTime( "2017-06-28 00:00:00" )); obj1.setCheckinDateEnd(StringUtils.parseDateTime( "2017-06-28 00:00:00" )); obj1.setCheckoutDateEnd(StringUtils.parseDateTime( "2017-06-28 00:00:00" )); obj1.setTradeStatus( "2,3" ); obj1.setPageNo(1L); obj1.setContactName( "小红" ); obj1.setContactPhone( "13548609889" ); obj1.setSubType( "2" ); obj1.setVendor( "taobao" ); obj1.setPackageOrder( true ); obj1.setCheckoutDateStart(StringUtils.parseDateTime( "2017-06-28 00:00:00" )); obj1.setRelatedCode( "123123" ); obj1.setPartRoomOrder( true ); obj1.setEmptyOutConfirmCode( true ); obj1.setQueryType(1L); obj1.setInvoiceStatus( "1,3" ); obj1.setCardId( "331004199012033257" ); obj1.setOrderAssociateCode(123456L); obj1.setUpsetPrice( true ); obj1.setBookingName( "小红" ); obj1.setUnionStatus( "101" ); req.setOrderListParam(obj1); XhotelOrderListSearchResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | < xhotel_order_list_search_response > < orders_result_set > < total_count >20</ total_count > < top_hotel_orders > < top_hotel_order > < hid >17465037643</ hid > < out_oid >123456</ out_oid > < checkout_date >2017-04-14 00:00:00</ checkout_date > < rp_name >提前3天</ rp_name > < rp_code >测试指定房型新增rp1</ rp_code > < rpid >8022283643</ rpid > < type >6</ type > < hotel_name >智选长湖店</ hotel_name > < room_type_name >标准单间-提前3天含双早</ room_type_name > < created >2017-04-12 10:51:44</ created > < contact_name >IYCDHJV</ contact_name > < checkin_date >2017-04-12 00:00:00</ checkin_date > < nights >2</ nights > < tid >9125720159744288</ tid > < seller_nick >sandbox_sz_01</ seller_nick > < room_type_code >a7057ad3-f2e7-e411-949f-1051721b417b</ room_type_code > < room_number >1</ room_number > < hotel_code >20d34cde-1ce4-e411-949f-1051721b417b</ hotel_code > < payment >33600</ payment > < contact_phone >13516555310</ contact_phone > < trade_status >TRADE_SETTLEING</ trade_status > < buyer_nick >jinjiangzhixingtest</ buyer_nick > < rid >36121263643</ rid > < top_daily_infos > < top_daily_info > < day >day</ day > < price >price</ price > < break_fast_count >breakFastCount</ break_fast_count > </ top_daily_info > </ top_daily_infos > < top_order_guests > < top_order_guest > < name >name</ name > < room_no >roomNo</ room_no > < person_no >personNo</ person_no > < customer_type >customerType</ customer_type > < age >age</ age > </ top_order_guest > </ top_order_guests > < split_order >splitOrder</ split_order > < package_order >packageOrder</ package_order > < block_room_order >blockRoomOrder</ block_room_order > < discount_fee >12300</ discount_fee > < shop_discount_fee >12300</ shop_discount_fee > < city >420000</ city > < book_seller_payment >1</ book_seller_payment > < refund_status >1</ refund_status > < top_info_map > < ht_fnp >15000</ ht_fnp > < promotion_snap_key >cc03e168e9504641ab3e2a85d967b2e7</ promotion_snap_key > < hbs_hotel_addr >亦庄镇贵圆南路6号。</ hbs_hotel_addr > < hbs_eg_order >1</ hbs_eg_order > < hbs_buyer_alipay_no >20881021618066230156</ hbs_buyer_alipay_no > < hbs_charge_commission >[{"channel":"H","commissionType":1},{"channel":"O","commissionType":1}]</ hbs_charge_commission > < cancel_type >1</ cancel_type > < in_seller_service_time_order_flag >1</ in_seller_service_time_order_flag > < hbs_order_total_price >2000</ hbs_order_total_price > < occupancy >occupancy</ occupancy > < hbs_platform_promotion_amt >0</ hbs_platform_promotion_amt > < hbs_eagle_eye_trade_id >0a7d1d2a14994765090351122d2c85</ hbs_eagle_eye_trade_id > < cancel_policy_json >{"cancelPolicyType":1,"policyInfo":{}}</ cancel_policy_json > < hbs_max_other_fee >1000</ hbs_max_other_fee > < first_booking_rate_plan >false</ first_booking_rate_plan > < snapshot_key >1499476508322-6565-11.162.86.42-1858047322</ snapshot_key > < hbs_room_type_out_id >sell20138170-1448359538201</ hbs_room_type_out_id > < hbs_all_tags >3649,641,257,5,1793,193,2052,65</ hbs_all_tags > < hbs_cancel_polity_info >{"cancel":true,"direct":false,"lastCancelDate":1499529600000}</ hbs_cancel_polity_info > < hbs_seller_alipay_no >20881021245500840156</ hbs_seller_alipay_no > < hbs_daily_price_info >{"currencyCode":"CNY","dailyPrices":[{"afterPromotionPrice":0,"breakFastCount":0,"currencyCodeName":"CNY","day":1499443200000,"foreignCurrencyPrice":0,"mileage":0,"point":0,"price":1000,"taxForeignPrice":0,"taxPrice":0},{"afterPromotionPrice":0,"breakFastCount":0,"currencyCodeName":"CNY","day":1499529600000,"foreignCurrencyPrice":0,"mileage":0,"point":0,"price":1000,"taxForeignPrice":0,"taxPrice":0}],"exchangeRate":1}</ hbs_daily_price_info > < invoice_rule_t_o >{"canInvoice":1,"invoicDesc":"酒店开具发票","invoiceProvider":1,"invoiceType":"酒店住宿发票","memo":"无发票"}</ invoice_rule_t_o > < hbs_hotel_out_id >sell3605512164-10003759-1448359538103</ hbs_hotel_out_id > < hbs_create_task_key >hco_rate_plan_2300836554269_3688840202_1499476509019_10254833978210492_checkIn,2017-07-08_checkOut,2017-07-10_bizType,760</ hbs_create_task_key > < hotel_area >0</ hotel_area > < hbs_new_promotion_order >1</ hbs_new_promotion_order > < ebooking_direct_tag >0</ ebooking_direct_tag > < cancel_policy_desc >免费取消订单</ cancel_policy_desc > < hbs_direct >0</ hbs_direct > < close_order_timeout >30</ close_order_timeout > < block_room >1</ block_room > < morning_buy >1</ morning_buy > < online_booking_room >1</ online_booking_room > < hbs_pms_order_id >123222</ hbs_pms_order_id > < upset_price >1</ upset_price > < hbs_self_help_check_in >true</ hbs_self_help_check_in > < hbs_xiao_shi_fang >1</ hbs_xiao_shi_fang > < hbs_hourage >4</ hbs_hourage > < advance_invocie_tag >1</ advance_invocie_tag > < hour_room_arrive_time >2017-04-14 14:00:00</ hour_room_arrive_time > < hour_room_leave_time >2017-04-14 16:00:00</ hour_room_leave_time > < hour_room_reserved_time >4</ hour_room_reserved_time > < is_fz_member_order >true</ is_fz_member_order > < booker_member_card_no >1123123</ booker_member_card_no > </ top_info_map > < invoice_status >invoiceStatus</ invoice_status > < pay_status >payStatus</ pay_status > < union_status_text >unionStatusText</ union_status_text > < union_status_val >unionStatusVal</ union_status_val > < check_out_room_price >checkOutRoomPrice</ check_out_room_price > < city_name >cityName</ city_name > < sub_type >subType</ sub_type > < payment_type_text >paymentTypeText</ payment_type_text > < payment_type >paymentType</ payment_type > < shid >shid</ shid > < order_source_type >orderSourceType</ order_source_type > < order_date >orderDate</ order_date > < seller_payment >sellerPayment</ seller_payment > < currency_code >CNY</ currency_code > < other_fee >otherFee</ other_fee > < morning_buy_order_mark >morningBuyOrderMark</ morning_buy_order_mark > < direction_order_mark >directionOrderMark</ direction_order_mark > < total_room_price >12300</ total_room_price > < pay_time >2017-04-17 12:00:00</ pay_time > < alipay_trade_no >A112313</ alipay_trade_no > < top_overseas_price_info > < seller_payment >12100</ seller_payment > < book_seller_payment >12100</ book_seller_payment > < currency_code >CNY</ currency_code > </ top_overseas_price_info > < gmt_modified >2017-04-17 12:00:00</ gmt_modified > < vendor >taobao</ vendor > < reserved_room_order >true</ reserved_room_order > < related_code >112</ related_code > < logistics_status >1</ logistics_status > < out_confirm_code >o1234</ out_confirm_code > < arrive_early >2017-04-17 12:00:00</ arrive_early > < arrive_late >2017-04-17 12:00:00</ arrive_late > < channel >A</ channel > < rate_id >123</ rate_id > < gid >123</ gid > < need_confirm_no >false</ need_confirm_no > < real_room_type_name >大床房</ real_room_type_name > < memo >订单备注</ memo > < promotion_amt >0</ promotion_amt > </ top_hotel_order > </ top_hotel_orders > < error_msg >订单不存在</ error_msg > < error >false</ error > < error_code >1</ error_code > </ orders_result_set > </ xhotel_order_list_search_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|---|---|
ORDER_NOT_EXIST | 查询不存在的订单 | 查询存在的订单 |
isv.order-error:ORDER_NOT_EXIST | ORDER_NOT_EXIST | ORDER_NOT_EXIST |