【商旅】酒店订单查询
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
rq | OpenApiSearchRq | 必须 | 入参 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | HisvResult | result | 出参 |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlitripBtripSupplychainHotelSearchRequest req = new AlitripBtripSupplychainHotelSearchRequest(); AlitripBtripSupplychainHotelSearchRequest.OpenApiSearchRq obj1 = new AlitripBtripSupplychainHotelSearchRequest.OpenApiSearchRq(); obj1.setAllApply(true); obj1.setApplyId(12345L); obj1.setCorpId("corp1"); obj1.setDepartId("dept1"); obj1.setEndTime(StringUtils.parseDateTime("2017-05-01 00:00:00")); obj1.setPage(1L); obj1.setPageSize(10L); obj1.setStartTime(StringUtils.parseDateTime("2017-05-01 00:00:00")); obj1.setThirdpartApplyId("123"); obj1.setUpdateEndTime(StringUtils.parseDateTime("2017-05-01 00:00:00")); obj1.setUpdateStartTime(StringUtils.parseDateTime("2017-05-01 00:00:00")); obj1.setUserId("user1"); obj1.setVersion(2L); req.setRq(obj1); AlitripBtripSupplychainHotelSearchResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody());
<alitrip_btrip_supplychain_hotel_search_response> <result> <module_list> <open_api_hotel_order_rs> <id>12345</id> <gmt_create>2017-05-01 00:00:00</gmt_create> <gmt_modified>2017-05-01 00:00:00</gmt_modified> <corp_id>corp1</corp_id> <corp_name>阿里巴巴</corp_name> <user_id>user1</user_id> <user_name>张三</user_name> <depart_id>dept1</depart_id> <depart_name>淘宝</depart_name> <apply_id>123</apply_id> <contact_name>李四</contact_name> <city>北京</city> <hotel_name>未来酒店</hotel_name> <check_in>2017-05-01 00:00:00</check_in> <check_out>2017-05-01 00:00:00</check_out> <room_type>标间</room_type> <room_num>1</room_num> <night>4</night> <price_info_list> <open_price_info> <price>100.0</price> <type>1</type> <category>酒店费用</category> <pay_type>1</pay_type> <gmt_create>2017-05-01 00:00:00</gmt_create> <passenger_name>张三,李四</passenger_name> <trade_id>23232323001</trade_id> <category_type>1</category_type> <category_code>1</category_code> </open_price_info> </price_info_list> <cost_center> <id>123</id> <corp_id>corp1</corp_id> <number>abc</number> <name>测试成本中心</name> </cost_center> <guest>张三,李四</guest> <order_type_desc>信用住</order_type_desc> <order_status_desc>预订成功</order_status_desc> <order_type>1</order_type> <order_status>1</order_status> <invoice> <id>123</id> <title>阿里巴巴</title> <invoice_type>1</invoice_type> </invoice> <thirdpart_itinerary_id>abcdef</thirdpart_itinerary_id> <user_affiliate_list> <open_user_affiliate_do> <user_id>123</user_id> <user_name>张三</user_name> </open_user_affiliate_do> </user_affiliate_list> <thirdpart_apply_id>123</thirdpart_apply_id> <btrip_title>出差</btrip_title> <project_id>1</project_id> <project_title>测试项目</project_title> <project_code>测试code</project_code> <thirdpart_project_id>test1231</thirdpart_project_id> <hotel_support_vat_invoice_type>11</hotel_support_vat_invoice_type> </open_api_hotel_order_rs> </module_list> <result_code>0</result_code> <result_msg>成功</result_msg> <is_success>true</is_success> <page_info> <page>1</page> <page_size>10</page_size> <total_number>100</total_number> </page_info> </result> </alitrip_btrip_supplychain_hotel_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>
错误码 | 错误描述 | 解决方案 |
---|