---
url: "https://pay.weixin.qq.com/doc/v3/partner/4013138819-curl.md"
title: "修改支付分订单金额-请求示例-curl"
doc_id: 4013138819
example_lang: "curl"
---

## curl


> POST

```
curl -X POST \
  https://api.mch.weixin.qq.com/v3/payscore/partner/serviceorder/1234323JKHDFE1243252/modify \
  -H "Authorization: WECHATPAY2-SHA256-RSA2048 mchid=\"1900000001\",..." \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "service_id" : "2002000000000558128851361561536",
    "sub_mchid" : "1900000109",
    "post_payments" : [
      {
        "name" : "就餐费用",
        "amount" : 40000,
        "description" : "就餐人均100元",
        "count" : 4
      }
    ],
    "post_discounts" : [
      {
        "name" : "满20减1元",
        "description" : "不与其他优惠叠加",
        "amount" : 100,
        "count" : 2
      }
    ],
    "total_amount" : 50000,
    "reason" : "用户投诉",
    "device" : {
      "start_device_id" : "HG123456",
      "end_device_id" : "HG123456",
      "materiel_no" : "example_materiel_no"
    }
  }'

```
