该接口用于获取优惠券模板列表;
优惠券模板指用于作为发放优惠券的模板,并不是指已经发放到会员身上的优惠券
名称 | 描述 |
---|---|
HTTP URL | https://open.shengyi.pro/coupon/v1/coupon_mould |
HTTP Method | GET |
content-type 必填 string
示例:application/json
固定值:application/json
appid 必填 string
示例:10000000000
应用唯一标识,可以从众流生意app中的开放平台中获取
client_token 必填 string
示例:laOVEe3aNYY*****
用户授权令牌
paginate_type 必填 int
示例:2
固定值:2
curl --location --request GET 'https://open.shenyi.pro/coupon/v1/coupon_mould?client_token=laOVEe3aNYY*****&paginate_type=2 \
--header 'Content-Type: application/json' \
code int
示例:200
请求响应
message string
示例:请求成功
请求响应
data struct
id string
示例:V3FodFhEa0xzU0JUTzJnd0ZXSzdtdz09
优惠券模板id
coupon_mould_name string
示例:测试
优惠券模板名称
head_url string
示例:https://zhongliulingshou.oss-cn-hangzhou.aliyuncs.com/knifeAppCloudStorage/95883117100/1732954725439_微信图片_20210902095629.jpg
logo地址
coupon_mould_type_id int
示例:1
优惠券模板类型,2代金券(用一次就消失),4余额券(可以多次使用),5时长券(用一次就消失)
coupon_mould_limit_type_id int
示例:1
可用时间类型,1固定范围,2N天可用,3永不过期
coupon_start_time string
示例:2024-12-03 00:00:00
可用开始时间,仅可用时间类型为固定范围时有效
coupon_end_time string
示例:2024-12-04 00:00:00
可用结束时间,仅可用时间类型为固定范围时有效
coupon_least_money int
示例:100
优惠券起始金额,达到这个金额时方可使用,仅优惠券模板类型为代金券时有效,单位:分
coupon_reduce_money int
示例:100
优惠券减免金额,达到这个金额时方可使用,仅优惠券模板类型为代金券时有效,单位:分
coupon_least_time int
示例:100
优惠券起始时长,达到这个时长时方可使用,仅优惠券模板类型为时长券时有效,单位:分钟
coupon_reduce_time int
示例:100
优惠券减免时长,达到这个时长时方可使用,仅优惠券模板类型为时长券时有效,单位:分钟
denomination int
示例:100
面额,仅优惠券模板类型为余额券时有效,单位:分
{
"code": 200,
"message": "请求成功",
"data": [
{
"id": "V3FodFhEa0xzU0JUTzJnd0ZXSzdtdz09",
"coll_id": "TVE1WW5iRE1NaUdMbytkS2dXR2VGUT09",
"merchant_id": "S1F4dHNSWGF5MGZ4T1JXSWl4RWJHZz09",
"merchant_name": "杨健",
"coupon_mould_name": "测试模版",
"head_url": "https://zhongliulingshou.oss-cn-hangzhou.aliyuncs.com/knifeAppCloudStorage/95883117100/1732954725439_微信图片_20210902095629.jpg",
"coupon_color_id": "Ni9FL1dYaWxWY0h5UElSZlpPYk9QUT09",
"coupon_start_time": null,
"coupon_end_time": null,
"coupon_mould_postpone": 0,
"coupon_mould_day": 0,
"description": "",
"coupon_least_money": 3000,
"coupon_reduce_money": 500,
"coupon_discount": 0,
"coupon_least_time": 0,
"coupon_reduce_time": 0,
"coupon_mould_num_limit": 7,
"goods_id": "WEUxVmpKOVBaeHdneGlSVTBZWXQrUT09",
"denomination": 0,
"password": "",
"coupon_mould_type_id": 2,
"coupon_mould_time_type_id": 3,
"coupon_mould_limit_type_id": 1,
"coupon_wechat_status_id": 1,
"coupon_mould_online_status_id": 1,
"coupon_mould_offline_status_id": 2,
"remark": "",
"create_time": "2024-11-30 16:19:34",
"coupon_mould_type": {
"id": "bkhGanE4Q0tzT3JhZDVGTnVJNWhmQT09",
"coupon_mould_type_name": "代金券",
"coupon_mould_type_name_en": "Vouchers",
"remark": "代金券可在订单结算时抵扣金额(只可使用一次)",
"remark_en": "The voucher can be used to offset the amount during order settlement (can only be used once)",
"create_time": null
}
}
],
}