从业机构修改微信支付分订单金额 
前置条件:服务订单状态为“进行中”且订单状态说明需为"商户完结(MCH_COMPLETE)"
| 请求参数 | 类型 | 描述 | 
|---|---|---|
| out_order_no | string | 商户服务订单号 | 
| json | object | 声明请求的 JSON数据结构 | 
| service_id | string | 服务ID | 
| sub_mchid | string | 子商户号 | 
| channel_id | string | 渠道商商户号 | 
| post_payments | object[] | 后付费项目 | 
| name | string | 付费名称 | 
| description | string | 付费说明 | 
| amount | integer | 付费金额 | 
| count | integer | 付费数量 | 
| post_discounts | object[] | 后付费商户优惠 | 
| name | string | 优惠名称 | 
| description | string | 优惠说明 | 
| amount | integer | 优惠金额 | 
| count | integer | 优惠数量 | 
| total_amount | integer | 总金额 | 
| reason | string | 修改原因 | 
php
$instance->v3->payscore->acquiringbank->serviceorder->_out_order_no_->modify->postAsync([
  'out_order_no' => '1234323JKHDFE1243252',
  'json' => [
    'service_id'     => '2002000000000558128851361561536',
    'sub_mchid'      => '1900000109',
    'channel_id'     => '1230000109',
    'post_payments'  => [[
      'name'        => '就餐费用',
      'description' => '就餐人均100元',
      'amount'      => 40000,
      'count'       => 4,
    ],],
    'post_discounts' => [[
      'name'        => '满20减1元',
      'description' => '不与其他优惠叠加',
      'amount'      => 100,
      'count'       => 2,
    ],],
    'total_amount'   => 50000,
    'reason'         => '用户投诉',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();php
$instance->chain('v3/payscore/acquiringbank/serviceorder/{out_order_no}/modify')->postAsync([
  'out_order_no' => '1234323JKHDFE1243252',
  'json' => [
    'service_id'     => '2002000000000558128851361561536',
    'sub_mchid'      => '1900000109',
    'channel_id'     => '1230000109',
    'post_payments'  => [[
      'name'        => '就餐费用',
      'description' => '就餐人均100元',
      'amount'      => 40000,
      'count'       => 4,
    ],],
    'post_discounts' => [[
      'name'        => '满20减1元',
      'description' => '不与其他优惠叠加',
      'amount'      => 100,
      'count'       => 2,
    ],],
    'total_amount'   => 50000,
    'reason'         => '用户投诉',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();php
$instance['v3/payscore/acquiringbank/serviceorder/{out_order_no}/modify']->postAsync([
  'out_order_no' => '1234323JKHDFE1243252',
  'json' => [
    'service_id'     => '2002000000000558128851361561536',
    'sub_mchid'      => '1900000109',
    'channel_id'     => '1230000109',
    'post_payments'  => [[
      'name'        => '就餐费用',
      'description' => '就餐人均100元',
      'amount'      => 40000,
      'count'       => 4,
    ],],
    'post_discounts' => [[
      'name'        => '满20减1元',
      'description' => '不与其他优惠叠加',
      'amount'      => 100,
      'count'       => 2,
    ],],
    'total_amount'   => 50000,
    'reason'         => '用户投诉',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();php
$response = $instance->v3->payscore->acquiringbank->serviceorder->_out_order_no_->modify->post([
  'out_order_no' => '1234323JKHDFE1243252',
  'json' => [
    'service_id'     => '2002000000000558128851361561536',
    'sub_mchid'      => '1900000109',
    'channel_id'     => '1230000109',
    'post_payments'  => [[
      'name'        => '就餐费用',
      'description' => '就餐人均100元',
      'amount'      => 40000,
      'count'       => 4,
    ],],
    'post_discounts' => [[
      'name'        => '满20减1元',
      'description' => '不与其他优惠叠加',
      'amount'      => 100,
      'count'       => 2,
    ],],
    'total_amount'   => 50000,
    'reason'         => '用户投诉',
  ],
]);
print_r($response->getStatusCode() === 204);php
$response = $instance->chain('v3/payscore/acquiringbank/serviceorder/{out_order_no}/modify')->post([
  'out_order_no' => '1234323JKHDFE1243252',
  'json' => [
    'service_id'     => '2002000000000558128851361561536',
    'sub_mchid'      => '1900000109',
    'channel_id'     => '1230000109',
    'post_payments'  => [[
      'name'        => '就餐费用',
      'description' => '就餐人均100元',
      'amount'      => 40000,
      'count'       => 4,
    ],],
    'post_discounts' => [[
      'name'        => '满20减1元',
      'description' => '不与其他优惠叠加',
      'amount'      => 100,
      'count'       => 2,
    ],],
    'total_amount'   => 50000,
    'reason'         => '用户投诉',
  ],
]);
print_r($response->getStatusCode() === 204);php
$response = $instance['v3/payscore/acquiringbank/serviceorder/{out_order_no}/modify']->post([
  'out_order_no' => '1234323JKHDFE1243252',
  'json' => [
    'service_id'     => '2002000000000558128851361561536',
    'sub_mchid'      => '1900000109',
    'channel_id'     => '1230000109',
    'post_payments'  => [[
      'name'        => '就餐费用',
      'description' => '就餐人均100元',
      'amount'      => 40000,
      'count'       => 4,
    ],],
    'post_discounts' => [[
      'name'        => '满20减1元',
      'description' => '不与其他优惠叠加',
      'amount'      => 100,
      'count'       => 2,
    ],],
    'total_amount'   => 50000,
    'reason'         => '用户投诉',
  ],
]);
print_r($response->getStatusCode() === 204);| 返回字典 | 类型 | 描述 | 
|---|---|---|
| 空字符串(无返回内容) | ||