Skip to content

从业机构查询微信支付分扣款信息

前置条件:服务订单状态为“已完成”或者“进行中”且商户已经完成登记扣款信息

请求参数类型描述
queryobject声明请求的查询参数
service_idstring服务ID
appidstring从业机构申请的公众号或移动应用AppID
sub_mchidstring子商户号
sub_appidstring子商户申请的公众号或移动应用AppID
channel_idstring渠道商商户号
out_order_nostring商户服务订单号
php
$instance->v3->payscore->acquiringbank->serviceorder->deduction->getAsync([
  'query' => [
    'service_id'   => '2002000000000558128851361561536',
    'appid'        => '',
    'sub_mchid'    => '1900000109',
    'sub_appid'    => '',
    'channel_id'   => '1230000109',
    'out_order_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/deduction')->getAsync([
  'query' => [
    'service_id'   => '2002000000000558128851361561536',
    'appid'        => '',
    'sub_mchid'    => '1900000109',
    'sub_appid'    => '',
    'channel_id'   => '1230000109',
    'out_order_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/deduction']->getAsync([
  'query' => [
    'service_id'   => '2002000000000558128851361561536',
    'appid'        => '',
    'sub_mchid'    => '1900000109',
    'sub_appid'    => '',
    'channel_id'   => '1230000109',
    'out_order_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->deduction->get([
  'query' => [
    'service_id'   => '2002000000000558128851361561536',
    'appid'        => '',
    'sub_mchid'    => '1900000109',
    'sub_appid'    => '',
    'channel_id'   => '1230000109',
    'out_order_no' => '1234323JKHDFE1243252',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/payscore/acquiringbank/serviceorder/deduction')->get([
  'query' => [
    'service_id'   => '2002000000000558128851361561536',
    'appid'        => '',
    'sub_mchid'    => '1900000109',
    'sub_appid'    => '',
    'channel_id'   => '1230000109',
    'out_order_no' => '1234323JKHDFE1243252',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/payscore/acquiringbank/serviceorder/deduction']->get([
  'query' => [
    'service_id'   => '2002000000000558128851361561536',
    'appid'        => '',
    'sub_mchid'    => '1900000109',
    'sub_appid'    => '',
    'channel_id'   => '1230000109',
    'out_order_no' => '1234323JKHDFE1243252',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
descriptionstring商品或支付单简要描述。
out_trade_nostring商户扣款单号

参阅 官方文档

Published on the GitHub by TheNorthMemory