~~~[api]
get:http://smg.hxpos.com/api/third/getGoodsList
*string:access_token#令牌
*integer:mchid#门店id
<<<
success
{
"code": "0",
"msg": "查询成功",
"data": {
"page_total": 7,
"total": 6741,
"current_page": "3",
"page_count": 1000,
"list": [
{
"miscode": "13010099",
"caption": "迷你可爱多甜筒 香芋",
"price": 16,
"spec": "",
"unit": "盒",
"photo": "",
"status": "on",
"id": "5a2fad278eba9d5eb0330baf",
"barcode_list": [
{
"barcode": "6909493400486",
"id": "5a2fad278eba9d5eb0330bb0"
}
]
},
]
}
}
<<<
error
{
"code": "900X",
"msg": "错误信息",
"data": {}
}
~~~
返回值data对象
|属性|说明|
|-|-|
|page_total|总页数|
|total|数据总条数|
|current_page|当前页码|
|page_count|每页显示数量,系统默认每页最大显示1000|
|list|商品列表|
返回值list对象说明
|属性|说明|
|-|-|
|id|商品唯一标识|
|miscode|店内码|
|caption|商品名称|
|unit|商品单位|
|spec|商品规格|
|photo|商品图片URL,可能为空|
|status|门店状态,on-有效,off-无效|
|price|商品价格|
|barcode_list|条码列表,MIS系统支持一品多码|
返回值barcode_list对象说明
|属性|说明|
|-|-|
|id|条码唯一标识|
|barcode|条形码|