创建H5支付域名修改申请单
商户可以通过该接口为自身和子商户发起H5支付域名修改申请。
请求参数 | 类型 | 描述 |
---|---|---|
base_uri | string | 声明接入点https://apihk.mch.weixin.qq.com/ (香港接入) |
json | object | 声明请求的JSON 数据结构 |
sub_mchid | string | 子商户号 |
domains | string[] | |
website_url | string | 子商户H5经营网址 |
website_business_page_pics | string[] | |
website_homepage_pics | string[] | |
website_state | string | 子商户经营网址状态 |
notify_url | string | 商户提供的审核结果回调接口 |
out_applyment_id | string | 商户申请单号 |
php
$instance->v3->global->merchant->h5->permission->domain->applications->postAsync([
'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
'json' => [
'sub_mchid' => '2491935631',
'domains' => ['string'],
'website_url' => 'https://qq.com',
'website_business_page_pics' => ['MediaId'],
'website_homepage_pics' => ['MediaId'],
'website_state' => 'HAS_LAUNCHED',
'notify_url' => 'https://pay.weixin.qq.com/wxpay/pay.action',
'out_applyment_id' => '123456',
],
])
->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
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
php
$instance->chain('v3/global/merchant/h5/permission/domain/applications')->postAsync([
'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
'json' => [
'sub_mchid' => '2491935631',
'domains' => ['string'],
'website_url' => 'https://qq.com',
'website_business_page_pics' => ['MediaId'],
'website_homepage_pics' => ['MediaId'],
'website_state' => 'HAS_LAUNCHED',
'notify_url' => 'https://pay.weixin.qq.com/wxpay/pay.action',
'out_applyment_id' => '123456',
],
])
->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
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
php
$instance['v3/global/merchant/h5/permission/domain/applications']->postAsync([
'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
'json' => [
'sub_mchid' => '2491935631',
'domains' => ['string'],
'website_url' => 'https://qq.com',
'website_business_page_pics' => ['MediaId'],
'website_homepage_pics' => ['MediaId'],
'website_state' => 'HAS_LAUNCHED',
'notify_url' => 'https://pay.weixin.qq.com/wxpay/pay.action',
'out_applyment_id' => '123456',
],
])
->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
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
php
$response = $instance->v3->global->merchant->h5->permission->domain->applications->post([
'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
'json' => [
'sub_mchid' => '2491935631',
'domains' => ['string'],
'website_url' => 'https://qq.com',
'website_business_page_pics' => ['MediaId'],
'website_homepage_pics' => ['MediaId'],
'website_state' => 'HAS_LAUNCHED',
'notify_url' => 'https://pay.weixin.qq.com/wxpay/pay.action',
'out_applyment_id' => '123456',
],
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
php
$response = $instance->chain('v3/global/merchant/h5/permission/domain/applications')->post([
'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
'json' => [
'sub_mchid' => '2491935631',
'domains' => ['string'],
'website_url' => 'https://qq.com',
'website_business_page_pics' => ['MediaId'],
'website_homepage_pics' => ['MediaId'],
'website_state' => 'HAS_LAUNCHED',
'notify_url' => 'https://pay.weixin.qq.com/wxpay/pay.action',
'out_applyment_id' => '123456',
],
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
php
$response = $instance['v3/global/merchant/h5/permission/domain/applications']->post([
'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
'json' => [
'sub_mchid' => '2491935631',
'domains' => ['string'],
'website_url' => 'https://qq.com',
'website_business_page_pics' => ['MediaId'],
'website_homepage_pics' => ['MediaId'],
'website_state' => 'HAS_LAUNCHED',
'notify_url' => 'https://pay.weixin.qq.com/wxpay/pay.action',
'out_applyment_id' => '123456',
],
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
返回字典 | 类型 | 描述 |
---|---|---|
sub_mchid | string | 子商户号 |
website_state | string | 子商户经营网址状态 |
domains | string[] | |
webiste_url | string | 子商户H5经营网址 |
website_business_page_pics | string[] | |
website_homepage_pics | string[] | |
applyment_id | integer | 申请单号 |
audit_reject_detail | string | 驳回原因 |
applyment_state | string | 申请单状态 |
notify_url | string | 商户提供的审核结果回调接口 |
out_applyment_id | string | 商户申请单号 |
参阅 官方文档