POST/plugin.big-brand-ordering.api.cart.add
传入参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| form[store_code] | string | 门店代号 nx和sbk不传,其他品牌传 |
| form[store_id] | string | 门店id nx和sbk传,其他品牌不传 |
| form[brand] | string | 品牌代号 从品牌列表里获取 |
| form[order_type] | int | 订单类型 1 自提 2 外卖 |
| form[amount] | int | 商品数量 |
| form[city_id] | int | 城市id |
| form[list] | object | 选中的套餐信息 |
传入参数form.list示例:
奶茶品牌时传入:
{
"goods_id":xxxx,
"sku_id":xxxx,
}
霸王茶姬(chagee)时传入:
{
"goods_id":xxxx,
"sku_id":xxxx,
"list":[
{
"code":xxx,
"value":xxx
},
{
"code":xxx,
"value":xxx
}
]
}
非奶茶品牌时传入:
{
"goods_id":xxxx,
"list":[
{
"code":xxxx,
"list":[
{
"code":xxxx,
"amount":2
},
{
"code":xxxx,
"amount":5
},
],
},
{
"code":xxxx,
"list":[
{
"code":xxxx,
"amount":2
},
{
"code":xxxx,
"amount":5
},
],
}
]
}
返回参数说明:
| 参数名 | 类型 | 说明 |
|---|