感谢您的反馈!
旅行度假新商品查询接口(单个商品查询) 第三版
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| item_id | Number | 可选 | 1234 | 商品id。itemId和outProductId至少填写一个 | |
| out_product_id | String | 可选 | 1111 | 商品 外部商家编码。itemId和outProductId至少填写一个 |
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| travel_item | PontusTravelFullTravelItem | 商品查询结果 | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripTravelItemSingleQueryRequest req = new AlitripTravelItemSingleQueryRequest();
req.setItemId(1234L);
req.setOutProductId("1111");
AlitripTravelItemSingleQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
<alitrip_travel_item_single_query_response>
<travel_item>
<base_info>
<accom_nights>2</accom_nights>
<category_id>123431</category_id>
<city>北京</city>
<desc>商品描述</desc>
<from_locations>北京</from_locations>
<item_type>1</item_type>
<out_id>2312313</out_id>
<outer_title>商家备注</outer_title>
<pic_urls>
<string>["xxxx"</string>
<string>"xxxxx"]</string>
</pic_urls>
<prov>北京</prov>
<sub_titles>
<string>["商品亮点1"</string>
<string>"商品亮点2"]</string>
</sub_titles>
<title>商品标题</title>
<to_locations>北京</to_locations>
<trip_max_days>2</trip_max_days>
<trip_min_days>1</trip_min_days>
<wap_desc>手机端商品描述</wap_desc>
<item_tag_content>旅游美食</item_tag_content>
</base_info>
<booking_rules>
<pontus_travel_booking_rule_info>
<rule_desc>描述</rule_desc>
<rule_type>Fee_Excluded</rule_type>
<rule_list>
<string>描述1</string>
<string>描述2</string>
</rule_list>
</pontus_travel_booking_rule_info>
</booking_rules>
<created>2015-09-23 20:59:41</created>
<freedom_item_ext>
<back_traffic_info>
<traffic_type>1</traffic_type>
<traffics>
<pontus_travel_item_traffic>
<arrival_time>15:05</arrival_time>
<departure>杭州</departure>
<departure_time>13:00</departure_time>
<destination>北京</destination>
<plane_type>中型机</plane_type>
<traffic_no>CA1710</traffic_no>
<vendor>中国国航</vendor>
</pontus_travel_item_traffic>
</traffics>
</back_traffic_info>
<go_traffic_info>
<traffic_type>1</traffic_type>
<traffics>
<pontus_travel_item_traffic>
<arrival_time>15:05</arrival_time>
<departure>杭州</departure>
<departure_time>13:00</departure_time>
<destination>北京</destination>
<plane_type>中型机</plane_type>
<traffic_no>CA1710</traffic_no>
<vendor>中国国航</vendor>
</pontus_travel_item_traffic>
</traffics>
</go_traffic_info>
<hotel_infos>
<hotel_list>
<pontus_travel_item_hotel>
<city>杭州</city>
<cn_name>×××大酒店</cn_name>
<hotel_level>五星级</hotel_level>
<house_type>标间</house_type>
<poi>30.111,30.111</poi>
<poi_resource>AMAP</poi_resource>
</pontus_travel_item_hotel>
</hotel_list>
<hotel_days>2</hotel_days>
<hotel_desc>demo</hotel_desc>
</hotel_infos>
<other_infos>
<pontus_travel_item_resource_info>
<desc>描述</desc>
<type>1</type>
</pontus_travel_item_resource_info>
</other_infos>
<scenic_infos>
<scenic_list>
<pontus_travel_item_scenic>
<city>北京</city>
<cn_name>故宫博物院</cn_name>
<poi>30.111,30.111</poi>
<poi_resource>AMAP</poi_resource>
<ticket_type>大门票</ticket_type>
</pontus_travel_item_scenic>
</scenic_list>
<scenic_desc>描述</scenic_desc>
<ticket_package_name>门票套餐</ticket_package_name>
</scenic_infos>
<traffic_desc>描述</traffic_desc>
</freedom_item_ext>
<group_item_ext>
<back_traffic_info>
<traffic_type>1</traffic_type>
<traffics>
<pontus_travel_item_traffic>
<arrival_time>15:05</arrival_time>
<departure>杭州</departure>
<departure_time>13:00</departure_time>
<destination>北京</destination>
<plane_type>中型机</plane_type>
<traffic_no>CA1710</traffic_no>
<vendor>中国国航</vendor>
</pontus_travel_item_traffic>
</traffics>
</back_traffic_info>
<electronic>true</electronic>
<gather_places>
<pontus_travel_gather_place_info>
<name>西湖</name>
<poi>120.111222,30.111222</poi>
<poi_resource>AMAP</poi_resource>
</pontus_travel_gather_place_info>
</gather_places>
<go_traffic_info>
<traffic_type>1</traffic_type>
<traffics>
<pontus_travel_item_traffic>
<arrival_time>15:05</arrival_time>
<departure>杭州</departure>
<departure_time>13:00</departure_time>
<destination>北京</destination>
<plane_type>中型机</plane_type>
<traffic_no>CA1710</traffic_no>
<vendor>中国国航</vendor>
</pontus_travel_item_traffic>
</traffics>
</go_traffic_info>
<route_type>1</route_type>
</group_item_ext>
<item_id>123</item_id>
<item_status>0</item_status>
<item_type>1</item_type>
<itineraries>
<pontus_travel_item_itinerary_info>
<content><txt>文本描述1</txt><img>https://img.daily.taobaocdn.net/imgextra/i4/3651880377/TB2p4JaXXXXXXabXXXXXXXXXXXX_!!3651880377.jpg</img><txt>文本描述2</txt><img>https://img.daily.taobaocdn.net/imgextra/i4/3651880377/TB2p4JaXXXXXXabXXXXXXXXXXXX_!!3651880377.jpg</img><txt>文本描述3</txt></content>
<itinerary_no>1</itinerary_no>
<title>行程标题</title>
</pontus_travel_item_itinerary_info>
</itineraries>
<modified>2015-09-23 20:59:41</modified>
<refund_info>
<refund_regulations>
<string>["30_30_0"</string>
<string>"30_15_5"</string>
<string>"14_7_15"</string>
<string>"6_4_70"</string>
<string>"3_1_85"</string>
<string>"1_1_90"]</string>
</refund_regulations>
<refund_type>0</refund_type>
</refund_info>
<sale_info>
<bc_start_date>2015-09-12 19:47:45</bc_start_date>
<duration>4</duration>
<end_combo_date>2015-09-18 19:47:45</end_combo_date>
<has_discount>false</has_discount>
<has_invoice>false</has_invoice>
<has_showcase>false</has_showcase>
<merchant>0:淘宝</merchant>
<network_id>1234</network_id>
<sale_type>0</sale_type>
<second_kill>wap_only</second_kill>
<seller_cids>
<string>["12344"</string>
<string>"24332"]</string>
</seller_cids>
<start_combo_date>2015-09-12 19:47:45</start_combo_date>
<sub_stock>1</sub_stock>
<support_onsale_auto_refund>false</support_onsale_auto_refund>
<item_ele_cert_info>
<expiry_date_type>1</expiry_date_type>
<expiry_date_start>2015-01-01 00:00:00</expiry_date_start>
<expiry_date_end>2015-01-01 00:00:00</expiry_date_end>
<expiry_days>6</expiry_days>
<package_id>12234</package_id>
<auto_refund_rate>100</auto_refund_rate>
<expired_refund_rate>100</expired_refund_rate>
</item_ele_cert_info>
<confirm_type>1</confirm_type>
<confirm_time>2</confirm_time>
</sale_info>
<seller_id>12345</seller_id>
<seller_nick>nick</seller_nick>
<sku_infos>
<pontus_travel_item_sku_info>
<outer_sku_id>1111</outer_sku_id>
<package_desc>套餐描述</package_desc>
<package_name>套餐名称</package_name>
<prices>
<pontus_travel_prices>
<price_type>1</price_type>
<stock>123</stock>
<price>1234</price>
<outer_price_id>123455</outer_price_id>
<date>2015-09-19 09:42:24</date>
</pontus_travel_prices>
</prices>
<products>
<pontus_travel_product>
<element_id>12345</element_id>
<num>1</num>
</pontus_travel_product>
</products>
<combos>1</combos>
</pontus_travel_item_sku_info>
</sku_infos>
<tcwl_item_ext>
<tcwl_theme>1</tcwl_theme>
<tcwl_theme_play>主题玩法</tcwl_theme_play>
<organization>组织者名称</organization>
<org_introduce>组织者介绍</org_introduce>
<org_tel>12123123</org_tel>
<org_wangwang>23131221</org_wangwang>
<activity_strength>1</activity_strength>
<activity_place>活动地点</activity_place>
<activity_time>活动时间</activity_time>
<gather_places>
<gather_place_info>
<name>地点名称</name>
<poi>120.1111,30.111</poi>
<poi_resource>AMAP</poi_resource>
</gather_place_info>
</gather_places>
</tcwl_item_ext>
<cruise_item_ext>
<ship_up>上船地点</ship_up>
<ship_down>下船地点</ship_down>
<cruise_line>邮轮线路</cruise_line>
<cruise_company>邮轮公司</cruise_company>
<ship_name>邮轮船名</ship_name>
<ship_fee_include>邮轮费用包含</ship_fee_include>
</cruise_item_ext>
<features>111</features>
<ref_trip>1111</ref_trip>
<high_lights>
<high_lights>
<title>亮点标题</title>
<desc>亮点描述</desc>
<pic_urls>
<string>图片列表</string>
</pic_urls>
</high_lights>
</high_lights>
</travel_item>
</alitrip_travel_item_single_query_response>
<error_response>
<code>50</code>
<msg>Remote service error</msg>
<sub_code>isv.invalid-parameter</sub_code>
<sub_msg>非法参数</sub_msg>
</error_response>
| 错误码 | 错误描述 | 解决方案 |
|---|---|---|
| isp.remote-service-error | 系统错误 | 联系服务提供方 |
| isv.invalid-parameter:NOTNULL | 参数不能为空 | 调用方排查 |
| isv.biz-error:ITEM_NOT_FOUNT | 找不到该商品,商品可能已被删除 | 调用方排查 |
| isv.rights-invalid:VIEW_NOT_PERMIT | 该商品不属于您,您没有权限查询此宝贝 | 该商品不属于您,您没有权限查询此宝贝 |
| isv.invalid-parameter:ERROR | 参数错误 | 请根据错误提示修改 |