商品信息查询
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| ship_to_country | String | 可选 | US | Country | |
| product_id | Number | 可选 | 32982857990 | Item ID | |
| target_currency | String | 可选 | USD | Target currency | |
| target_language | String | 可选 | EN | Target language |
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| result | AeItemQueryResultDTO | Product search results | |
|
|||
| rsp_msg | String | System Error | Error message |
| rsp_code | String | 404 | Error code |
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliexpressDsProductGetRequest req = new AliexpressDsProductGetRequest();
req.setShipToCountry("US");
req.setProductId(32982857990L);
req.setTargetCurrency("USD");
req.setTargetLanguage("EN");
AliexpressDsProductGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
<aliexpress_ds_product_get_response>
<result>
<ae_item_base_info_dto>
<product_id>32839190109</product_id>
<category_id>123456</category_id>
<subject>knew odd</subject>
<currency_code>USD</currency_code>
<product_status_type>onSelling</product_status_type>
<ws_display>expire_offline</ws_display>
<ws_offline_date>0</ws_offline_date>
<gmt_create>0</gmt_create>
<gmt_modified>0</gmt_modified>
<owner_member_seq_long>1006680305</owner_member_seq_long>
<evaluation_count>100</evaluation_count>
<avg_evaluation_rating>4.7</avg_evaluation_rating>
<detail><div>This is a product</div></detail>
<mobile_detail>{}</mobile_detail>
</ae_item_base_info_dto>
<ae_item_sku_info_dtos>
<ae_item_sku_info_d_t_o>
<id>200000182:193;200007763:201336100</id>
<sku_stock>true</sku_stock>
<sku_price>200.07</sku_price>
<sku_code>cfas00978</sku_code>
<ipm_sku_stock>1234</ipm_sku_stock>
<currency_code>USD</currency_code>
<ae_sku_property_dtos>
<ae_sku_property_d_t_o>
<sku_property_id>0</sku_property_id>
<sku_property_name>color</sku_property_name>
<sku_property_value>blue</sku_property_value>
<property_value_id>0</property_value_id>
<property_value_definition_name>0</property_value_definition_name>
<sku_image>0</sku_image>
</ae_sku_property_d_t_o>
</ae_sku_property_dtos>
<barcode>320325455</barcode>
<offer_sale_price>3.3</offer_sale_price>
<offer_bulk_sale_price>3.2</offer_bulk_sale_price>
<sku_bulk_order>10</sku_bulk_order>
<sku_available_stock>10</sku_available_stock>
</ae_item_sku_info_d_t_o>
</ae_item_sku_info_dtos>
<ae_multimedia_info_dto>
<ae_video_dtos>
<ae_video_d_t_o>
<ali_member_id>1006680305</ali_member_id>
<media_id>12345678</media_id>
<media_status>approved</media_status>
<media_type>video</media_type>
<poster_url>http://img01.taobaocdn.com/bao/uploaded/TB1rNdGIVXXXXbTXFXXXXXXXXXX.jpg</poster_url>
</ae_video_d_t_o>
</ae_video_dtos>
<image_urls>http://g01.a.alicdn.com/kf/HTB13GKLJXXXXXbYaXXXq6xXFXXXi.jpg;http://g02.a.alicdn.com/kf/HTB1DkaWJXXXXXb6XFXXq6xXFXXXp.jpg;http://g02.a.alicdn.com/kf/HTB1pMCQJXXXXXcvXVXXq6xXFXXXm.jpg;http://g03.a.alicdn.com/kf/HTB1QhORJXXXXXbiXVXXq6xXFXXXx.jpg;http://g02.a.alicdn.com/kf/HTB1q1aLJXXXXXcfaXXXq6xXFXXXv.jpg</image_urls>
</ae_multimedia_info_dto>
<package_info_dto>
<package_length>10</package_length>
<package_height>2</package_height>
<package_width>12</package_width>
<gross_weight>40.12</gross_weight>
<base_unit>2</base_unit>
<package_type>true</package_type>
<product_unit>100000015</product_unit>
</package_info_dto>
<logistics_info_dto>
<delivery_time>7</delivery_time>
<ship_to_country>US</ship_to_country>
</logistics_info_dto>
<ae_item_properties>
<ae_item_property>
<attr_name_id>2981</attr_name_id>
<attr_name>型号</attr_name>
<attr_value_id>100234</attr_value_id>
<attr_value>ABCD</attr_value>
<attr_value_start>1</attr_value_start>
<attr_value_end>10</attr_value_end>
<attr_value_unit>piece</attr_value_unit>
</ae_item_property>
</ae_item_properties>
<ae_store_info>
<store_id>12345</store_id>
<store_name>Clothes Store</store_name>
<item_as_described_rating>4.8</item_as_described_rating>
<communication_rating>4.8</communication_rating>
<shipping_speed_rating>4.7</shipping_speed_rating>
</ae_store_info>
<product_id_converter_result>
<main_product_id>32982857990</main_product_id>
<sub_product_id>{"US":2251832796543238}</sub_product_id>
</product_id_converter_result>
</result>
<rsp_msg>System Error</rsp_msg>
<rsp_code>404</rsp_code>
</aliexpress_ds_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>
| 错误码 | 错误描述 | 解决方案 |
|---|