---
url: "https://pay.weixin.qq.com/doc/v3/partner/4017327752-curl.md"
title: "提交图片生成任务-请求示例-curl"
doc_id: 4017327752
example_lang: "curl"
---

## curl


> POST

```
curl -X POST \
  https://api.mch.weixin.qq.com/v3/marketing/partner/product-coupon/image-generation-tasks \
  -H "Authorization: WECHATPAY2-SHA256-RSA2048 mchid=\"1900000001\",..." \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "brand_id" : "120344",
    "task_id" : "image_generation_task_1",
    "image_generation_type" : "COMBINE_IMAGE",
    "combine_image" : {
      "scope" : "ALL",
      "type" : "NORMAL",
      "usage_mode" : "SINGLE",
      "normal_coupon" : {
        "threshold" : 10000,
        "discount_amount" : 100
      },
      "discount_coupon" : {
        "threshold" : 10000,
        "percent_off" : 30
      },
      "exchange_coupon" : {
        "threshold" : 10000,
        "exchange_price" : 100
      },
      "background_color" : "#ff5733"
    },
    "cut_out" : {
      "image_url" : "https://wxpaylogo.qpic.cn/wxpaylogo/example.jpg"
    }
  }'

```
