文档
测试

添加优惠券

POST
/shopbackend/coupon/create

请求参数

参数名
类型
描述
必填
langData[]
array
多语言配置
必填
title
string
标题
必填
lang_id
int
语言编号
必填
title_remarks
string
备注
可选
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
提示
必填

说明 / 示例

{ "code": 200, "message": "添加成功" }