Skip to content

/product/sku/update 更新sku

接口名: /product/sku/update

Method: POST

添加字段:

    is_price_timing O bool 是否时价(0:否  1:是  default:0)

请求:

    id M string sku ID
    name O string spu名称
    desc O string spu描述
    std_sale_price O float 销售单价(分)
    sale_price O float 销售价格(分)
    sale_unit_name O 销售单位
    sale_ratio O float 销售规格
    sale_num_least O int 最小下单数
    attrition_rate O float 损耗率
    is_price_timing O bool 是否时价
    state O int 销售状态
    is_weigh O bool 是否称重
    slitting M bool 能否分切
    partframe M bool 能否投筐
    stock_type O int 设置库存(0:读取上游库存;1:不设置库存;2:设置库存)
    stocks O int 库存数量
    image O string 图片名称
    salemenu_id O string 销售单ID
    supply_sku_id O string 采购来源
响应:

    code M int 0为成功,其它为失败
    msg M string 错误提示信息
逻辑:

    参数校验
    验证sku_id是否有效
    更新sku信息
注:
    std_sale_price 和 sale_price 这两个参数不能同时传

接口名:/station/skuproducts/import 批量导入

接口名:/station/skuproducts/export 批量导出

权限修改

删除原时价权限
原使用时价权限的地方替换为使用修改商品权限