获取商品详情
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| language | String | 必须 | ENGLISH | 商品语种,目前只支持ENGLISH | |
| product_id | String | 必须 | 6edvniewvnewovn | 混淆后的商品ID |
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| product | AlibabaProductResponse | 单个商品详情 | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIcbuProductGetRequest req = new AlibabaIcbuProductGetRequest();
req.setLanguage("ENGLISH");
req.setProductId("6edvniewvnewovn");
AlibabaIcbuProductGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
<alibaba_icbu_product_get_response>
<product>
<attributes>
<product_attribute>
<attribute_id>123</attribute_id>
<attribute_name>color</attribute_name>
<sku_custom_image_url>http://g03.s.alicdn.com/kf/HTB1PYE9IpXXXXbsXVXXq6xXFXXXg/200042360/HTB1PYE9IpXXXXbsXVXXq6xXFXXXg.jpg</sku_custom_image_url>
<sku_custom_value_name>light grey</sku_custom_value_name>
<value_id>456</value_id>
<value_name>grey</value_name>
</product_attribute>
</attributes>
<category_id>123</category_id>
<description>Enjoy your sports and music at the same time,very convenient</description>
<group_id>123</group_id>
<keywords>
<string>["mp3"</string>
<string>"player"]</string>
</keywords>
<main_image>
<images>
<string>["http://g03.s.alicdn.com/kf/HTB1PYE9IpXXXXbsXVXXq6xXFXXXg/200042360/HTB1PYE9IpXXXXbsXVXXq6xXFXXXg.jpg"</string>
<string>"http://g01.s.alicdn.com/kf/HTB1tNhsIFXXXXb2XXXXq6xXFXXX9/200042360/HTB1tNhsIFXXXXb2XXXXq6xXFXXX9.jpg"]</string>
</images>
<watermark>true</watermark>
<watermark_frame>N</watermark_frame>
<watermark_position>center</watermark_position>
</main_image>
<product_sku>
<sku_attributes>
<sku_attribute>
<attribute_id>12</attribute_id>
<attribute_name>color</attribute_name>
<values>
<sku_attribute_value>
<custom_value_name>light grey</custom_value_name>
<image_url>http://g03.s.alicdn.com/kf/HTB1PYE9IpXXXXbsXVXXq6xXFXXXg/200042360/HTB1PYE9IpXXXXbsXVXXq6xXFXXXg.jpg</image_url>
<mark_info>#888888</mark_info>
<system_value_name>grey</system_value_name>
<value_id>12345</value_id>
</sku_attribute_value>
</values>
</sku_attribute>
</sku_attributes>
<skus>
<sku_definition>
<attr2_value>{11:12,22:21}</attr2_value>
<bulk_discount_prices>
<bulk_discount_price>
<price>12.34</price>
<start_quantity>100</start_quantity>
</bulk_discount_price>
</bulk_discount_prices>
<sku_code>12333223</sku_code>
<sku_id>1111111</sku_id>
<inventory_dto_list>
<product_inventory_dto>
<store_code>cn_inventory</store_code>
<inventory>22222</inventory>
</product_inventory_dto>
</inventory_dto_list>
</sku_definition>
</skus>
</product_sku>
<sourcing_trade>
<delivery_port>Shanghai</delivery_port>
<delivery_time>within 3 days</delivery_time>
<fob_currency>USD</fob_currency>
<fob_max_price>56.78</fob_max_price>
<fob_min_price>12.34</fob_min_price>
<fob_unit_type>Piece</fob_unit_type>
<min_order_quantity>3.11</min_order_quantity>
<min_order_unit_type>Piece</min_order_unit_type>
<payment_methods>
<string>["T/T"</string>
<string>"L/C"]</string>
</payment_methods>
<supply_period_type>Week</supply_period_type>
<supply_quantity>10000.66</supply_quantity>
<supply_unit_type>Piece</supply_unit_type>
<packaging_desc>60 pcs per carton</packaging_desc>
<deliver_periods>
<deliver_period>
<quantity>50</quantity>
<process_period>10</process_period>
</deliver_period>
</deliver_periods>
</sourcing_trade>
<status>approved</status>
<subject>mp3 player</subject>
<wholesale_trade>
<batch_number>12</batch_number>
<handling_time>3</handling_time>
<min_order_quantity>100</min_order_quantity>
<package_size>2X3X4</package_size>
<price>12.34</price>
<sale_type>batch</sale_type>
<shipping_line_template_id>123</shipping_line_template_id>
<unit_type>Piece</unit_type>
<volume>1234</volume>
<weight>123.456</weight>
<deliver_periods>
<deliver_period>
<quantity>50</quantity>
<process_period>10</process_period>
</deliver_period>
</deliver_periods>
</wholesale_trade>
<language>ENGLISH</language>
<product_type>sourcing</product_type>
<owner_member>4112155</owner_member>
<display>Y</display>
<gmt_modified>2000-01-01 00:00:00</gmt_modified>
<owner_member_display_name>Barack Obama</owner_member_display_name>
<custom_info>
<custom_contents>
<custom_content>
<custom_type></custom_type>
<min_order_quantity></min_order_quantity>
</custom_content>
</custom_contents>
</custom_info>
<is_smart_edit>true表示智能编辑</is_smart_edit>
<price_type>价格类型</price_type>
<pc_detail_url>pc详情的url</pc_detail_url>
<rts>true</rts>
<product_id>asdfasdf</product_id>
</product>
</alibaba_icbu_product_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>
| 错误码 | 错误描述 | 解决方案 |
|---|---|---|
| isp.product.not.exist | 商品不存在 | 请检查商品ID |