简要描述:
请求域名:
请求URL:
GET/&route=plugin.erp-api.api.goods.list.index
参数:
参数名 |
是否必须 |
类型 |
说明 |
start_time |
是 |
int |
起始时间戳 |
end_time |
否 |
int |
结束时间戳 |
time_field |
否 |
string |
时间范围类型 created_at:创建时间,updated_at:更新时间 |
page_size |
否 |
int |
分页 - 每页数量; 默认是 10 |
page |
否 |
int |
分页 - 页码 |
返回示例:
正确时返回:
{
"result":1,
"msg":"成功",
"data":{
"total":293,
"per_page":10,
"current_page":1,
"last_page":30,
"from":1,
"to":10,
"data":[
{
"id":747,
"uniacid":1,
"title":"1212报名,超声刀、自体脂肪填充二选一加观摩会门票",
"goods_sn":"",
"price":"300.00",
"status":1,
"weight":"0.00",
"real_sales":84,
"created_at":"2018-12-04 15:43:55",
"updated_at":"2019-05-10 09:43:31",
"stock":916,
"cost_price":"50.00",
"type":2,
"sku":"个",
"thumb":"https://yataimeigou.oss-cn-beijing.aliyuncs.com/images/1/2018/12/UDd1DrT16BP1pbR7fA717B8PHtrrHX.jpg",
"status_name":"上架",
"options":[
{
"id":7,
"goods_id":747,
"title":"白色",
"product_price":"100.00",
"thumb":"",
"weight":"0.00",
"stock":100,
"skuId":"",
"product_sn":"",
"created_at":null,
"updated_at":null,
"data":null
}
]
},
{
"id":746,
"uniacid":1,
"title":"121.2元报名,多重好礼加观摩会门票",
"goods_sn":"",
"price":"121.20",
"status":1,
"weight":"0.00",
"real_sales":94,
"created_at":"2018-12-04 15:41:24",
"updated_at":"2018-12-13 16:47:13",
"stock":906,
"cost_price":"0.00",
"type":1,
"sku":"个",
"thumb":"https://yataimeigou.oss-cn-beijing.aliyuncs.com/images/1/2018/12/xGI663860GL0yGl4Yt4YqT60AHHkTI.jpg",
"status_name":"上架",
"options":[
]
},
{
"id":745,
"uniacid":1,
"title":"12.12报名,项目6选1加观摩会门票",
"goods_sn":"",
"price":"12.12",
"status":1,
"weight":"0.00",
"real_sales":238,
"created_at":"2018-12-04 15:28:51",
"updated_at":"2018-12-13 17:43:18",
"stock":762,
"cost_price":"0.00",
"type":1,
"sku":"个",
"thumb":"https://yataimeigou.oss-cn-beijing.aliyuncs.com/images/1/2018/12/p3LP73PGpHxQPL93HOQ2n9p4O54ZZK.jpg",
"status_name":"上架",
"options":[
]
},
{
"id":740,
"uniacid":1,
"title":"谢丽",
"goods_sn":"",
"price":"1.00",
"status":1,
"weight":"0.00",
"real_sales":0,
"created_at":"2018-11-26 15:40:41",
"updated_at":"2018-11-26 15:40:41",
"stock":9999999,
"cost_price":"1.00",
"type":2,
"sku":"个",
"thumb":"http://www.yunzong.com/addons/yun_shop/storage/app/avatars/store_applypBWDAqxt4V",
"status_name":"上架",
"options":[
]
},
{
"id":739,
"uniacid":1,
"title":"程成",
"goods_sn":"",
"price":"1.00",
"status":1,
"weight":"0.00",
"real_sales":0,
"created_at":"2018-11-26 15:40:33",
"updated_at":"2018-11-26 15:40:33",
"stock":9999999,
"cost_price":"1.00",
"type":2,
"sku":"个",
"thumb":"http://www.yunzong.com/addons/yun_shop/storage/app/avatars/store_applymRHHTHrBmI",
"status_name":"上架",
"options":[
]
},
{
"id":738,
"uniacid":1,
"title":"新品项目私享发布酒会报名通道",
"goods_sn":"",
"price":"398.00",
"status":0,
"weight":"0.00",
"real_sales":2,
"created_at":"2018-11-14 17:03:37",
"updated_at":"2018-12-04 15:13:47",
"stock":998,
"cost_price":"0.00",
"type":2,
"sku":"次",
"thumb":"https://yataimeigou.oss-cn-beijing.aliyuncs.com/images/1/2018/11/tRGNr66q8zlIqiRq7ZI78Z8Jux388x.jpg",
"status_name":"下架",
"options":[
]
},
{
"id":428,
"uniacid":1,
"title":"980元 逆龄女王推广大使升级(高阶推广大使)",
"goods_sn":"",
"price":"980.00",
"status":1,
"weight":"0.00",
"real_sales":6,
"created_at":"2018-10-25 17:59:17",
"updated_at":"2018-12-12 17:42:16",
"stock":9994,
"cost_price":"0.00",
"type":1,
"sku":"个",
"thumb":"https://yataimeigou.oss-cn-beijing.aliyuncs.com/images/1/2018/10/TIDHQv0LQs0hLAh3dII9A1zB3Ns3Jv.jpg",
"status_name":"上架",
"options":[
]
},
{
"id":427,
"uniacid":1,
"title":"PRP抗衰水光针",
"goods_sn":"",
"price":"2800.00",
"status":0,
"weight":"0.00",
"real_sales":0,
"created_at":"2018-10-21 15:55:58",
"updated_at":"2018-11-14 16:21:05",
"stock":1000,
"cost_price":"0.00",
"type":1,
"sku":"次",
"thumb":"https://yataimeigou.oss-cn-beijing.aliyuncs.com/images/1/2018/11/lPBgdjXoO6j4X0bOvBFVG1Jjf7BXAp.jpg",
"status_name":"下架",
"options":[
]
},
{
"id":426,
"uniacid":1,
"title":"99元抢超值大礼包",
"goods_sn":"",
"price":"99.00",
"status":0,
"weight":"0.00",
"real_sales":656,
"created_at":"2018-10-20 21:03:15",
"updated_at":"2018-11-14 16:21:04",
"stock":344,
"cost_price":"0.00",
"type":1,
"sku":"个",
"thumb":"https://yataimeigou.oss-cn-beijing.aliyuncs.com/images/1/2018/10/cM3O3I79Sv8TzjTm9IV9M9V23s9xJ3.jpg",
"status_name":"下架",
"options":[
]
},
{
"id":425,
"uniacid":1,
"title":"亚太超声刀(全面部)",
"goods_sn":"",
"price":"6800.00",
"status":0,
"weight":"0.00",
"real_sales":0,
"created_at":"2018-10-19 21:36:34",
"updated_at":"2018-11-14 16:21:36",
"stock":1000,
"cost_price":"0.00",
"type":1,
"sku":"次",
"thumb":"https://yataimeigou.oss-cn-beijing.aliyuncs.com/images/1/2018/10/QI8vmIru3agqnRuEdUINnnuPMViuEC.jpg",
"status_name":"下架",
"options":[
]
}
]
}
}
错误时返回:
{
"result": 0,
"msg": "错误信息",
}
返回参数说明:
参数名 |
类型 |
说明 |
total |
int |
分类总条数 |
per_page |
int |
每页条数 |
current_page |
int |
当前页码 |
last_page |
int |
最后一页的页码 |
from |
int |
第几条开始 |
to |
int |
第几条结束 |
data |
[goods] |
商品数组 |
goods参数名 |
类型 |
说明 |
id |
int |
商品id |
uniacid |
int |
店铺id(公众号id) |
title |
string |
商品标题 |
goods_sn |
string |
商品编码 (商品货号) |
price |
float |
价格 |
status_name |
string |
商品状态 |
weight |
float |
重量 |
real_sales |
int |
销量 |
created_at |
string |
创建时间 |
updated_at |
string |
修改时间 |
stock |
int |
库存 |
cost_price |
int |
库存 |
sku |
string |
单位 |
thumb |
string |
商品图片url |
options |
object |
商品规格 |
options参数名 |
类型 |
说明 |
id |
int |
商品规格id |
goods_id |
int |
所属商品id |
title |
string |
规格标题 |
product_price |
string |
规格价格 |
thumb |
string |
规格图片url |
weight |
float |
规格重量 |
stock |
int |
规格库存 |
skuId |
string |
sku编码(sku货号) |
product_sn |
string |
sku条形码 |
created_at |
int |
创建时间 |
updated_at |
int |
修改时间 |
备注: