接口描述:
接口版本:
版本号 |
制定人 |
制定日期 |
修订日期 |
1.0.0 |
庞晓宇 |
2021-07-20 |
2021-07-20 |
请求URL:
- 商户接口URL:/api/shoppingCart/list
请求方式:
请求参数:
参数名 |
是否必须 |
类型 |
说明 |
infoId |
是 |
string |
牌号 |
authFrom |
是 |
string |
4-线下餐饮 5-线下零售(门店类型StoreType为1-餐饮 对应参数4, 2-零售 对应参数5;多端支持填写:4,5) |
返回参数说明:
参数名 |
类型 |
说明 |
code |
int |
0 |
msg |
string |
success |
data |
json |
查询成功返回list数据 |
返回数据说明:
参数名 |
类型 |
说明 |
infoId |
long |
牌号 |
mchId |
long |
商户号 |
imgPathMain |
string |
图片地址 |
goodsId |
long |
商品ID(-1无码商品) |
cartId |
long |
购物车ID |
currentPrice |
long |
现价 |
discountAmount |
long |
优惠价格 |
authFrom |
int |
所属行业 1-餐饮 2-电商 4-收银机 |
stockLimitType |
int |
是否限制库存 1-不限库存 2-限制 |
unit |
string |
单位 |
cellingPrice |
long |
原价 |
goodsName |
string |
商品名称 |
brand |
string |
品牌 |
goodsDesc |
string |
描述 |
goodsNum |
int |
商品数量 |
barCode |
string |
商品条码 |
createTime |
string |
创建时间 |
updateTime |
string |
更新时间 |
返回示例:
{
"code": 0,
"msg": "success",
"data": [
{
"infoId": 666,
"mchId": 20000009,
"imgPathMain": "http://127.0.0.1:8204/imgs/goods/42ebfcb2-2c17-44d6-9eed-0f33837587e7.jpg",
"goodsId": 1,
"cartId": 9,
"currentPrice": 14900,
"discountAmount": 100,
"authFrom": 1,
"stockLimitType": 1,
"unit": "1",
"createTime": "2021-07-20 09:41:16",
"subGoodsId": "",
"cellingPrice": 18800,
"goodsNum": 1,
"goodsName": "清蒸鱼",
"brand": "鱼酷烤鱼",
"goodsProps": "1,2",
"goodsDesc": "清脆可口"
},
{
"infoId": 666,
"mchId": 20000009,
"ps": null,
"goodsJson": "{\"currentPrice\":\"1000\",\"goodsName\":\"茉莉花茶\"}",
"goodsId": -1,
"cartId": 10,
"discountAmount": 0,
"currentPrice": "1000",
"authFrom": 1,
"updateTime": "2021-07-20 09:41:16",
"cartUserType": 1,
"isGoodsSelected": 1,
"createTime": "2021-07-20 09:41:16",
"isvId": 40000003,
"goodsNum": 1,
"goodsName": "茉莉花茶",
"goodsProps": null
},
{
"infoId": 666,
"mchId": 20000009,
"ps": null,
"goodsJson": "{\"currentPrice\":\"300\",\"goodsName\":\"百事可乐\"}",
"goodsId": -1,
"cartId": 11,
"discountAmount": 0,
"currentPrice": "300",
"authFrom": 1,
"updateTime": "2021-07-20 09:41:16",
"cartUserType": 1,
"isGoodsSelected": 1,
"createTime": "2021-07-20 09:41:16",
"isvId": 40000003,
"goodsNum": 1,
"goodsName": "百事可乐",
"goodsProps": null
}
],
"count": 3,
"extData": {
"totalAmount": 16100,
"totalCartAmount": 16100,
"distributionCost": 0,
"totalRequiredAmount": 20100,
"totalDiscountAmount": 4000,
"totalPoints": 0,
"totalCellingPrice": 20100,
"totalCouponAmount": 0,
"deliveryCost": 0
}
}
文档更新时间: 2021-10-25 17:43 作者:刘正阳