新增优惠券
POST
thirdparty/activity/coupon/activity/create
请求头
参数名
类型
描述
必填
X-ZZ-SysUserId
string
用户id
必填
X-ZZ-TenantId
string
商户id
必填
请求参数
参数名
类型
描述
必填
availabledelaydays
int
领取后几天生效
可选
name
string
优惠券名称
必填
limitcount
string
发行数量限制
可选
catalog
string
券种类, eg:Cash现金券,CashReduction满减券
必填
orderminamount
string
门槛
可选
amount
int
券金额 (现金券的金额 or 满减的减 or 折扣券的折扣)
可选
exchangetype
string
换类型 1直接兑换 2指定金额兑换
可选
exchangeamount
string
兑换金额
可选
ordersubtype
int
适用订单类型,1(配送单),2(自提单),4(扫码购),8(收银机), 多个的情况数值相加
必填
enabledfrom
int
活动开启时间
必填
enabledto
int
活动结束时间
必填
countlimitinperiod
int
周期内一个用户可领取数量
必填
membercouponlimitcount
int
用户可领取数
必填
sendruletype
string
券发放类型, eg: user.get 用户领取
必填
type
string
过期时间类型, 1绝对时间过期,2相对时间过期
必填
period
string
相对过期时间,eg:P1D(一天),P1M(一个月), P1Y1M1D(一年一个月一天)
必填
availablestarttime
int
开始时间
必填
availableendtime
int
过期时间
必填
realmtype
string
适用规则类型,eg.all 全场、catalog 分类、goods 多商品
必填
skucodestoinclude
array
包含的商品
可选
catalogstoinclude
array
包含的分类
可选
skucodestoexclude
array
排除的商品sku
可选
catalogstoexclude
array
包含的商品
可选
platform
int
费用平台承担比例
可选
shop
int
费用门店承担比例
可选
exchangepoints
string
兑换所需要的积分数
必填
onlyuseinoriginal
boolean
是否仅商品原价时可用
必填
weekcycledata
string
周一到周日,逗号隔开,选中为1,
必填
endtime1
string
每周选中天数适用截止时间
必填
starttime1
string
每周选中天数适用开始时间
必填
uselimit
int
用户每日使用限制张数,为空不限制
可选
districtscope
string
可用区域范围,用','分隔
可选
shopscope
string
适用门店, 用','分隔
可选
shoprealmtype
string
适用门店范围类型
可选