---
url: "https://pay.weixin.qq.com/doc/v3/partner/4016280622-curl.md"
title: "添加商品券批次组-请求示例-curl"
doc_id: 4016280622
example_lang: "curl"
---

## curl


> POST

```
curl -X POST \
  https://api.mch.weixin.qq.com/v3/marketing/partner/product-coupon/product-coupons/200000001/stock-bundles \
  -H "Authorization: WECHATPAY2-SHA256-RSA2048 mchid=\"1900000001\",..." \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "out_request_no" : "34657_20250101_123456",
    "stock_bundle" : {
      "remark" : "满减券",
      "coupon_code_mode" : "UPLOAD",
      "stock_send_rule" : {
        "max_count" : 10000000,
        "max_count_per_day" : 10000,
        "max_count_per_user" : 1
      },
      "progressive_bundle_usage_rule" : {
        "coupon_available_period" : {
          "available_begin_time" : "2025-01-01T00:00:00+08:00",
          "available_end_time" : "2025-10-01T00:00:00+08:00",
          "available_days" : 10,
          "wait_days_after_receive" : 1,
          "weekly_available_period" : {
            "day_list" : [
              "MONDAY"
            ],
            "day_period_list" : [
              {
                "begin_time" : 60,
                "end_time" : 86399
              }
            ]
          },
          "irregular_available_period_list" : [
            {
              "begin_time" : "2025-01-01T00:00:00+08:00",
              "end_time" : "2025-10-01T00:00:00+08:00"
            }
          ],
          "available_seconds" : 3600
        },
        "normal_coupon_list" : [
          {
            "threshold" : 10000,
            "discount_amount" : 100
          }
        ],
        "discount_coupon_list" : [
          {
            "threshold" : 10000,
            "percent_off" : 30
          }
        ],
        "exchange_coupon_list" : [
          {
            "threshold" : 10000,
            "exchange_price" : 100
          }
        ]
      },
      "usage_rule_display_info" : {
        "coupon_usage_method_list" : [
          "MINI_PROGRAM"
        ],
        "mini_program_appid" : "wx1234567890",
        "mini_program_path" : "/pages/index/product",
        "app_path" : "https://www.example.com/jump-to-app",
        "usage_description" : "全场可用",
        "coupon_available_store_info" : {
          "description" : "可在上海市区的所有门店使用，详细列表参考小程序内信息为准",
          "mini_program_appid" : "wx1234567890",
          "mini_program_path" : "/pages/index/store-list"
        },
        "app_jump_type" : "H5",
        "passcode_link" : "passcode_link.example"
      },
      "coupon_display_info" : {
        "code_display_mode" : "QRCODE",
        "background_color" : "Color010",
        "entrance_mini_program" : {
          "appid" : "wx1234567890",
          "path" : "/pages/index/product",
          "entrance_wording" : "欢迎选购",
          "guidance_wording" : "获取更多优惠"
        },
        "entrance_official_account" : {
          "appid" : "wx1234567890"
        },
        "entrance_finder" : {
          "finder_id" : "gh_12345678",
          "finder_video_id" : "UDFsdf24df34dD456Hdf34",
          "finder_video_cover_image_url" : "https://wxpaylogo.qpic.cn/wxpaylogo/xxxxx/xxx"
        }
      },
      "notify_config" : {
        "notify_appid" : "wx4fd12345678"
      },
      "store_scope" : "SPECIFIC"
    },
    "brand_id" : "120344"
  }'

```
