修改优惠券
POST
/coupon/update
请求参数
参数名
类型
描述
必填
id
int
优惠券编号
必填
amount
int
优惠券数量
必填
goods
int
使用商品 (默认1:全部商品可用 2:指定商品可用 3:指定商品不可用)
必填
goods_id
array
商品id
可选
type
int
优惠券类型 1:满减券 2:折扣券
必填
threshold
int
使用门槛 1:无使用门槛 2:满多少减/打折
必填
threshold_price
int
门槛价格 有门槛的时候必填
可选
coupon_start_time
int
优惠券使用时间
必填
coupon_end_time
int
优惠券结束时间
必填
receive_number
int
0 无限制 其他数字就是限制的次数
必填
content
int
优惠内容 减免价格/打折
必填
响应参数
参数名
类型
描述
必填
code
int
成功 200 失败 201
必填
message
string
提示
必填