申请子商户商家转账授权
申请子商户商家转账授权 注:单个商户的接口频率限制为100次/s
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
sub_mchid | string | 二级商户号 |
out_apply_no | string | 商户申请单号 |
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();
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
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();
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
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();
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
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));
1
2
3
4
5
6
7
2
3
4
5
6
7
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));
1
2
3
4
5
6
7
2
3
4
5
6
7
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));
1
2
3
4
5
6
7
2
3
4
5
6
7
返回字典 | 类型 | 描述 |
---|---|---|
sub_mchid | string | 二级商户号 |
out_apply_no | string | 商户申请单号 |
state | string | 授权申请单状态INVITED | PASSED | REJECTED | EXPIRED 枚举值之一 |
accept_time | string | 授权申请受理时间 |
update_time | string | 最后一次状态变更时间 |
参阅 官方文档