- coupon_template
-
CouponTemplate
-
必须
-
- 券模版
- apply_limit_config
-
CouponTemplateApplyLimitConfig
-
必须
-
- 领取限制
- └ apply_end_time
-
Date
-
可选
- 2019-12-31 23:59:59
-
- 优惠券最后能领取时间(超过这个时间,优惠券不能领取)
- └ coupon_daily_lmt
-
Number
-
可选
- 1
-
- 优惠券每日限领数(-1表示不限制)
- └ coupon_total_lmt
-
Number
-
必须
- 1000
-
- 优惠券总数(-1表示不限制)
- └ personal_daily_lmt
-
Number
-
可选
- 1
-
- 每人每日限领(-1表示不限制)
- └ personal_lmt
-
Number
-
可选
- 1
-
- 个人总领取限制数量(-1表示不限制)
- └ apply_start_time
-
Date
-
可选
- 2019-12-31 23:59:59
-
- 优惠券最早能领取时间(在这时间之前,优惠券不能领取)
- common_config
-
CouponTemplateCommonConfig
-
必须
-
- 基础信息
- └ apply_channels
-
String
[]
-
可选
- darunfa
-
- 申请渠道 anonymousOffline
- └ description
-
String
-
必须
- 全场8折
-
- 优惠券活动描述
- └ status
-
Number
-
可选
- 1
-
- 模板状态 NORMAL(1, "有效"), DELETE(-1, "删除"), ENDING(0, "结束领取"), NOUSE(-2, "无效"), WDK_COUPON_DRAFT(-999, "草稿"),
- └ title
-
String
-
必须
- 超市8折
-
- 优惠券名称
- └ type
-
Number
-
必须
- 6
-
- 优惠券类型 FIX_PRICE(6,"fixPrice","新减至券,即一口价券"), FULL_AMOUNT_REDUCE(11, "fullAmountReduce", "满元减券"), FULL_AMOUNT_DISCOUNT(12, "fullAmountDiscount", "满元折券"), FULL_COUNT_REDUCE(13, "fullCountReduce", "满件减券"), FULL_COUNT_DISCOUNT(14, "fullCountDiscount", "满件折券"), VOUCHER(15, "voucher", "抵用券"),
- └ send_type
-
String
-
可选
- anonymous
-
- 优惠券发放方式 ANONYMOUS("anonymous","匿名券"), REGISTERED("registered","记名券"),
- condition_config
-
CouponTemplateConditionConfig
-
可选
-
- 生效条件
- └ amount
-
Number
-
可选
- 100
-
- 门槛金额
- └ amount_at
-
Boolean
-
可选
- false
-
- 是否生效满元条件
- └ categories
-
String
[]
-
可选
- 23123
-
- 生效类目
- └ count
-
Number
-
可选
- 1
-
- 门槛件数
- └ count_at
-
Boolean
-
可选
- false
-
- 是否生效满件条件
- └ only_member_self
-
Boolean
-
可选
- false
-
- 是否限制本人使用
- └ range_type
-
Number
-
可选
- 1
-
- 券的使用范围 COUPON_RANGE_STORE(1, "rangeShop", "店铺券"), COUPON_RANGE_ITEM(2, "rangeItem", "商品券"), COUPON_RANGE_CATEGORY(3, "rangeCategory", "品类券"), COUPON_RANGE_SELLER(307,"rangeSeller", "卖家券"),
- └ shop_ids
-
String
[]
-
可选
- 23123
-
- 生效门店
- └ terminals
-
String
[]
-
可选
- 1
-
- 生效终端: 1.app 2.pos
- user_crowd_config
-
CouponTemplateUserCrowdConfig
-
可选
-
- 人群信息
- └ merchant_customize_crowd_name
-
String
-
可选
- DRFMem
-
- 商家自定义人群
- └ platform_crowd_name
-
String
-
可选
- HEMAX
-
- 平台人群
- └ max_use_count_per_order
-
Number
-
可选
- 12
-
- 单笔订单最大可用张数
- └ merchant_categories
-
String
[]
-
可选
- 601
-
- 生效商家类目
- discount_config
-
CouponTemplateDiscountConfig
-
可选
-
- 优惠效果
- └ decrease
-
Boolean
-
可选
- false
-
- 是否减钱
- └ decrease_money
-
Number
-
可选
- 100
-
- 减钱金额
- └ discount
-
Boolean
-
可选
- false
-
- 是否打折
- └ discount_rate
-
Number
-
可选
- 10
-
- 打折额度
- └ fix_price_amount
-
Number
-
可选
- 1000
-
- 优惠后的固定价格
- └ fix_price
-
Boolean
-
可选
- false
-
- 是否固定价格
- └ id
-
Number
-
可选
- 1
-
- 模板表主键 创建时为空
- investment_config
-
CouponTemplateInvestmentConfig
-
可选
-
- 出资人配置
- investment_info_list
-
InvestmentInfo
[]
-
可选
-
- 出资人配置
- └ investor
-
String
-
可选
- caoding
-
- 出资人
- └ investor_ratio
-
Number
-
可选
- 2000
-
- 出资比例 2000 = 20%
- option_config
-
CouponTemplateOptionConfig
-
可选
-
- 其他配置--拓展信息
- └ out_coupon_template_id
-
String
-
可选
- 11111
-
- 外部优惠券模板id
- └ out_coupon_type
-
String
-
可选
- qwer
-
- 外部优惠券类型
- └ logo_url
-
String
-
可选
- http://taobao.com
-
- 优惠券logo url
- └ picture_url
-
String
-
可选
- http://taobao.com
-
- 券图片
- └ purchase_id
-
Number
-
可选
- 1001
-
- 采买者id
- └ contract_instance_id
-
Number
-
可选
- 100100331414
-
- 合同id
- participate_config
-
CouponTemplateParticipateConfig
-
可选
-
- 参与者
- participate_list
-
LogicGroup
[]
-
可选
-
- 参与者列表
- └ number
-
Number
-
可选
- 1
-
- 参与者分组序号
- └ wdk_group_name
-
String
-
可选
- 换购
-
- 五道口参与者名称
- └ logic_group_type
-
Number
-
可选
- 1
-
- 逻辑分组类型 COMMON(1, "普通分组"), EXCHANGE(2, "换购分组"), BUY_GIFT(3, "买赠分组"), EXCHANGE_TJ_OVERLAY(4, "特价换购叠加分组"),
- └ source_id
-
Number
-
可选
- 1
-
- ump模板ID
- time_limit_config
-
CouponTemplateTimeLimitConfig
-
可选
-
- 实例有效时间配置
- └ end_valid_time
-
Date
-
可选
- 2019-12-31 23:59:59
-
- 优惠券结束时间
- └ start_valid_time
-
Date
-
可选
- 2019-12-31 23:59:59
-
- 优惠券开始时间
- └ valid_time_type
-
Number
-
可选
- 1
-
- 优惠券有效时间类型 RANGE(1,"开始/结束时间"), DURATION(2,"固定时长"),
- └ validity_period
-
Number
-
可选
- 1000
-
- 优惠券有效时长,单位为秒(固定有效时长的优惠券)
- └ validity_start_interval
-
Number
-
可选
- 7200
-
- 优惠券有效开始时长,单位为秒(优惠券领取后X天开始有效)
- └ validity_end_interval
-
Number
-
可选
- 14400
-
- 优惠券有效结束时长,单位为秒(优惠券领取后X-Y天有效的Y)
- └ uuid
-
String
-
可选
- 113131212
-
- 优惠券模版uuid
- └ unique_id
-
String
-
可选
- 4123123
-
- 幂等id
- compatible_config
-
CouponTemplateCompatibleConfig
-
可选
-
- 兼容历史逻辑配置
- └ valid_till_night
-
Number
-
可选
- 1
-
- 是否要求优惠券在一天的23:59:59失效 1表示最后一秒失效
- └ application_type
-
String
-
可选
- pointCoupon
-
- 优惠券应用类型 pointCoupon:积分券
- user_info
-
UserInfo
-
可选
-
- 用户信息
- └ source
-
String
-
可选
- 1
-
- 来源
- └ user_id
-
Number
-
可选
- 1
-
- 用户id
- └ user_name
-
String
-
可选
- 1
-
- 用户名称
|