查询商品详情信息(商品详情信息)
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| param | EgoItemDetailQueryParam | 可选 | 商品详情查询参数 | ||
|
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| result | Result | result | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
PcItemDetailQueryRequest req = new PcItemDetailQueryRequest();
PcItemDetailQueryRequest.EgoItemDetailQueryParam obj1 = new PcItemDetailQueryRequest.EgoItemDetailQueryParam();
obj1.setEgoItemId(800000000001L);
obj1.setEgoSkuId(4000000000008L);
PcItemDetailQueryRequest.QueryOptionsParam obj2 = new PcItemDetailQueryRequest.QueryOptionsParam();
obj2.setIncludeOfflineItems(true);
obj1.setQueryOptionsParam(obj2);
obj1.setClientId("10000001");
obj1.setServiceId(20000001L);
obj1.setServiceNick("测试服务商1");
req.setParam(obj1);
PcItemDetailQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
<pc_item_detail_query_response>
<result>
<success>true</success>
<error_code>200</error_code>
<error_msg>参数错误</error_msg>
<ego_item_detail_d_t_o>
<skus>
<ego_sku_dto>
<ego_item_id>800000000001</ego_item_id>
<ego_sku_id>5000000000001</ego_sku_id>
<title>红色</title>
<status>ONLINE</status>
<deleted>true</deleted>
<fuzzy_quantity>IN_STOCK</fuzzy_quantity>
<quantity>200</quantity>
<platform_price>100</platform_price>
<market_price>200</market_price>
<pic_url>https://gw.alicdn.com/bao/uploaded/i4/xxx/xxx.webp</pic_url>
<barcode>6900000000001</barcode>
<sku_specs>
<sku_spec_dto>
<property_id>10001</property_id>
<property_text>颜色</property_text>
<value_id>10001</value_id>
<value_text>红色</value_text>
<property_sort_order>1</property_sort_order>
<value_sort_order>1</value_sort_order>
</sku_spec_dto>
</sku_specs>
</ego_sku_dto>
</skus>
<category_chain>
<category_dto>
<category_id>10001</category_id>
<parent_id>0</parent_id>
<name>手机</name>
<is_leaf>false</is_leaf>
<level>1</level>
<out_category_id>23456</out_category_id>
<out_category_name>手表</out_category_name>
</category_dto>
</category_chain>
<fuzzy_quantity>IN_STOCK</fuzzy_quantity>
<quantity>200</quantity>
<fuzzy_sold_quantity>100+</fuzzy_sold_quantity>
<item_specs>
<item_spec_dto>
<property_id>10001</property_id>
<property_text>颜色</property_text>
<values>
<item_spec_value_dto>
<value_id>10001</value_id>
<value_text>红色</value_text>
<image_url>https://img.alicdn.com/imgextra/i4/2209044323925/O1CN01fkZsUY1erhdtf15Kg_!!4611686018427387477-0-item_pic.jpg</image_url>
</item_spec_value_dto>
</values>
</item_spec_dto>
</item_specs>
<properties>
<item_property_dto>
<text>颜色</text>
<values>
<string>["白色"]</string>
</values>
</item_property_dto>
</properties>
<extend_properties>
<item_extend_property>
<key>white_bg_image</key>
<value>https://gw.alicdn.com/bao/uploaded/i4/xxx/xxx.webp</value>
</item_extend_property>
</extend_properties>
<platform_price>100</platform_price>
<market_price>200</market_price>
<ego_item_id>800000000001</ego_item_id>
<title>测试商品请不要拍</title>
<short_title>测试商品</short_title>
<status>ONLINE</status>
<deleted>true</deleted>
<pic_url>https://gw.alicdn.com/bao/uploaded/i4/xxx/xxx.webp</pic_url>
<province>浙江省</province>
<city>杭州市</city>
<images>
<string>["https://gw.alicdn.com/bao/uploaded/i4/xxx/xxx.webp"]</string>
</images>
<leaf_category_id>12345</leaf_category_id>
<leaf_category_name>手表</leaf_category_name>
<tax_code>1111111111111111111</tax_code>
<tax_rate>13</tax_rate>
<browser_desc_path>https://img.alicdn.com/imgextra/i3/xxx/xxx.jpg</browser_desc_path>
<brand_name>Huawei/华为</brand_name>
<brand_id>1234</brand_id>
<brand_pic_url>https://img.alicdn.com/imgextra/i3/xxx/xxx.jpg</brand_pic_url>
<ship_time>24</ship_time>
<free_postage>true</free_postage>
<out_leaf_category_id>23456</out_leaf_category_id>
<out_leaf_category_name>手表</out_leaf_category_name>
</ego_item_detail_d_t_o>
</result>
</pc_item_detail_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>
| 错误码 | 错误描述 | 解决方案 |
|---|