Skip to content

从业机构登记微信支付分扣款信息

前置条件:服务订单状态为“进行中”且订单状态说明需为"商户完结(MCH_COMPLETE)"

请求参数类型描述
out_order_nostring商户服务订单号
jsonobject声明请求的JSON数据结构
service_idstring服务ID
appidstring服务商应用ID
sub_mchidstring子商户号
channel_idstring渠道商商户号
out_trade_nostring商户系统内部扣款单号。
php
$instance->v3->payscore->acquiringbank->serviceorder->_out_order_no_->registerdeductinfo->postAsync([
  'out_order_no' => '1234323JKHDFE1243252',
  'json' => [
    'service_id'   => '2002000000000558128851361561536',
    'appid'        => 'wxd678efh567hg6787',
    'sub_mchid'    => '1900000109',
    'channel_id'   => '1230000109',
    'out_trade_no' => '1234323JKHDFE1243252',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/payscore/acquiringbank/serviceorder/{out_order_no}/registerdeductinfo')->postAsync([
  'out_order_no' => '1234323JKHDFE1243252',
  'json' => [
    'service_id'   => '2002000000000558128851361561536',
    'appid'        => 'wxd678efh567hg6787',
    'sub_mchid'    => '1900000109',
    'channel_id'   => '1230000109',
    'out_trade_no' => '1234323JKHDFE1243252',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/payscore/acquiringbank/serviceorder/{out_order_no}/registerdeductinfo']->postAsync([
  'out_order_no' => '1234323JKHDFE1243252',
  'json' => [
    'service_id'   => '2002000000000558128851361561536',
    'appid'        => 'wxd678efh567hg6787',
    'sub_mchid'    => '1900000109',
    'channel_id'   => '1230000109',
    'out_trade_no' => '1234323JKHDFE1243252',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->payscore->acquiringbank->serviceorder->_out_order_no_->registerdeductinfo->post([
  'out_order_no' => '1234323JKHDFE1243252',
  'json' => [
    'service_id'   => '2002000000000558128851361561536',
    'appid'        => 'wxd678efh567hg6787',
    'sub_mchid'    => '1900000109',
    'channel_id'   => '1230000109',
    'out_trade_no' => '1234323JKHDFE1243252',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/payscore/acquiringbank/serviceorder/{out_order_no}/registerdeductinfo')->post([
  'out_order_no' => '1234323JKHDFE1243252',
  'json' => [
    'service_id'   => '2002000000000558128851361561536',
    'appid'        => 'wxd678efh567hg6787',
    'sub_mchid'    => '1900000109',
    'channel_id'   => '1230000109',
    'out_trade_no' => '1234323JKHDFE1243252',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/payscore/acquiringbank/serviceorder/{out_order_no}/registerdeductinfo']->post([
  'out_order_no' => '1234323JKHDFE1243252',
  'json' => [
    'service_id'   => '2002000000000558128851361561536',
    'appid'        => 'wxd678efh567hg6787',
    'sub_mchid'    => '1900000109',
    'channel_id'   => '1230000109',
    'out_trade_no' => '1234323JKHDFE1243252',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
descriptionstring商品或支付单简要描述

参阅 官方文档

Published on the GitHub by TheNorthMemory