修改购物车商品货品数量

修改购物车商品货品数量

请求地址

POST https://{host}/openapi/cart/update

请求参数

属性 类型 默认值 必填 说明
x-token String 用户token

body

属性 类型 默认值 必填 说明
id int 购物车id
productId int 货品ID
number int 商品货品的数量
goodsId int 商品ID

返回值

{
  "errcode": "0",
  "errmsg": ""
}

参数说明

属性 类型 说明
errcode number 错误码
errmsg string 错误信息

errcode 的合法值

说明 最低版本
-1 系统错误
0 请求成功
20001 参数为空
20003 参数错误
51001 商品已下架
51002 库存不足
22001 更新操作超时
22002 更新操作失败

results matching ""

    No results matching ""