~~~[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|條形碼|