提供订单详情查询
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| out_oid | String | 可选 | 123132 | 外部订单号 | |
| tid | Number | 可选 | 1231231231 | 外部订单号 |
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| top_order_detail | TopOrderDetail | 订单详情对象 | |
|
|||
| error | String | error | 错误编号 |
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
XhotelOrderDetailSearchRequest req = new XhotelOrderDetailSearchRequest();
req.setOutOid("123132");
req.setTid(1231231231L);
XhotelOrderDetailSearchResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
<xhotel_order_detail_search_response>
<top_order_detail>
<close_order_rest_second>120</close_order_rest_second>
<hid>123123123</hid>
<rp_name>信用住</rp_name>
<rpid>13213123</rpid>
<end_time>2017-07-29 00:00::00</end_time>
<type>1</type>
<pay_time>2017-07-29 00:00::00</pay_time>
<top_order_package>
<order_package_details>
<top_order_package_detail>
<scenic_address>张家界一号路</scenic_address>
<scenic_name>张家界</scenic_name>
<how_to_play>游泳</how_to_play>
<scenic_id>1</scenic_id>
<amount_unit>人</amount_unit>
<amount>12300</amount>
<discount_price>12300</discount_price>
<dimension_text>1</dimension_text>
<type_name>12300</type_name>
<type>1</type>
<name>12300</name>
<package_id>12300</package_id>
<scenic_cover_img>1.jpg</scenic_cover_img>
</top_order_package_detail>
</order_package_details>
<order_package_desc>描述</order_package_desc>
</top_order_package>
<out_oid>21312</out_oid>
<created>2017-07-29 00:00::00</created>
<hotel_name>如家航行路店</hotel_name>
<nights>1</nights>
<tid>123123</tid>
<top_info_map>
<hbs_eg_order>1</hbs_eg_order>
<hbs_buyer_alipay_no>20882028782831580156</hbs_buyer_alipay_no>
<pre_change_promotion_flag>1</pre_change_promotion_flag>
<morning_buy>1</morning_buy>
<cancel_type>1</cancel_type>
<seller_delay_confirm_time>11</seller_delay_confirm_time>
<currency_type>RMB</currency_type>
<hbs_bed_type>标准单间</hbs_bed_type>
<umid>CV13z58eb74ce7438232a007e5e01c248</umid>
<hbs_old_promotionamt>2000</hbs_old_promotionamt>
<hbs_max_other_fee>1000</hbs_max_other_fee>
<cancel_policy_json>{"cancelPolicyType":1,"policyInfo":{}}</cancel_policy_json>
<hbs_alipay_mobile>18693567304</hbs_alipay_mobile>
<hbs_pms_order_id>C11</hbs_pms_order_id>
<hbs_hotel_out_id>20d34cde-1ce4-e411-949f-1051721b417b</hbs_hotel_out_id>
<hbs_credit_settle>1</hbs_credit_settle>
<ebooking_direct_tag>1</ebooking_direct_tag>
<hbs_old_payment>28000</hbs_old_payment>
<hbs_card_alipay_order>1</hbs_card_alipay_order>
<promotion_snap_key>e0a1bbe1fb304025bb384a358a468f26</promotion_snap_key>
<hbs_all_tags>3649,1729,1921,4353,65,20356,769,193,1793</hbs_all_tags>
<hbs_direct>1</hbs_direct>
<upset_price>1</upset_price>
<reserved_room>reservedRoom</reserved_room>
<block_room>blockRoom</block_room>
<hbs_out_source_corp_name>阿里巴巴</hbs_out_source_corp_name>
<hbs_scan_code_order>1</hbs_scan_code_order>
<btrip_corporate_pay>1</btrip_corporate_pay>
<online_booking_room>1</online_booking_room>
<b2g_flag>1</b2g_flag>
<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_reserved_time>3</hour_room_reserved_time>
<hour_room_leave_time>2019-07-06 22:00:00</hour_room_leave_time>
<hour_room_arrive_time>2019-07-06 15:00:00</hour_room_arrive_time>
<credit_pay_order>1</credit_pay_order>
<is_fz_member_order>true</is_fz_member_order>
<booker_member_card_no>11123123</booker_member_card_no>
<credit_pay_cancel_fee>111200</credit_pay_cancel_fee>
<hbs_out_source_corp_id>11123123</hbs_out_source_corp_id>
<selling_member_price>11123123</selling_member_price>
<selling_price>2344</selling_price>
<fliggy_member_level>f1</fliggy_member_level>
<is_fz_member>false</is_fz_member>
<member_card_order_id>23232</member_card_order_id>
<night_promotion_detail>{"detail":[{"day":1634313600000,"platFund":50,"reduce2Fund":0,"roomNumber":1,"sellerFullReduce":25,"sellerOtherReduce":100},{"day":1634313600000,"platFund":50,"reduce2Fund":0,"roomNumber":2,"sellerFullReduce":25,"sellerOtherReduce":100},{"day":1634313600000,"platFund":0,"reduce2Fund":0,"roomNumber":3,"sellerFullReduce":25,"sellerOtherReduce":150}],"platFundAll":100,"reduce2FundAll":0,"sellerFullReduceAll":75,"sellerOtherReduceAll":350}</night_promotion_detail>
</top_info_map>
<out_confirm_code>123213</out_confirm_code>
<trade_status>1</trade_status>
<alipay_trade_no>1231231213</alipay_trade_no>
<hotel_code>13123</hotel_code>
<rp_code>123123</rp_code>
<reserved_room_order>true</reserved_room_order>
<top_relation_orders>
<top_relation_order>
<tid>12300</tid>
<order_status>12300</order_status>
<room_type_name>12300</room_type_name>
<contact_name>12300</contact_name>
<check_in_date>12300</check_in_date>
<check_out_date>12300</check_out_date>
<contact_phone>12300</contact_phone>
<union_status_text>unionStatusText</union_status_text>
<union_status_value>1</union_status_value>
<pay_status>1</pay_status>
<room_number>1</room_number>
<nights>1</nights>
<payment>11100</payment>
</top_relation_order>
</top_relation_orders>
<split_order>true</split_order>
<hotel_order_seller>
<payment>
<promotion_create_price>12300</promotion_create_price>
<after_promotion_create_price>12300</after_promotion_create_price>
<total_room_price>12300</total_room_price>
<daily_infos>
<currency_code>RMB</currency_code>
<exchange_rate>6.9</exchange_rate>
<daily_prices>
<daily_price_to>
<foreign_currency_price>12300</foreign_currency_price>
<point>12300</point>
<mileage>12300</mileage>
<currency_code_name>RMB</currency_code_name>
<price>12300</price>
<tax_price>12300</tax_price>
<break_fast_count>3</break_fast_count>
<day>2017-07-19 12:00:00</day>
<after_promotion_price>12300</after_promotion_price>
<base_price>12300</base_price>
<tax_foreign_price>12300</tax_foreign_price>
<service_price>1212</service_price>
<service_foreign_price>12121</service_foreign_price>
<base_foreign_price>1200</base_foreign_price>
</daily_price_to>
</daily_prices>
</daily_infos>
<after_promotion_current_price>12300</after_promotion_current_price>
<promotion_current_price>12300</promotion_current_price>
</payment>
<settle_payment>
<plat_promotion_price>12300</plat_promotion_price>
<other_fee>12300</other_fee>
<room_price>12300</room_price>
<order_settle_price>12300</order_settle_price>
<settle_daily_price>
<currency_code>RMB</currency_code>
<exchange_rate>6.9</exchange_rate>
<daily_prices>
<daily_price_to>
<foreign_currency_price>12300</foreign_currency_price>
<point>12300</point>
<mileage>12300</mileage>
<currency_code_name>RMB</currency_code_name>
<price>12300</price>
<tax_price>12300</tax_price>
<break_fast_count>3</break_fast_count>
<day>2017-07-19 12:00:00</day>
<after_promotion_price>12300</after_promotion_price>
<base_price>12300</base_price>
<tax_foreign_price>12300</tax_foreign_price>
<service_price>12121</service_price>
<service_foreign_price>12121</service_foreign_price>
<base_foreign_price>1200</base_foreign_price>
</daily_price_to>
</daily_prices>
</settle_daily_price>
<promotion_price>12300</promotion_price>
</settle_payment>
</hotel_order_seller>
<contact_name>张三</contact_name>
<out_source_corp_name>阿里巴巴</out_source_corp_name>
<booking_status>1</booking_status>
<out_order_id>123123</out_order_id>
<room_type_code>123123</room_type_code>
<related_code>12311231</related_code>
<union_status_text>已下单</union_status_text>
<checkin_date>2017-07-10 18:00:00</checkin_date>
<top_daily_infos>
<top_daily_info>
<price>12300</price>
<break_fast_count>3</break_fast_count>
<day>2017-07-19 12:00:00</day>
<extra_add_price>9000</extra_add_price>
</top_daily_info>
</top_daily_infos>
<room_number>1</room_number>
<logistics_status_text>待发货</logistics_status_text>
<confirm_duration>123</confirm_duration>
<checkout_date>2017-07-10 18:00:00</checkout_date>
<top_overseas_price_info>
<currency_code>RMB</currency_code>
<booking_product_sale_price>12300</booking_product_sale_price>
<buyer_payment>12300</buyer_payment>
<tax_price>12300</tax_price>
<seller_payment>12300</seller_payment>
<other_fee>12300</other_fee>
<booking_service_price>12300</booking_service_price>
<booking_rate>6.9</booking_rate>
<rate>6.9</rate>
<book_seller_payment>12300</book_seller_payment>
<booking_tax_price>12300</booking_tax_price>
<total_payment>12300</total_payment>
<checkout_rate>离店汇率</checkout_rate>
<fund_price>12300</fund_price>
<settle_product_sale_price>12300</settle_product_sale_price>
<service_price>12300</service_price>
<create_order_daily_price>
<daily_prices>
<daily_price_to>
<day>2017-07-10 00::00:00</day>
<price>12000</price>
<break_fast_count>2</break_fast_count>
<tax_price>1200</tax_price>
<foreign_currency_price>111</foreign_currency_price>
<service_price>111</service_price>
<tax_foreign_price>12121</tax_foreign_price>
<service_foreign_price>12121</service_foreign_price>
<base_foreign_price>1200</base_foreign_price>
<base_price>1200</base_price>
</daily_price_to>
</daily_prices>
</create_order_daily_price>
<booking_rooms_price>1212</booking_rooms_price>
<settle_order_daily_price>
<daily_prices>
<daily_price_to>
<day>2017-09-01 00:00:00</day>
<price>1212</price>
<break_fast_count>1</break_fast_count>
<tax_price>12</tax_price>
<foreign_currency_price>1212</foreign_currency_price>
<service_price>111</service_price>
<tax_foreign_price>122</tax_foreign_price>
<service_foreign_price>1212</service_foreign_price>
<base_foreign_price>1200</base_foreign_price>
<base_price>1200</base_price>
</daily_price_to>
</daily_prices>
</settle_order_daily_price>
<rooms_price>1200</rooms_price>
<base_price>1200</base_price>
<booking_base_price>1200</booking_base_price>
</top_overseas_price_info>
<need_confirm_no>true</need_confirm_no>
<show_seller_delay_confirm_button>true</show_seller_delay_confirm_button>
<arrive_late>2017-07-10 18:00:00</arrive_late>
<contact_phone>12345678900</contact_phone>
<block_room_order>true</block_room_order>
<payment>12300</payment>
<refund_reason>取消</refund_reason>
<top_promotion>
<top_create_order_promotion>
<cash_back_amount>11121</cash_back_amount>
<seller_decrease>12112</seller_decrease>
<top_hotel_promotions>
<top_hotel_promotion>
<consume_mileage>12300</consume_mileage>
<rule_desc>描述</rule_desc>
<promotion_desc>描述</promotion_desc>
<amount>12300</amount>
<seller_amount>12300</seller_amount>
<times>12300</times>
<priority>12300</priority>
<tid>12300</tid>
<amount_type>默认字符串</amount_type>
<activity_icon_desc>默认字符串</activity_icon_desc>
<activity_group_name>默认字符串</activity_group_name>
<activity_code>默认字符串</activity_code>
<discount>12300</discount>
<rule_type>12300</rule_type>
<rule_target>12300</rule_target>
<integral_activity>true</integral_activity>
<rule_code>code</rule_code>
<activity_name>默认字符串</activity_name>
<investor_type>1</investor_type>
</top_hotel_promotion>
</top_hotel_promotions>
<decrease>2232</decrease>
<platform_decrease>23232</platform_decrease>
</top_create_order_promotion>
<top_current_order_promotion>
<cash_back_amount>cashBackAmount</cash_back_amount>
<seller_decrease>12121</seller_decrease>
<top_hotel_promotions>
<top_hotel_promotion>
<rule_desc>规则</rule_desc>
<investor_type>1</investor_type>
<amount>12300</amount>
<seller_amount>12300</seller_amount>
<times>12300</times>
<amount_type>0</amount_type>
<activity_code>1</activity_code>
<rule_type>12300</rule_type>
<rule_target>12300</rule_target>
<rule_code>11</rule_code>
<activity_name>优惠活动</activity_name>
</top_hotel_promotion>
</top_hotel_promotions>
<decrease>11212</decrease>
<platform_decrease>12121</platform_decrease>
</top_current_order_promotion>
<top_order_promotion_extend>
<top_daily_seller_promotions>
<top_daily_seller_promotion>
<date>1212121</date>
<seller_promotion>121</seller_promotion>
</top_daily_seller_promotion>
</top_daily_seller_promotions>
</top_order_promotion_extend>
</top_promotion>
<rid>123123</rid>
<arrive_early>2017-07-10 18:00:00</arrive_early>
<sub_type>1</sub_type>
<total_room_price>31200</total_room_price>
<out_source>1</out_source>
<room_type_name>大床房</room_type_name>
<top_order_guests>
<top_order_guest>
<customer_type>12300</customer_type>
<person_no>12300</person_no>
<name>张三</name>
<age>12300</age>
<room_no>12300</room_no>
</top_order_guest>
</top_order_guests>
<union_status_value>1</union_status_value>
<invoice_title>阿里巴巴</invoice_title>
<other_fee>12300</other_fee>
<memo>备注</memo>
<logistics_status_value>1</logistics_status_value>
<pay_status>1</pay_status>
<guarantee_type>1</guarantee_type>
<fund_id>1</fund_id>
<cancel_policy_desc>免费取消</cancel_policy_desc>
<tag_jsqr>true</tag_jsqr>
<rate_id>1111</rate_id>
<tax_and_fee>1200</tax_and_fee>
<top_domestic_price_info>
<create_order_daily_price>
<daily_prices>
<daily_price_to>
<tax_price>1200</tax_price>
<break_fast_count>2</break_fast_count>
<price>12399</price>
<day>2017-09-06 00:00:00</day>
<base_price>1200</base_price>
<base_foreign_price>1200</base_foreign_price>
</daily_price_to>
</daily_prices>
</create_order_daily_price>
<tax_price>121</tax_price>
<rooms_price>1212</rooms_price>
<service_price>121</service_price>
<other_fee>121</other_fee>
<booking_rooms_price>212</booking_rooms_price>
<booking_tax_price>2121</booking_tax_price>
<booking_service_price>212</booking_service_price>
<settle_order_daily_price>
<daily_prices>
<daily_price_to>
<tax_price>121</tax_price>
<break_fast_count>1</break_fast_count>
<price>12121</price>
<day>2017-09-01 00:00:00</day>
<base_price>1200</base_price>
<base_foreign_price>1200</base_foreign_price>
</daily_price_to>
</daily_prices>
</settle_order_daily_price>
<base_price>1000</base_price>
<booking_base_price>1000</booking_base_price>
</top_domestic_price_info>
<user_real_payment>9900</user_real_payment>
<gmt_modified>2017-09-01 00:00:00</gmt_modified>
<vendor>taobao</vendor>
<credit_card>
<cvv_code>123121</cvv_code>
<card_number>123123123231</card_number>
<expiration_date>07/19</expiration_date>
<card_code>VA</card_code>
<card_holder_name>张飞</card_holder_name>
</credit_card>
<refund_status>1</refund_status>
<refund_amout>1200</refund_amout>
<post_trade_refund>
<refund_suc_time>2018-01-16 11:00:00</refund_suc_time>
<remark>正常退款</remark>
<refund_amount>1100</refund_amount>
<refund_reason>1</refund_reason>
<post_trade_refund_type>1</post_trade_refund_type>
<post_trade_refund_status>1</post_trade_refund_status>
<create_time>2018-01-16 11:00:00</create_time>
<tid>123121</tid>
</post_trade_refund>
<channel>A</channel>
<city>100100</city>
<payment_type>1</payment_type>
<invoice_status>1</invoice_status>
<order_source_type>1</order_source_type>
<top_invoice>
<provider_type>1</provider_type>
</top_invoice>
<refund_reason_type>101</refund_reason_type>
<max_occupancy>4</max_occupancy>
<top_order_coupon_d_o>
<coupon_title>【暑期促销】深圳君悦酒店1-2晚客房含双早套餐享200元SPA抵扣券</coupon_title>
<coupon_biz_type>113048</coupon_biz_type>
<coupon_out_biz_id>1995032883688065324</coupon_out_biz_id>
<can_split>false</can_split>
<face_value>326500</face_value>
<room_night_face_value>163250</room_night_face_value>
<instruction>预约时间:(2021-08-01 00)—— (2021-10-28 00)<br>入住时间:(2021-08-04)—— (2021-10-31)<br>不可入住时间:(2021-08-04)—— (2021-10-31)内,星期(1)不可入住<br>请在入住前至少提前3天预约<br>加价说明:<br>线上加价:2021-08-01 —— 2021-09-18时间范围内星期(1,2,3,4)入住需要加价400.00元,请在预约提交订单后支付,入住时无需再次支付<br>线上加价:2021-09-22 —— 2021-09-30时间范围内星期(1,2,3,4)入住需要加价400.00元,请在预约提交订单后支付,入住时无需再次支付<br>线上加价:2021-10-08 —— 2021-10-31时间范围内星期(1,2,3,4)入住需要加价400.00元,请在预约提交订单后支付,入住时无需再次支付</instruction>
</top_order_coupon_d_o>
<promotion>
<current_order_promotion>
<daily_hotel_promotion>{1624982400000:{\"amount\":1500,},1625068800000:{\"amount\":1500}}</daily_hotel_promotion>
<seller_decrease>3000</seller_decrease>
</current_order_promotion>
</promotion>
<rp_ori_name>君悦客双床1晚x午/晚餐x礼遇1188x</rp_ori_name>
</top_order_detail>
<error>error</error>
</xhotel_order_detail_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>
| 错误码 | 错误描述 | 解决方案 |
|---|---|---|
| ORDER_NOT_EXIST | 查询的订单不存在 | 查询存在的订单 |