b2c.goods.search_properties_goods 根据筛选条件查询商品

API应用级输入参数

参数 类型 是否必须 说明
page_no int N 分页大小 默认为10
page_size int N 商品id
cat_id int Y/N 分类ID
brand_id int Y/N 品牌ID [21,22,23]
search_keywords string Y/N 关键字搜索
specs json N 根据商品规格查询 {“规格ID”:[规格值,规格值]}
props json N 根据商品属性查询 {“属性ID”:[属性值,规格值]}
orderBy string N 排序方式默认为按时间排序

cat_id,brand_id,search_keywords筛选条件必填一个

API应用级返回结果

成功后,返回结果

Array
(
    [rsp] => succ
    [data] => Array
        (
            [goods] => Array
                (
                    [0] => Array
                        (
                            [marketable] => true
                            [goods_id] => 21
                            [bn] => G4C85B42035681
                            [name] => 漆皮甜美蝴蝶结小皮靴
                            [brief] => 漆皮甜美小皮靴,可爱蝴蝶结
                            [image_default_id] => 0f3f928f5efc8be86a1c50f1b5f2cb8e
                            [comments_count] => 0
                            [default_product_id] => 241
                            [price] => 128.000
                            [mktprice] => 298.000
                            [store] => 98
                            [image] => Array
                                (
                                    [image_id] => 0f3f928f5efc8be86a1c50f1b5f2cb8e
                                    [s_url] => http://pic.shopex.cn/pictures/eimages/c1e730d4667b4f5f4be210c07e928032a3a1b857a8.png
                                    [m_url] => http://pic.shopex.cn/pictures/eimages/5dd2b6e1471a71351b6aaeb09949c17f9e9a6dfbc8.png
                                    [l_url] => http://pic.shopex.cn/pictures/eimages/f2ba403839c3b3e6c03f8c89f52af291aaced41be0.png
                                )

                        )

                )

            [count] => 1
        )

    [res] => cc171e4399c8838d98934abec409d960
)

失败返回

Array
(
    [rsp] => succ
    [data] => Array
        (
            [goods] => Array
                (
                )

            [count] => 0
        )

    [res] => e9c575145e969d67e0553f03ac79f834
)


沪ICP备05002918号

© 2003-2017 ShopEx,Inc.All rights reserved.