感谢您的反馈!
通过订单id获取欢行统一订单模型数据
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| order_id | Number | 必须 | 122312 | 订单id |
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| contacts | ContactDto [] | 订单联系人列表 | 订单联系人列表 |
|
|||
| hotel_books | HotelBookDto [] | 机票预订信息列表 | 机票预订信息列表 |
|
|||
| hotel_resources | ResourceHotelDto [] | 酒店资源详情 | 酒店资源详情 |
|
|||
| order_extends_info | OrderExtendsDto | 订单扩展信息 | 订单扩展信息 |
|
|||
| order_info | OrderDto | 订单基本信息 | 订单基本信息 |
|
|||
| resources | ResourceMainDto [] | 订单资源列表 | 订单资源列表 |
|
|||
| tourists | TouristDto [] | 订单出行人列表 | 订单出行人列表 |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaHappytripOrderGetRequest req = new AlibabaHappytripOrderGetRequest(); req.setOrderId(122312L); AlibabaHappytripOrderGetResponse rsp = client.execute(req); System.out.println(rsp.getBody());
<alibaba_happytrip_order_get_response>
<contacts>
<contact_dto>
<country_code>CN</country_code>
<default_flag>1</default_flag>
<gmt_create>2018-05-11 13:12:10</gmt_create>
<gmt_modified>2018-05-11 13:12:10</gmt_modified>
<id>234323</id>
<name>张三</name>
<order_id>123123213</order_id>
<relation_id>232423</relation_id>
<upc_id>232423</upc_id>
<user_id>234234</user_id>
</contact_dto>
</contacts>
<hotel_books>
<hotel_book_dto>
<gmt_create>2018-05-11 13:12:10</gmt_create>
<gmt_modified>2018-05-11 13:12:10</gmt_modified>
<id>123123</id>
<order_id>12313</order_id>
<resource_hotel_id>234234</resource_hotel_id>
<resource_id>23234234</resource_id>
<resource_main_id>2323</resource_main_id>
<room_no>234234</room_no>
<tourist_id>2343243</tourist_id>
</hotel_book_dto>
</hotel_books>
<hotel_resources>
<resource_hotel_dto>
<check_in>2018-05-11 13:12:10</check_in>
<check_out>2018-05-11 13:12:10</check_out>
<city_chinese_name>上海</city_chinese_name>
<city_code>234234</city_code>
<city_name>上海</city_name>
<country>中国</country>
<district>余杭区</district>
<gmt_create>2018-05-11 13:12:10</gmt_create>
<gmt_modified>2018-05-11 13:12:10</gmt_modified>
<hotel_address>望京启阳路2号</hotel_address>
<hotel_chinese_name>万豪国际酒店集团公司</hotel_chinese_name>
<hotel_english_name>Marriott International</hotel_english_name>
<hotel_id>234234</hotel_id>
<hotel_name>万豪国际酒店集团公司</hotel_name>
<hotel_tel>010-23123</hotel_tel>
<id>12123</id>
<latitude>30.23424</latitude>
<longitude>120.36565</longitude>
<nights>3</nights>
<order_id>234234</order_id>
<out_hotel_id>234234</out_hotel_id>
<province>浙江省</province>
<resource_id>2342343</resource_id>
<resource_main_id>234234</resource_main_id>
<room_count>234</room_count>
<room_type_id>234</room_type_id>
<room_type_name>豪华双床房-阿里集团协议价+(入住请出示工牌)无早</room_type_name>
</resource_hotel_dto>
</hotel_resources>
<order_extends_info>
<agent_fail>拒绝</agent_fail>
<buyer_fail>拒绝</buyer_fail>
<error_message>error</error_message>
<errors_code>ER3343</errors_code>
<gmt_create>2018-05-11 13:12:10</gmt_create>
<gmt_modified>2018-05-11 13:12:10</gmt_modified>
<id>234234</id>
<order_id>2342343</order_id>
<reason>用户拒绝</reason>
<trip_purpose>见客户</trip_purpose>
</order_extends_info>
<order_info>
<alipay_trade_no>12321323</alipay_trade_no>
<b2g_flag>1</b2g_flag>
<biz_type>234</biz_type>
<biz_type_desc>差旅</biz_type_desc>
<book_time>2018-05-11 13:12:10</book_time>
<buyer_user_id>234233</buyer_user_id>
<buyer_user_memo>error</buyer_user_memo>
<buyer_user_name>张三</buyer_user_name>
<close_time>2018-05-11 13:12:10</close_time>
<current_status>1</current_status>
<current_status_desc>预定中</current_status_desc>
<expire_time>2018-05-11 13:12:10</expire_time>
<gmt_create>2018-05-11 13:12:10</gmt_create>
<gmt_modified>2018-05-11 13:12:10</gmt_modified>
<id>345345</id>
<issue_time>2018-05-11 13:12:10</issue_time>
<memo>备注</memo>
<online_flag>1</online_flag>
<order_class_id>4</order_class_id>
<order_class_name>飞猪</order_class_name>
<order_class_second_id>24</order_class_second_id>
<order_class_second_name>飞猪国内机票</order_class_second_name>
<out_order_id>234234</out_order_id>
<out_order_status>324</out_order_status>
<out_order_status_desc>2343</out_order_status_desc>
<outer_travel_head_id>565456</outer_travel_head_id>
<pay_status>4</pay_status>
<pay_status_desc>支付超时</pay_status_desc>
<pay_time>2018-05-11 13:12:10</pay_time>
<pay_type>信用住</pay_type>
<plan_time>计划2018-05-11 13:12:10</plan_time>
<source>3</source>
<total_price>234.5</total_price>
<total_price_currency_code>CNY</total_price_currency_code>
<total_price_decimal_places>3</total_price_decimal_places>
<valid_flag>1</valid_flag>
</order_info>
<resources>
<resource_main_dto>
<adult_cost>12313</adult_cost>
<adult_count>343</adult_count>
<adult_price>233</adult_price>
<agency_id>23233</agency_id>
<agency_name>酷飞在线信息科技南京有限公司</agency_name>
<agency_order_id>234233</agency_order_id>
<alipay_trade_no>2342343</alipay_trade_no>
<b2g_flag>1</b2g_flag>
<back_city_code>223</back_city_code>
<back_city_name>上海</back_city_name>
<back_time>2018-05-11 13:12:10</back_time>
<base_amount>3234</base_amount>
<base_amount_currency_code>CNY</base_amount_currency_code>
<base_amount_decimal_places>2</base_amount_decimal_places>
<book_city_code>2323</book_city_code>
<book_city_name>上海</book_city_name>
<book_time>2018-05-11 13:12:10</book_time>
<contract_flag>1</contract_flag>
<contract_price>2343.3</contract_price>
<end_addr>上海淞虹路5号</end_addr>
<end_city_code>234234</end_city_code>
<end_city_name>上海</end_city_name>
<end_date>2018-05-11 13:12:10</end_date>
<end_latitude>120.36636</end_latitude>
<end_longitude>30.3636</end_longitude>
<expire_time>2018-05-11 13:12:10</expire_time>
<gmt_create>2018-05-11 13:12:10</gmt_create>
<gmt_modified>2018-05-11 13:12:10</gmt_modified>
<id>23423</id>
<lower_amount>23423</lower_amount>
<lower_amount_currency_code>CNY</lower_amount_currency_code>
<lower_amount_decimal_places>2</lower_amount_decimal_places>
<order_id>2123</order_id>
<plan_time>2018-05-11 13:12:10</plan_time>
<pnr>pnr</pnr>
<pnr_expire_time>2018-05-11 13:12:10</pnr_expire_time>
<reason>说明</reason>
<reason_code>ASD</reason_code>
<refund_reason>退款</refund_reason>
<refund_status>A</refund_status>
<refund_type>退款类型</refund_type>
<resource_id>23423</resource_id>
<resource_name>打包资源</resource_name>
<resource_status>资源状态</resource_status>
<resource_status_desc>资源状态描述</resource_status_desc>
<resource_type>100110</resource_type>
<rule>json</rule>
<seat_price>2343</seat_price>
<seat_price_currency_code>CNY</seat_price_currency_code>
<seat_price_decimal_places>2</seat_price_decimal_places>
<start_addr>虹桥机场_SHA</start_addr>
<start_city_code>SH</start_city_code>
<start_city_name>上海</start_city_name>
<start_date>2018-05-11 13:12:10</start_date>
<start_latitude>30.232</start_latitude>
<start_longitude>120.33656</start_longitude>
<submit_time>2018-05-11 13:12:10</submit_time>
<tax_amount>33454</tax_amount>
<tax_amount_currency_code>CNY</tax_amount_currency_code>
<tax_amount_decimal_places>2</tax_amount_decimal_places>
<total_amount>2323.2</total_amount>
<total_amount_currency_code>CNY</total_amount_currency_code>
<total_amount_decimal_places>2</total_amount_decimal_places>
<update_time>2018-05-11 13:12:10</update_time>
</resource_main_dto>
</resources>
<tourists>
<tourist_dto>
<cert_nation>中国</cert_nation>
<first_name>张</first_name>
<gmt_create>2018-05-11 13:12:10</gmt_create>
<gmt_modified>2018-05-11 13:12:10</gmt_modified>
<id>2343</id>
<last_name>三</last_name>
<name>张三</name>
<order_id>234234</order_id>
<sex>1</sex>
<tourist_type>0</tourist_type>
<travel_business_type>1</travel_business_type>
<user_id>23234</user_id>
</tourist_dto>
</tourists>
</alibaba_happytrip_order_get_response>
<error_response>
<code>50</code>
<msg>Remote service error</msg>
<sub_code>isv.invalid-parameter</sub_code>
<sub_msg>非法参数</sub_msg>
</error_response>
| 错误码 | 错误描述 | 解决方案 |
|---|