查询商品
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| param | SkuQueryDo | 必须 | 入参 | ||
|
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| result | ApiResults | 223 | 调用结果 |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaWdkSkuQueryRequest req = new AlibabaWdkSkuQueryRequest();
AlibabaWdkSkuQueryRequest.SkuQueryDo obj1 = new AlibabaWdkSkuQueryRequest.SkuQueryDo();
obj1.setSkuCodes("1");
obj1.setOuCode("1062");
req.setParam(obj1);
AlibabaWdkSkuQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
<alibaba_wdk_sku_query_response>
<result>
<err_code>NON_EMPTY_PARAMETERS</err_code>
<err_msg>参数不能为空</err_msg>
<models>
<api_result>
<model>
<shelf_life>12</shelf_life>
<barcodes>sdfds</barcodes>
<inventory_unit>kg</inventory_unit>
<weight>10</weight>
<width>23</width>
<sku_type>1</sku_type>
<suggested_price>1000</suggested_price>
<ou_code>4746</ou_code>
<standard_no>W234</standard_no>
<manufacturer_name>天天红</manufacturer_name>
<brand_name>洛川红富士</brand_name>
<detail_pic_urls>https://img.alicdn.com/a.png,https://img.alicdn.com/b.png,https://img.alicdn.com/c.png</detail_pic_urls>
<weight_flag>1</weight_flag>
<height>152</height>
<sku_name>小龙虾 30-40g/只 称重</sku_name>
<length>122</length>
<sku_code>34242</sku_code>
<category_code>234234</category_code>
<producer_place>中国|辽宁省|大连市</producer_place>
<main_pic_urls>https://img.alicdn.com/a.png,https://img.alicdn.com/b.png,https://img.alicdn.com/c.png</main_pic_urls>
<storage_type>1</storage_type>
<tax_rate>15</tax_rate>
<manufacturer_address>陕西西安</manufacturer_address>
<import_flag>0</import_flag>
<net_content>250ml*18盒/箱</net_content>
<accounting_category>22</accounting_category>
<sale_price>10</sale_price>
<sale_unit>个</sale_unit>
<input_invoice_content>17</input_invoice_content>
<invoice_content>invoiceContent</invoice_content>
<short_title>美味可口</short_title>
<txt_desc>传统非转基因压榨工艺</txt_desc>
<life_status>A</life_status>
<sale_spec>500g*5/袋</sale_spec>
<org_no>233344</org_no>
<hm_category_code>11221</hm_category_code>
<rich_text>绿色xx商品</rich_text>
<alias_name>商品别名</alias_name>
<producer_name>张三</producer_name>
<factory_no>12245</factory_no>
<component>糖</component>
<storage>常温</storage>
<grade>特级</grade>
<eat_way>开袋即食</eat_way>
<origin_code>11122</origin_code>
<input_tax_rate>商品进项税率</input_tax_rate>
<input_tax_rate_code>食品</input_tax_rate_code>
<finance_type_code>财务核算分类编码</finance_type_code>
<tax_rate_code>食品</tax_rate_code>
<forest_cate_id>11232</forest_cate_id>
<purchase_spec>12/箱</purchase_spec>
<purchase_unit>箱</purchase_unit>
<purchase_unit_code>111222</purchase_unit_code>
<inventory_unit_code>111222</inventory_unit_code>
<acceptance_criteria>称重</acceptance_criteria>
<overload_rate>1</overload_rate>
<forbid_receive_days>0</forbid_receive_days>
<forbid_sales_days>0</forbid_sales_days>
<delivery_unit>条</delivery_unit>
<delivery_unit_code>1111222</delivery_unit_code>
<delivery_spec>12/个</delivery_spec>
<processing_unit>条</processing_unit>
<processing_unit_code>111222</processing_unit_code>
<cost_unit>条</cost_unit>
<cost_unit_code>111222</cost_unit_code>
<procs_exchange_rate>1</procs_exchange_rate>
<cost_exchange_rate>1</cost_exchange_rate>
<mass_output_rate>1</mass_output_rate>
<cost_tax_price>100</cost_tax_price>
<cost_no_price>90</cost_no_price>
<sku_label_type>NOMAL</sku_label_type>
<sku_label_type_code>111222</sku_label_type_code>
<warn_days>100</warn_days>
<allow_app_sale>0</allow_app_sale>
<item_sale_type>1</item_sale_type>
<sub_title>新鲜</sub_title>
<title1>新鲜</title1>
<sub_title1>新鲜</sub_title1>
<title2>便宜</title2>
<sub_title2>便宜</sub_title2>
<sale_unit_code>个</sale_unit_code>
<label_style_type>无价签</label_style_type>
<label_price_type_code>111222</label_price_type_code>
<fixed_flag>0</fixed_flag>
<avg_weight>500</avg_weight>
<pre_minus_weight>10</pre_minus_weight>
<step_quantity>2</step_quantity>
<purchase_quantity>1</purchase_quantity>
<store_id>111222</store_id>
<store_name>111222</store_name>
<channel_codes>11,222,333</channel_codes>
<supplier_no>111222</supplier_no>
<supplier_name>张三</supplier_name>
<logistics>111222</logistics>
<logistics_name>中央xxx</logistics_name>
<delivery_warehouse>111222</delivery_warehouse>
<delivery_warehouse_name>中央xx仓储</delivery_warehouse_name>
<return_warehouse>111222</return_warehouse>
<return_warehouse_name>中央xx仓储</return_warehouse_name>
<delivery_way>111222</delivery_way>
<delivery_way_name>冷链</delivery_way_name>
<processing_time>5</processing_time>
<service_items>111,222,333</service_items>
<default_sku_price>10</default_sku_price>
<member_price>9</member_price>
<online_sale_flag>1</online_sale_flag>
<sale_flag_for_query>1</sale_flag_for_query>
<sku_suppliers>
<sku_supplier_do>
<supplier_no>111222</supplier_no>
<supplier_name>张三</supplier_name>
<return_flag>1</return_flag>
<minimum>100</minimum>
<main_flag>1</main_flag>
<purchase_price>9.9</purchase_price>
</sku_supplier_do>
</sku_suppliers>
<storage_code>111222</storage_code>
<item_type_new>1</item_type_new>
<merchant_cat_code>10086</merchant_cat_code>
<sku_pic_urls>https://img.alicdn.com/a.png,https://img.alicdn.com/b.png,https://img.alicdn.com/c.png</sku_pic_urls>
<back_cat_code>10086</back_cat_code>
<period>15</period>
<process_props>
<process_prop>
<service_name>宰杀</service_name>
</process_prop>
</process_props>
<service_props>
<process_prop>
<prop_name>温度</prop_name>
<prop_values>
<service_prop_value>
<name>常温</name>
</service_prop_value>
</prop_values>
</process_prop>
</service_props>
<mutex_props>
<service_prop>
<prop_a>
<name>温度</name>
<value>常温</value>
</prop_a>
<prop_b>
<name>加冰</name>
<value>少冰</value>
</prop_b>
</service_prop>
</mutex_props>
<voucher_ext>
<voucher_type>2</voucher_type>
<start_time>2024-01-28 00:00:00</start_time>
<end_time>2024-01-29 00:00:00</end_time>
<association_skus>
<string>[]</string>
</association_skus>
</voucher_ext>
</model>
<err_code>NON_EMPTY_PARAMETERS</err_code>
<err_msg>参数不能为空</err_msg>
<success>true</success>
</api_result>
</models>
<success>true</success>
</result>
</alibaba_wdk_sku_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>
| 错误码 | 错误描述 | 解决方案 |
|---|