【多次优惠-单品-满减券】API请求示例

更新时间:2025.12.04
||
curl
Java
Go

 

1## 场景4: 多次优惠-单品-满减券
2
3```bash
4curl -X POST \
5  https://api.mch.weixin.qq.com/v3/marketing/partner/product-coupon/product-coupons \
6  -H "Authorization: WECHATPAY2-SHA256-RSA2048 mchid=\"1900000001\",..." \
7  -H "Accept: application/json" \
8  -H "Content-Type: application/json" \
9  -d '{
10    "out_request_no" : "MANY_SINGLE_NORMAL_20250101_004",  # 必填,创建请求单号,品牌侧需保持唯一性,长度6-40个字符
11    "brand_id" : "120344",  # 必填,品牌ID
12    "out_product_no" : "Product_1234567890",  # 选填,外部商品ID
13    "scope" : "SINGLE",  # 必填,优惠范围:SINGLE=单品券
14    "type" : "NORMAL",  # 必填,商品券类型:NORMAL=满减券
15    "usage_mode" : "PROGRESSIVE_BUNDLE",  # 必填,使用模式:PROGRESSIVE_BUNDLE=多次优惠模式(阶梯模式)
16    "progressive_bundle_usage_info" : {  # 条件必填:当usage_mode="PROGRESSIVE_BUNDLE"时必填,多次优惠模式配置信息
17      "count" : 3,  # 必填,可使用次数,最少3次,最多15次
18      "interval_days" : 2  # 选填,多次优惠使用间隔天数,2=使用后需等到第三天00:00:00才能使用下一次
19    },
20    "display_info" : {  # 必填,商品券展示信息
21      "name" : "指定商品立减15(可用3次)",  # 必填,商品券名称
22      "image_url" : "https://wxpaylogo.qpic.cn/wxpaylogo/xxxxx/xxx",  # 必填,商品图片URL
23      "background_url" : "https://wxpaylogo.qpic.cn/wxpaylogo/xxxxx/xxx",  # 必填,背景图URL
24      "detail_image_url_list" : [  # 选填,详情图URL列表
25        "https://wxpaylogo.qpic.cn/wxpaylogo/xxxxx/xxx"
26      ],
27      "original_price" : 9900,  # 条件必填:当scope="SINGLE"时,与combo_package_list二选一必填,商品原价,单位为分
28      "combo_package_list" : [  # 条件必填:当scope="SINGLE"时,与original_price二选一必填,套餐组合列表
29        {
30          "name" : "套餐A",  # 条件必填:当配置combo_package_list数组时必填,套餐名称
31          "pick_count" : 2,  # 条件必填:当配置combo_package_list数组时必填,可选单品数量
32          "choice_list" : [  # 条件必填:当配置combo_package_list数组时必填,单品列表
33            { "name" : "鸡腿饭", "price" : 2000, "count" : 1, "image_url" : "https://wxpaylogo.qpic.cn/wxpaylogo/xxxxx/chicken" },  # name/price/count必填,image_url选填
34            { "name" : "牛肉饭", "price" : 2500, "count" : 1, "image_url" : "https://wxpaylogo.qpic.cn/wxpaylogo/xxxxx/beef" }
35          ]
36        }
37      ]
38    },
39    "stock_bundle" : {  # 条件必填:当usage_mode="PROGRESSIVE_BUNDLE"时必填,批次组信息
40        "remark" : "指定商品立减15批次",  # 选填,批次备注
41        "coupon_code_mode" : "WECHATPAY",  # 必填,券Code分配模式
42        "stock_send_rule" : {  # 必填,发放规则
43          "max_count" : 10000000,  # 必填,总发放次数上限
44          "max_count_per_user" : 1  # 必填,每用户领取上限
45        },
46        "progressive_bundle_usage_rule" : {  # 条件必填:当usage_mode="PROGRESSIVE_BUNDLE"时必填,多次优惠使用规则
47          "coupon_available_period" : {  # 必填,券可核销时间
48            "available_begin_time" : "2025-08-01T00:00:00+08:00",  # 必填,开始时间
49            "available_end_time" : "2025-08-31T23:59:59+08:00",  # 必填,结束时间
50            "available_days" : 30,  # 选填,生效后N天有效
51            "weekly_available_period" : {  # 选填,每周可用时间。若配置此对象,则day_list必填
52              "day_list" : ["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY"]  # 条件必填:当配置weekly_available_period对象时必填
53            }
54          },
55          "normal_coupon" : {  # 条件必填:当type="NORMAL"时必填,满减券使用规则
56            "threshold" : 0,  # 必填,门槛金额,单位为分,0表示无门槛
57            "discount_amount" : 1500  # 必填,固定减免金额,单位为分,减15元填1500
58          }
59        },
60        "usage_rule_display_info" : {  # 必填,使用规则展示信息
61          "coupon_usage_method_list" : ["OFFLINE","MINI_PROGRAM","PAYMENT_CODE"],  # 必填,券使用方式列表
62          "mini_program_appid" : "wx1234567890",  # 条件必填:当coupon_usage_method_list包含"MINI_PROGRAM"时必填
63          "mini_program_path" : "/pages/index/product",  # 条件必填:当coupon_usage_method_list包含"MINI_PROGRAM"时必填
64          "usage_description" : "指定商品可用,立减15元",  # 必填,使用说明
65          "coupon_available_store_info" : {  # 选填,可用门店信息
66            "description" : "所有门店可用,可使用小程序查看门店列表",  # 条件必填:当配置coupon_available_store_info对象时必填
67            "mini_program_appid" : "wx1234567890",  # 选填
68            "mini_program_path" : "/pages/index/store-list"  # 选填
69          }
70        },
71        "coupon_display_info" : {  # 必填,用户券展示信息
72          "code_display_mode" : "QRCODE",  # 必填,Code展示模式
73          "background_color" : "Color010",  # 选填,背景颜色
74          "entrance_mini_program" : {  # 选填,小程序入口。若配置此对象,则appid/path/entrance_wording/guidance_wording均必填
75            "appid" : "wx1234567890",  # 条件必填:当配置entrance_mini_program对象时必填
76            "path" : "/pages/index/product",  # 条件必填:当配置entrance_mini_program对象时必填
77            "entrance_wording" : "欢迎选购",  # 条件必填:当配置entrance_mini_program对象时必填
78            "guidance_wording" : "获取更多优惠"  # 条件必填:当配置entrance_mini_program对象时必填
79          },
80          "entrance_official_account" : { "appid" : "wx1234567890" },  # 选填
81          "entrance_finder" : {  # 选填,视频号入口。若配置此对象,则finder_id/finder_video_id/finder_video_cover_image_url均必填
82            "finder_id" : "gh_12345678",  # 条件必填:当配置entrance_finder对象时必填
83            "finder_video_id" : "UDFsdf24df34dD456Hdf34",  # 条件必填:当配置entrance_finder对象时必填
84            "finder_video_cover_image_url" : "https://wxpaylogo.qpic.cn/wxpaylogo/xxxxx/xxx"  # 条件必填:当配置entrance_finder对象时必填
85          }
86        },
87        "store_scope" : "NONE",  # 必填,可用门店范围
88        "notify_config" : { "notify_appid" : "wx4fd12345678" }  # 必填,事件通知配置
89    }
90  }'
91```

 

 

 

元宝AI
反馈
目录
置顶