---
url: "https://pay.weixin.qq.com/doc/v3/partner/4012714759-curl.md"
title: "H5下单-请求示例-curl"
doc_id: 4012714759
example_lang: "curl"
---

## curl


> POST

H5下单-请求示例

```
curl -X POST \
  https://api.mch.weixin.qq.com/v3/pay/partner/transactions/h5 \
  -H "Authorization: WECHATPAY2-SHA256-RSA2048 mchid=\"1900000001\",..." \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "time_expire" : "2018-06-08T10:34:56+08:00",
    "amount" : {
      "total" : 100,
      "currency" : "CNY"
    },
    "settle_info" : {
      "profit_sharing" : true
    },
    "sp_mchid" : "1230000109",
    "description" : "Image形象店-深圳腾大-QQ公仔",
    "sub_appid" : "wxd678efh567hg6999",
    "notify_url" : " https://www.weixin.qq.com/wxpay/pay.php",
    "sp_appid" : "wx8888888888888888",
    "out_trade_no" : "1217752501201407033233368018",
    "goods_tag" : "WXG",
    "sub_mchid" : "1900000109",
    "attach" : "自定义数据说明",
    "detail" : {
      "cost_price" : 608800,
      "invoice_id" : "微信123",
      "goods_detail" : [
        {
          "merchant_goods_id" : "1246464644",
          "wechatpay_goods_id" : "1001",
          "goods_name" : "iPhoneX 256G",
          "quantity" : 1,
          "unit_price" : 528800
        }
      ]
    },
    "support_fapiao" : false,
    "scene_info" : {
      "payer_client_ip" : "14.23.150.211",
      "device_id" : "013467007045764",
      "store_info" : {
        "id" : "0001",
        "name" : "腾讯大厦分店",
        "area_code" : "440305",
        "address" : "广东省深圳市南山区科技中一道10000号"
      },
      "h5_info" : {
        "type" : "iOS",
        "app_name" : "王者荣耀",
        "app_url" : "https://pay.qq.com",
        "bundle_id" : "com.tencent.wzryiOS",
        "package_name" : "com.tencent.tmgp.sgame"
      }
    }
  }'

```
