店铺相关
使用手册
广告管理
模板设置
数据库管理
插件管理
分销管理
积分管理
小程序直播
第三方账号注册流程
网站模块
商品模块
订单管理模块
供应商模块
数据模块
微商城模块
小程序&APP模块
常见问题
支付对接
API接口
购物车相关接口
开发手册
支付退款接口
视频教程
FB视频教程
首页 > B2B2C商城 > API接口 > 店铺相关 > 正文
获取店铺商品列表
URL地址 | http://www.tpshop.com/index.php?m=api&c=Store&a=storeGoods |
请求方式 | get |
参数列表
参数 | 是否必须 | 说明 |
store_id | 必选 | 店铺id |
p | 必选 | 第几页 |
| sort | 可选 | 排序字段,默认综合排序, sales:销量,price:价格 |
| mode | 可选 | 升序:asc, desc:降序 |
| cat_id | 可选 | 店铺分类ID |
| sta | 可选 | is_new:新品上市,is_hot:热销 |
示例
{
"status":1,
"msg":"获取成功",
"result":{
"goods_list":{
"goods_id":26,
"cat_id3":16,
"goods_sn":"v0001",
"goods_name":"联想笔记本ThinkPad x1",
"shop_price":"5000.00",
"comment_count":0
},
"sort":"comprehensive",
"sort_asc":"desc",
"orderby_default":"/index.php/api/store/storeGoods/store_id/1.html",
"orderby_sales_sum":"/index.php/api/store/storeGoods/store_id/1/sort/sales/mode/desc.html",
"orderby_price":"/index.php/api/store/storeGoods/store_id/1/sort/price/mode/desc.html",
"orderby_comprehensive":"/index.php/api/store/storeGoods/store_id/1/mode/asc.html"
}
} 