---
url: "https://pay.weixin.qq.com/doc/v3/merchant/4012463767-curl.md"
title: "发放指定批次的代金券-请求示例-curl"
doc_id: 4012463767
example_lang: "curl"
---

## curl


> POST

```
curl -X POST \
  https://api.mch.weixin.qq.com/v3/marketing/favor/users/openid_example/coupons \
  -H "Authorization: WECHATPAY2-SHA256-RSA2048 mchid=\"1900000001\",..." \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "stock_id" : "example_stock_id",
    "out_request_no" : "example_out_request_no",
    "appid" : "example_appid",
    "stock_creator_mchid" : "example_stock_creator_mchid",
    "coupon_value" : 1,
    "coupon_minimum" : 1
  }'

```
