本地生活统一对外的商品查询接口,包括商品基本信息,库存,销量,价格,爆爆团价格
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 | 
|---|---|---|---|---|---|
| item_info_request | ItemInfoRequest | 必须 | 请求体 | ||
| 
 
 
 
 
 
 
 
 
 
 
 | 
| 名称 | 类型 | 示例值 | 描述 | 
|---|---|---|---|
| result | Result | 接口返回model | |
| 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscItemsListRequest req = new AlibabaAlscItemsListRequest();
AlibabaAlscItemsListRequest.ItemInfoRequest obj1 = new AlibabaAlscItemsListRequest.ItemInfoRequest();
obj1.setIncludeSalesVolume(false);
obj1.setBizScene("ITEM_RELATION");
obj1.setCityId("310100");
obj1.setTtId("huawei_store@alipay_android_10.2.10.7020");
obj1.setUserId("1105497998");
List<AlibabaAlscItemsListRequest.ItemInfoRequestDetail> list3 = new ArrayList<AlibabaAlscItemsListRequest.ItemInfoRequestDetail>();
AlibabaAlscItemsListRequest.ItemInfoRequestDetail obj4 = new AlibabaAlscItemsListRequest.ItemInfoRequestDetail();
list3.add(obj4);
obj4.setItemId(2300952215831L);
obj4.setChannel("BAO_BAO_TUAN");
obj1.setItemInfoRequestDetailList(list3);
obj1.setIncludePrice(false);
obj1.setSalesVolumeType("TOTAL_SALES");
obj1.setIncludeAlscItemDetailFields("false");
req.setItemInfoRequest(obj1);
AlibabaAlscItemsListResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
                <alibaba_alsc_items_list_response>
    <result>
        <success>true</success>
        <item_infos>
            <items_info>
                <sell_price_cent>1000</sell_price_cent>
                <original_price_cent>234</original_price_cent>
                <item_type>TICKET_ITEM</item_type>
                <sales_volume>
                    <activity_total_sales>1234</activity_total_sales>
                    <activity_daily_sales>345</activity_daily_sales>
                    <pre_sale_total_sales>45</pre_sale_total_sales>
                    <total_sales>4566</total_sales>
                </sales_volume>
                <inventory_list>
                    <inventory_list>
                        <total_quantity>1000</total_quantity>
                        <daily_sellable_quantity>500</daily_sellable_quantity>
                        <daily_total_quantity>400</daily_total_quantity>
                        <type>DAILY</type>
                        <sellable_quantity>3</sellable_quantity>
                        <channel_code>demo</channel_code>
                    </inventory_list>
                </inventory_list>
                <item_sub_type>TRADE_VOUCHER</item_sub_type>
                <short_title>商品</short_title>
                <title>3份WdTest1579074555246</title>
                <item_client_type>TIME_CARD</item_client_type>
                <price_list>
                    <price_list>
                        <detail_un_available_code>demo</detail_un_available_code>
                        <price_detail>
                            <discount_rate>4.45</discount_rate>
                            <actual_sell_price>1000</actual_sell_price>
                            <discount_fee>100</discount_fee>
                            <buyer_total_limit>30</buyer_total_limit>
                            <reduce_amount>40</reduce_amount>
                            <discount_price>50</discount_price>
                            <sell_price>1000</sell_price>
                            <buyer_daily_limit>45</buyer_daily_limit>
                            <buy_limit>-1</buy_limit>
                            <tail_amount>34</tail_amount>
                            <seller_buy_limit>45</seller_buy_limit>
                            <buyer_detail_remain_limit>45</buyer_detail_remain_limit>
                            <book_amount>56</book_amount>
                            <inventory_code>demo</inventory_code>
                            <seller_total_limit>56</seller_total_limit>
                            <seller_daily_limit>65</seller_daily_limit>
                            <seller_daily_remain_limit>34</seller_daily_remain_limit>
                            <item_detail_remain_limit>45</item_detail_remain_limit>
                            <buyer_detail_daily_remain_limit>23</buyer_detail_daily_remain_limit>
                            <buyer_activity_remain_limit>45</buyer_activity_remain_limit>
                            <buyer_activity_limit>45</buyer_activity_limit>
                        </price_detail>
                        <available>false</available>
                        <channel>demo</channel>
                        <sub_type>demo</sub_type>
                        <type>STANDARD</type>
                        <un_available_code>INVENTORY_NOT_ENOUGH</un_available_code>
                        <un_available_msg>库存不足</un_available_msg>
                        <detail_un_available_msg>demo</detail_un_available_msg>
                    </price_list>
                </price_list>
                <cover>https://img.daily.taobaocdn.net/i3/3846021155/O1CN011KP1ogVjlwEEndx_!!3846021155-0-koubei.jpg</cover>
                <buy_limit>1</buy_limit>
                <gmt_end>1665474556000</gmt_end>
                <item_status>PAUSE</item_status>
                <images>
                    <images>
                        <name>主图</name>
                        <url>https://img.daily.taobaocdn.net/i3/3846021155/O1CN011KP1ogVjlwEEndx_!!3846021155-0-koubei.jpg</url>
                    </images>
                </images>
                <currency_symbol>¥</currency_symbol>
                <gmt_start>1579074556000</gmt_start>
                <alsc_item_detail_fields>
                    <item_content>
                        <item_content_groups>
                            <item_content_groups>
                                <dish_select_mode>demo</dish_select_mode>
                                <title>勿动-自动化单品</title>
                                <content_details>
                                    <content_details>
                                        <sum_price>100.00</sum_price>
                                        <unit_desc>元</unit_desc>
                                        <quantity>1</quantity>
                                        <price>100.00</price>
                                        <name>勿动-自动化单品菜</name>
                                        <spec>demo</spec>
                                    </content_details>
                                </content_details>
                            </item_content_groups>
                        </item_content_groups>
                        <image_texts>
                            <image_texts>
                                <urls>
                                    <string></string>
                                </urls>
                                <title>勿动-自动化单品菜</title>
                                <desc>勿动!!</desc>
                            </image_texts>
                        </image_texts>
                        <memo_list>
                            <string></string>
                        </memo_list>
                    </item_content>
                    <buy_notes>
                        <park_fee_per_hour>5</park_fee_per_hour>
                        <supply_invoice>true</supply_invoice>
                        <reserve_type>MOBILE</reserve_type>
                        <park_fee_upper_bound_per_day>12</park_fee_upper_bound_per_day>
                        <extra_note_list>
                            <extra_note_list>
                                <title>demo</title>
                                <remarks>
                                    <string></string>
                                </remarks>
                            </extra_note_list>
                        </extra_note_list>
                        <invoice_types>
                            <string></string>
                        </invoice_types>
                        <free_wifi>true</free_wifi>
                        <free_park>true</free_park>
                        <free_park_hours>2</free_park_hours>
                        <need_reserve>true</need_reserve>
                        <reserve_note></reserve_note>
                        <limit_user_num>false</limit_user_num>
                        <user_num_limited>5</user_num_limited>
                    </buy_notes>
                    <ticket>
                        <ticket_period>
                            <validity_period>14</validity_period>
                            <validity_period_type>RELATIVE</validity_period_type>
                            <range_from>1579074556000</range_from>
                            <range_to>1579074557000</range_to>
                        </ticket_period>
                        <ticket_time_rules>
                            <ticket_time_rule_do>
                                <rule_apply_mode>EX</rule_apply_mode>
                                <hour_min_rule>10:00~12:00^14:00~16:00</hour_min_rule>
                                <week_rule>1~7</week_rule>
                                <date_rule>2019-01-01~2019-01-10^2019-01-11~2019-01-21</date_rule>
                            </ticket_time_rule_do>
                        </ticket_time_rules>
                    </ticket>
                </alsc_item_detail_fields>
                <category_id>147496404</category_id>
                <use_times>3</use_times>
            </items_info>
        </item_infos>
        <error_code>QUERY_BATCH_ITEM_FAILED</error_code>
        <error_msg>不合法</error_msg>
    </result>
</alibaba_alsc_items_list_response>
                    <error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>
                    | 错误码 | 错误描述 | 解决方案 | 
|---|