新增优惠券
POST
order/orderDiscountCoupon/insert
接口描述
新增优惠券
请求头
参数名
类型
描述
必填
Authorization
string
Bearer d2331075-3cad-4768-ae55-76fd9b2e0056 用户登录token进行替换
必填
请求参数
参数名
类型
描述
必填
name
String
优惠券名称
必填
type
Integer
1-单品减价券
必填
amount
BigDecimal
优惠券面额
必填
isMaxNum
Boolean
是否限制发放最大数量 true/false
必填
maxNum
Integer
发放最大限制数量
必填
maxReceiveNum
Integer
最大领取数量
必填
maxHoldNum
Integer
最大持有数量
必填
isMeanwhileUse
Boolean
是否可以与其他优惠券同时使用 true/false
必填
periodOfValidityDays
Integer
领取之日多久
必填
periodOfValidityBeginTime
LocalDateTime
使用日期开始时间
必填
periodOfValidityEndTime
LocalDateTime
使用日期结束时间
必填
serviceRegulations
String
使用规则,传递带换行符<br/>的字符串
必填
useScope
Integer
使用范围 1-单品 2-品类 3-品牌
必填
correlationList
Long
关联项的Ids列表
必填