申请二级商户商家转账授权
申请二级商户商家转账授权。
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
sub_mchid | string | 二级商户号 |
agreement_list | object[] | 签约协议列表 |
agreement_code | string | 协议编号 |
agreement_version | string | 协议版本号 |
sign_organization | string | 签约主体 |
sign_time | string | 签约时间 |
php
$instance->v3->ecommerce->mchTransfer->authorizations->postAsync([
'json' => [
'sub_mchid' => '1900001109',
'agreement_list' => [[
'agreement_code' => '1',
'agreement_version' => '20230101',
'sign_organization' => '示例有限责任公司',
'sign_time' => '2015-05-20T13:29:35.120+08:00',
],],
],
])
->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
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
php
$instance->chain('v3/ecommerce/mch-transfer/authorizations')->postAsync([
'json' => [
'sub_mchid' => '1900001109',
'agreement_list' => [[
'agreement_code' => '1',
'agreement_version' => '20230101',
'sign_organization' => '示例有限责任公司',
'sign_time' => '2015-05-20T13:29:35.120+08:00',
],],
],
])
->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
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
php
$instance['v3/ecommerce/mch-transfer/authorizations']->postAsync([
'json' => [
'sub_mchid' => '1900001109',
'agreement_list' => [[
'agreement_code' => '1',
'agreement_version' => '20230101',
'sign_organization' => '示例有限责任公司',
'sign_time' => '2015-05-20T13:29:35.120+08:00',
],],
],
])
->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
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
php
$response = $instance->v3->ecommerce->mchTransfer->authorizations->post([
'json' => [
'sub_mchid' => '1900001109',
'agreement_list' => [[
'agreement_code' => '1',
'agreement_version' => '20230101',
'sign_organization' => '示例有限责任公司',
'sign_time' => '2015-05-20T13:29:35.120+08:00',
],],
],
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
php
$response = $instance->chain('v3/ecommerce/mch-transfer/authorizations')->post([
'json' => [
'sub_mchid' => '1900001109',
'agreement_list' => [[
'agreement_code' => '1',
'agreement_version' => '20230101',
'sign_organization' => '示例有限责任公司',
'sign_time' => '2015-05-20T13:29:35.120+08:00',
],],
],
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
php
$response = $instance['v3/ecommerce/mch-transfer/authorizations']->post([
'json' => [
'sub_mchid' => '1900001109',
'agreement_list' => [[
'agreement_code' => '1',
'agreement_version' => '20230101',
'sign_organization' => '示例有限责任公司',
'sign_time' => '2015-05-20T13:29:35.120+08:00',
],],
],
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
返回字典 | 类型 | 描述 |
---|---|---|
sub_mchid | string | 二级商户号 |
authorization_state | string | 授权状态 |
accept_time | string | 授权申请受理时间 |
authorize_time | string | 授权时间 |
参阅 官方文档