修改子商户
用于机构子商户创建成功后,接口提供子商户信息修改。
请求参数 | 类型 | 描述 |
---|---|---|
modifyinstitutionsub | string | 固定值modifyInstitutionsub |
security | true | 声明加载商户API证书 |
nonceless | true | 声明请求的XML 无随机字符串参数 |
xml | object | 声明请求的XML 数据结构 |
app_id | string | 机构appid |
mch_id | string | 机构商户号 |
sub_mch_id | string | 子商户号 |
merchant_name | string | 子商户全称 |
channel_id | string | 渠道编号 |
merchant_shortname | string | 子商户简称 |
merchant_country_code | string | 注册国家或区域 |
merchant_type | string | 商户类型 |
mcc | string | MCC码 |
registration_certificate_number | string | 公司注册文件编号 |
registration_certificate_date | string | 公司注册文件过期时间 |
registration_certificate_copy | string | 公司注册文件照片 |
business_type | string | 业务类型 |
app_download | string | APP下载链接 |
business_website | string | 业务网站 |
office_account | string | 公众号 |
mini_program | string | 小程序 |
store_address | string | 门店地址 |
store_photos | string | 门店照片 |
media_id | string[] | 门店照片列表 |
director_name | string | 董事姓名 |
director_id_number | string | 董事证件号码 |
principal_name | string | 负责人姓名 |
principal_id_number | string | 负责人证件号 |
office_phone | string | 公司电话 |
contact_name | string | 联系人姓名 |
contact_phone | string | 联系人电话 |
contact_email | string | 联系人邮箱 |
settlement_bank_number | string | 子商户结算银行账户 |
apply_h5_payment | string | 是否申请H5支付权限YES | NO 枚举值之一 |
h5_website_url | string | H5经营网址 |
h5_domains | string | H5支付域名 |
domain | string[] | 域名列表 |
php
$instance->v2->secapi->mch->_modifyinstitutionsub_->postAsync([
'modifyinstitutionsub' => 'modifyInstitutionsub', // 固定参数(URI上有大写字符)
'security' => true,
'nonceless' => true,
'xml' => [
'app_id' => 'wx8888888888888888',
'mch_id' => '3200000001',
'sub_mch_id' => '12345678',
'merchant_name' => 'Merchantname',
'channel_id' => '101',
'merchant_shortname' => 'Merchantshortname',
'merchant_country_code' => '344',
'merchant_type' => 'ENTERPRISE',
'mcc' => '4214',
'registration_certificate_number' => '5555-8888',
'registration_certificate_date' => '2020-10-16',
'registration_certificate_copy' => 'aoGhHuxkrIaqB4GzPCeo963zXKcO2hDVD8AjXIpgrj',
'business_type' => 'BOTH',
'app_download' => 'https://download.qq.com',
'business_website' => 'https://www.qq.com',
'office_account' => 'wx8888888888888888',
'mini_program' => 'wx8888888888888888',
'store_address' => '广东省深圳市南山区科技中一道10000号',
'store_photos' => '[Media_id1,Media_id2,Media_id3]',
'director_name' => 'BobZhang',
'director_id_number' => '5555—8888',
'principal_name' => 'BobZhang',
'principal_id_number' => '5555—8888',
'office_phone' => '075586010000',
'contact_name' => '李先生',
'contact_phone' => '075586010000',
'contact_email' => 'test@test.com',
'settlement_bank_number' => '555588889999',
'apply_h5_payment' => 'YES',
'h5_website_url' => 'https://qq.com',
'h5_domains' => '["www.qq.com","www.weixin.com"]',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance->chain('v2/secapi/mch/{modifyinstitutionsub}')->postAsync([
'modifyinstitutionsub' => 'modifyInstitutionsub', // 固定参数(URI上有大写字符)
'security' => true,
'nonceless' => true,
'xml' => [
'app_id' => 'wx8888888888888888',
'mch_id' => '3200000001',
'sub_mch_id' => '12345678',
'merchant_name' => 'Merchantname',
'channel_id' => '101',
'merchant_shortname' => 'Merchantshortname',
'merchant_country_code' => '344',
'merchant_type' => 'ENTERPRISE',
'mcc' => '4214',
'registration_certificate_number' => '5555-8888',
'registration_certificate_date' => '2020-10-16',
'registration_certificate_copy' => 'aoGhHuxkrIaqB4GzPCeo963zXKcO2hDVD8AjXIpgrj',
'business_type' => 'BOTH',
'app_download' => 'https://download.qq.com',
'business_website' => 'https://www.qq.com',
'office_account' => 'wx8888888888888888',
'mini_program' => 'wx8888888888888888',
'store_address' => '广东省深圳市南山区科技中一道10000号',
'store_photos' => '[Media_id1,Media_id2,Media_id3]',
'director_name' => 'BobZhang',
'director_id_number' => '5555—8888',
'principal_name' => 'BobZhang',
'principal_id_number' => '5555—8888',
'office_phone' => '075586010000',
'contact_name' => '李先生',
'contact_phone' => '075586010000',
'contact_email' => 'test@test.com',
'settlement_bank_number' => '555588889999',
'apply_h5_payment' => 'YES',
'h5_website_url' => 'https://qq.com',
'h5_domains' => '["www.qq.com","www.weixin.com"]',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance['v2/secapi/mch/{modifyinstitutionsub}']->postAsync([
'modifyinstitutionsub' => 'modifyInstitutionsub', // 固定参数(URI上有大写字符)
'security' => true,
'nonceless' => true,
'xml' => [
'app_id' => 'wx8888888888888888',
'mch_id' => '3200000001',
'sub_mch_id' => '12345678',
'merchant_name' => 'Merchantname',
'channel_id' => '101',
'merchant_shortname' => 'Merchantshortname',
'merchant_country_code' => '344',
'merchant_type' => 'ENTERPRISE',
'mcc' => '4214',
'registration_certificate_number' => '5555-8888',
'registration_certificate_date' => '2020-10-16',
'registration_certificate_copy' => 'aoGhHuxkrIaqB4GzPCeo963zXKcO2hDVD8AjXIpgrj',
'business_type' => 'BOTH',
'app_download' => 'https://download.qq.com',
'business_website' => 'https://www.qq.com',
'office_account' => 'wx8888888888888888',
'mini_program' => 'wx8888888888888888',
'store_address' => '广东省深圳市南山区科技中一道10000号',
'store_photos' => '[Media_id1,Media_id2,Media_id3]',
'director_name' => 'BobZhang',
'director_id_number' => '5555—8888',
'principal_name' => 'BobZhang',
'principal_id_number' => '5555—8888',
'office_phone' => '075586010000',
'contact_name' => '李先生',
'contact_phone' => '075586010000',
'contact_email' => 'test@test.com',
'settlement_bank_number' => '555588889999',
'apply_h5_payment' => 'YES',
'h5_website_url' => 'https://qq.com',
'h5_domains' => '["www.qq.com","www.weixin.com"]',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$response = $instance->v2->secapi->mch->_modifyinstitutionsub_->post([
'modifyinstitutionsub' => 'modifyInstitutionsub', // 固定参数(URI上有大写字符)
'security' => true,
'nonceless' => true,
'xml' => [
'app_id' => 'wx8888888888888888',
'mch_id' => '3200000001',
'sub_mch_id' => '12345678',
'merchant_name' => 'Merchantname',
'channel_id' => '101',
'merchant_shortname' => 'Merchantshortname',
'merchant_country_code' => '344',
'merchant_type' => 'ENTERPRISE',
'mcc' => '4214',
'registration_certificate_number' => '5555-8888',
'registration_certificate_date' => '2020-10-16',
'registration_certificate_copy' => 'aoGhHuxkrIaqB4GzPCeo963zXKcO2hDVD8AjXIpgrj',
'business_type' => 'BOTH',
'app_download' => 'https://download.qq.com',
'business_website' => 'https://www.qq.com',
'office_account' => 'wx8888888888888888',
'mini_program' => 'wx8888888888888888',
'store_address' => '广东省深圳市南山区科技中一道10000号',
'store_photos' => '[Media_id1,Media_id2,Media_id3]',
'director_name' => 'BobZhang',
'director_id_number' => '5555—8888',
'principal_name' => 'BobZhang',
'principal_id_number' => '5555—8888',
'office_phone' => '075586010000',
'contact_name' => '李先生',
'contact_phone' => '075586010000',
'contact_email' => 'test@test.com',
'settlement_bank_number' => '555588889999',
'apply_h5_payment' => 'YES',
'h5_website_url' => 'https://qq.com',
'h5_domains' => '["www.qq.com","www.weixin.com"]',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance->chain('v2/secapi/mch/{modifyinstitutionsub}')->post([
'modifyinstitutionsub' => 'modifyInstitutionsub', // 固定参数(URI上有大写字符)
'security' => true,
'nonceless' => true,
'xml' => [
'app_id' => 'wx8888888888888888',
'mch_id' => '3200000001',
'sub_mch_id' => '12345678',
'merchant_name' => 'Merchantname',
'channel_id' => '101',
'merchant_shortname' => 'Merchantshortname',
'merchant_country_code' => '344',
'merchant_type' => 'ENTERPRISE',
'mcc' => '4214',
'registration_certificate_number' => '5555-8888',
'registration_certificate_date' => '2020-10-16',
'registration_certificate_copy' => 'aoGhHuxkrIaqB4GzPCeo963zXKcO2hDVD8AjXIpgrj',
'business_type' => 'BOTH',
'app_download' => 'https://download.qq.com',
'business_website' => 'https://www.qq.com',
'office_account' => 'wx8888888888888888',
'mini_program' => 'wx8888888888888888',
'store_address' => '广东省深圳市南山区科技中一道10000号',
'store_photos' => '[Media_id1,Media_id2,Media_id3]',
'director_name' => 'BobZhang',
'director_id_number' => '5555—8888',
'principal_name' => 'BobZhang',
'principal_id_number' => '5555—8888',
'office_phone' => '075586010000',
'contact_name' => '李先生',
'contact_phone' => '075586010000',
'contact_email' => 'test@test.com',
'settlement_bank_number' => '555588889999',
'apply_h5_payment' => 'YES',
'h5_website_url' => 'https://qq.com',
'h5_domains' => '["www.qq.com","www.weixin.com"]',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance['v2/secapi/mch/{modifyinstitutionsub}']->post([
'modifyinstitutionsub' => 'modifyInstitutionsub', // 固定参数(URI上有大写字符)
'security' => true,
'nonceless' => true,
'xml' => [
'app_id' => 'wx8888888888888888',
'mch_id' => '3200000001',
'sub_mch_id' => '12345678',
'merchant_name' => 'Merchantname',
'channel_id' => '101',
'merchant_shortname' => 'Merchantshortname',
'merchant_country_code' => '344',
'merchant_type' => 'ENTERPRISE',
'mcc' => '4214',
'registration_certificate_number' => '5555-8888',
'registration_certificate_date' => '2020-10-16',
'registration_certificate_copy' => 'aoGhHuxkrIaqB4GzPCeo963zXKcO2hDVD8AjXIpgrj',
'business_type' => 'BOTH',
'app_download' => 'https://download.qq.com',
'business_website' => 'https://www.qq.com',
'office_account' => 'wx8888888888888888',
'mini_program' => 'wx8888888888888888',
'store_address' => '广东省深圳市南山区科技中一道10000号',
'store_photos' => '[Media_id1,Media_id2,Media_id3]',
'director_name' => 'BobZhang',
'director_id_number' => '5555—8888',
'principal_name' => 'BobZhang',
'principal_id_number' => '5555—8888',
'office_phone' => '075586010000',
'contact_name' => '李先生',
'contact_phone' => '075586010000',
'contact_email' => 'test@test.com',
'settlement_bank_number' => '555588889999',
'apply_h5_payment' => 'YES',
'h5_website_url' => 'https://qq.com',
'h5_domains' => '["www.qq.com","www.weixin.com"]',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
返回字典 | 类型 | 描述 |
---|---|---|
return_code | string | 返回状态码SUCCESS | FAIL 枚举值之一 |
return_msg | string | 返回信息 |
result_code | string | 业务返回码SUCCESS | FAIL 枚举值之一 |
err_code | string | 错误编码 |
err_code_des | string | 错误描述 |
sub_mch_id | string | 子商户号 |
sign | string | 签名 |
verification_status | string | 验证状态 |
h5_authorization_state | string | H5支付权限状态APPROVED | UNAUTHORIZED | UNDER_REVIEW | REJECTED | UNDER_PUNISHMENT | APPLICATION_FAILED 枚举值之一 |
参阅 官方文档