---
url: "https://pay.weixin.qq.com/doc/v3/merchant/4013071036-curl.md"
title: "申请退款-请求示例-curl"
doc_id: 4013071036
example_lang: "curl"
---

## curl


> POST

```
curl -X POST \
  https://api.mch.weixin.qq.com/v3/refund/domestic/refunds \
  -H "Authorization: WECHATPAY2-SHA256-RSA2048 mchid=\"1900000001\",..." \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "transaction_id" : "1217752501201407033233368018",
    "out_trade_no" : "1217752501201407033233368018",
    "out_refund_no" : "1217752501201407033233368018",
    "reason" : "商品已售完",
    "notify_url" : "https://weixin.qq.com",
    "funds_account" : "AVAILABLE",
    "amount" : {
      "refund" : 888,
      "from" : [
        {
          "account" : "AVAILABLE",
          "amount" : 444
        }
      ],
      "total" : 888,
      "currency" : "CNY"
    },
    "goods_detail" : [
      {
        "merchant_goods_id" : "1217752501201407033233368018",
        "wechatpay_goods_id" : "1001",
        "goods_name" : "iPhone6s 16G",
        "unit_price" : 528800,
        "refund_amount" : 528800,
        "refund_quantity" : 1
      }
    ]
  }'
```
