Skip to content

创建H5支付域名修改申请单

商户可以通过该接口为自身和子商户发起H5支付域名修改申请。

请求参数类型描述
base_uristring声明接入点https://apihk.mch.weixin.qq.com/(香港接入)
jsonobject声明请求的JSON数据结构
sub_mchidstring子商户号
domainsstring[]H5支付域名
website_urlstring子商户H5经营网址
website_business_page_picsstring[]经营网址商业页面截图
website_homepage_picsstring[]经营网址首页截图
website_statestring子商户经营网址状态
notify_urlstring商户提供的审核结果回调接口
out_applyment_idstring商户申请单号
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();
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();
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();
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));
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));
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));
返回字典类型描述
sub_mchidstring子商户号
website_statestring子商户经营网址状态
domainsstring[]H5支付域名
webiste_urlstring子商户H5经营网址
website_business_page_picsstring[]经营网址商业页面截图
website_homepage_picsstring[]经营网址首页截图
applyment_idinteger申请单号
audit_reject_detailstring驳回原因
applyment_statestring申请单状态
notify_urlstring商户提供的审核结果回调接口
out_applyment_idstring商户申请单号

参阅 官方文档

Published on the GitHub by TheNorthMemory