Skip to content

申请子商户商家转账授权

申请子商户商家转账授权 注:单个商户的接口频率限制为100次/s

请求参数类型描述
jsonobject声明请求的JSON数据结构
sub_mchidstring二级商户号
out_apply_nostring商户申请单号
php
$instance->v3->fundApp->mchTransfer->partner->subMchAuthorizations->postAsync([
  'json' => [
    'sub_mchid'    => '1900001121',
    'out_apply_no' => 'apply2020042013',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/fund-app/mch-transfer/partner/sub-mch-authorizations')->postAsync([
  'json' => [
    'sub_mchid'    => '1900001121',
    'out_apply_no' => 'apply2020042013',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/fund-app/mch-transfer/partner/sub-mch-authorizations']->postAsync([
  'json' => [
    'sub_mchid'    => '1900001121',
    'out_apply_no' => 'apply2020042013',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->fundApp->mchTransfer->partner->subMchAuthorizations->post([
  'json' => [
    'sub_mchid'    => '1900001121',
    'out_apply_no' => 'apply2020042013',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/fund-app/mch-transfer/partner/sub-mch-authorizations')->post([
  'json' => [
    'sub_mchid'    => '1900001121',
    'out_apply_no' => 'apply2020042013',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/fund-app/mch-transfer/partner/sub-mch-authorizations']->post([
  'json' => [
    'sub_mchid'    => '1900001121',
    'out_apply_no' => 'apply2020042013',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
sub_mchidstring二级商户号
out_apply_nostring商户申请单号
statestring授权申请单状态
INVITED | PASSED | REJECTED | EXPIRED 枚举值之一
accept_timestring授权申请受理时间
update_timestring最后一次状态变更时间

参阅 官方文档

Published on the GitHub by TheNorthMemory