子商户进件及进件信息修改(融合钱包)(可用版本)
子商户进件(融合钱包)
机构提交子商户资料,微信支付系统会为每个子商户创建子商户号。
🔰
本接口服务已于 2022.09.08
(北京时间)发布新版,新接口见这里,此文档仅做留存参考。
请求参数 | 类型 | 描述 |
---|---|---|
base_uri | string | 声明接入点https://api.mch.weixin.qq.com/hk/ (国内接入) |
json | object | 声明请求的JSON 数据结构 |
sp_appid | string | 机构appid |
sp_mchid | string | 机构商户号 |
name | string | 子商户全称 |
shortname | string | 子商户简称 |
office_phone | string | 公司电话 |
contact | object | 联系人信息 |
name | string | 联系人名称 |
phone | string | 联系人电话 |
string | 联系人邮箱 | |
business_category | integer | 类目 |
channel_id | string | 渠道号 |
merchant_country_code | string | 注册国家或区域 |
merchant_type | string | 商户类型ENTERPRISE | INDIVIDUAL 枚举值之一 |
registration_certificate_number | string | 公司注册文件编号 |
registration_certificate_date | string | 公司注册文件过期时间 |
registration_certificate_copy | string | 公司注册文件照片 |
settlement_bank_number | string | 子商户银行结算账户信息 |
business | object | 业务信息 |
business_type | string | 业务类型ONLINE | OFFLINE | BOTH 枚举值之一 |
app_download | string | APP下载链接 |
website | string | 业务网站 |
office_account | string | 公众号 |
mini_program | string | 小程序 |
store_address | string | 门店地址 |
store_photos | string | 门店照片JSON 格式字符串 |
media_id | string[] | 媒体文件MediaId列表 |
mcc | string | MCC码 |
director | object | 董事信息 |
name | string | 董事姓名 |
number | string | 董事证件号 |
principal | object | 负责人信息 |
name | string | 负责人姓名 |
number | string | 负责人证件号 |
headers | object | 声明请求的头参数 |
Idempotency-Key | string | 由商户侧生成的唯一key,用来标识多次重试是否为同一请求 |
Wechatpay-Serial | string | 平台公钥ID/平台公钥证书序列号 |
php
$instance->v3->merchants->postAsync([
'base_uri' => 'https://api.mch.weixin.qq.com/hk/', // 接入点(国内接入)
'json' => [
'sp_appid' => 'wx8888888888888888',
'sp_mchid' => '3200000001',
'name' => 'Merchant name',
'shortname' => 'Merchant shortname',
'office_phone' => '075586010000',
'contact' => [
'name' => '李先生',
'phone' => '075586010000',
'email' => 'test@test.com',
],
'business_category' => 644,
'channel_id' => '3200000001',
'merchant_country_code' => '344',
'merchant_type' => 'ENTERPRISE',
'registration_certificate_number' => '5555-8888',
'registration_certificate_date' => '2020-10-16',
'registration_certificate_copy' => 'w7yQFawBtja5uEdm_aoGhHuxkrIaqB4GzPCeo963zXKcO2hDVD8AjXIpgrj-x95m5iclsanHYauUt1__DsWXok2NqRliv2SDL42QoEmHIPs',
'settlement_bank_number' => '555588889999',
'business' => [
'business_type' => 'BOTH',
'app_download' => 'https://download.qq.com',
'website' => 'https://www.qq.com',
'office_account' => 'wx8888888888888888',
'mini_program' => 'wx8888888888888888',
'store_address' => '10F World Finance Centre (South Office), 11 Canton Road, Tsim Sha Tsui, Hong Kong',
'store_photos' => \json_encode([
'Media_id1',
'Media_id2',
'Media_id3',
]),
'mcc' => '4214',
],
'director' => [
'name' => 'Bob',
'number' => '5555-8888',
],
'principal' => [
'name' => 'Bob',
'number' => '5555-8888',
],
],
'headers' => [
'Idempotency-Key' => 'GzPCeo963zXKcO2hDVD8AjXIpgrj',
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/merchants')->postAsync([
'base_uri' => 'https://api.mch.weixin.qq.com/hk/', // 接入点(国内接入)
'json' => [
'sp_appid' => 'wx8888888888888888',
'sp_mchid' => '3200000001',
'name' => 'Merchant name',
'shortname' => 'Merchant shortname',
'office_phone' => '075586010000',
'contact' => [
'name' => '李先生',
'phone' => '075586010000',
'email' => 'test@test.com',
],
'business_category' => 644,
'channel_id' => '3200000001',
'merchant_country_code' => '344',
'merchant_type' => 'ENTERPRISE',
'registration_certificate_number' => '5555-8888',
'registration_certificate_date' => '2020-10-16',
'registration_certificate_copy' => 'w7yQFawBtja5uEdm_aoGhHuxkrIaqB4GzPCeo963zXKcO2hDVD8AjXIpgrj-x95m5iclsanHYauUt1__DsWXok2NqRliv2SDL42QoEmHIPs',
'settlement_bank_number' => '555588889999',
'business' => [
'business_type' => 'BOTH',
'app_download' => 'https://download.qq.com',
'website' => 'https://www.qq.com',
'office_account' => 'wx8888888888888888',
'mini_program' => 'wx8888888888888888',
'store_address' => '10F World Finance Centre (South Office), 11 Canton Road, Tsim Sha Tsui, Hong Kong',
'store_photos' => \json_encode([
'Media_id1',
'Media_id2',
'Media_id3',
]),
'mcc' => '4214',
],
'director' => [
'name' => 'Bob',
'number' => '5555-8888',
],
'principal' => [
'name' => 'Bob',
'number' => '5555-8888',
],
],
'headers' => [
'Idempotency-Key' => 'GzPCeo963zXKcO2hDVD8AjXIpgrj',
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/merchants']->postAsync([
'base_uri' => 'https://api.mch.weixin.qq.com/hk/', // 接入点(国内接入)
'json' => [
'sp_appid' => 'wx8888888888888888',
'sp_mchid' => '3200000001',
'name' => 'Merchant name',
'shortname' => 'Merchant shortname',
'office_phone' => '075586010000',
'contact' => [
'name' => '李先生',
'phone' => '075586010000',
'email' => 'test@test.com',
],
'business_category' => 644,
'channel_id' => '3200000001',
'merchant_country_code' => '344',
'merchant_type' => 'ENTERPRISE',
'registration_certificate_number' => '5555-8888',
'registration_certificate_date' => '2020-10-16',
'registration_certificate_copy' => 'w7yQFawBtja5uEdm_aoGhHuxkrIaqB4GzPCeo963zXKcO2hDVD8AjXIpgrj-x95m5iclsanHYauUt1__DsWXok2NqRliv2SDL42QoEmHIPs',
'settlement_bank_number' => '555588889999',
'business' => [
'business_type' => 'BOTH',
'app_download' => 'https://download.qq.com',
'website' => 'https://www.qq.com',
'office_account' => 'wx8888888888888888',
'mini_program' => 'wx8888888888888888',
'store_address' => '10F World Finance Centre (South Office), 11 Canton Road, Tsim Sha Tsui, Hong Kong',
'store_photos' => \json_encode([
'Media_id1',
'Media_id2',
'Media_id3',
]),
'mcc' => '4214',
],
'director' => [
'name' => 'Bob',
'number' => '5555-8888',
],
'principal' => [
'name' => 'Bob',
'number' => '5555-8888',
],
],
'headers' => [
'Idempotency-Key' => 'GzPCeo963zXKcO2hDVD8AjXIpgrj',
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->merchants->post([
'base_uri' => 'https://api.mch.weixin.qq.com/hk/', // 接入点(国内接入)
'json' => [
'sp_appid' => 'wx8888888888888888',
'sp_mchid' => '3200000001',
'name' => 'Merchant name',
'shortname' => 'Merchant shortname',
'office_phone' => '075586010000',
'contact' => [
'name' => '李先生',
'phone' => '075586010000',
'email' => 'test@test.com',
],
'business_category' => 644,
'channel_id' => '3200000001',
'merchant_country_code' => '344',
'merchant_type' => 'ENTERPRISE',
'registration_certificate_number' => '5555-8888',
'registration_certificate_date' => '2020-10-16',
'registration_certificate_copy' => 'w7yQFawBtja5uEdm_aoGhHuxkrIaqB4GzPCeo963zXKcO2hDVD8AjXIpgrj-x95m5iclsanHYauUt1__DsWXok2NqRliv2SDL42QoEmHIPs',
'settlement_bank_number' => '555588889999',
'business' => [
'business_type' => 'BOTH',
'app_download' => 'https://download.qq.com',
'website' => 'https://www.qq.com',
'office_account' => 'wx8888888888888888',
'mini_program' => 'wx8888888888888888',
'store_address' => '10F World Finance Centre (South Office), 11 Canton Road, Tsim Sha Tsui, Hong Kong',
'store_photos' => \json_encode([
'Media_id1',
'Media_id2',
'Media_id3',
]),
'mcc' => '4214',
],
'director' => [
'name' => 'Bob',
'number' => '5555-8888',
],
'principal' => [
'name' => 'Bob',
'number' => '5555-8888',
],
],
'headers' => [
'Idempotency-Key' => 'GzPCeo963zXKcO2hDVD8AjXIpgrj',
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/merchants')->post([
'base_uri' => 'https://api.mch.weixin.qq.com/hk/', // 接入点(国内接入)
'json' => [
'sp_appid' => 'wx8888888888888888',
'sp_mchid' => '3200000001',
'name' => 'Merchant name',
'shortname' => 'Merchant shortname',
'office_phone' => '075586010000',
'contact' => [
'name' => '李先生',
'phone' => '075586010000',
'email' => 'test@test.com',
],
'business_category' => 644,
'channel_id' => '3200000001',
'merchant_country_code' => '344',
'merchant_type' => 'ENTERPRISE',
'registration_certificate_number' => '5555-8888',
'registration_certificate_date' => '2020-10-16',
'registration_certificate_copy' => 'w7yQFawBtja5uEdm_aoGhHuxkrIaqB4GzPCeo963zXKcO2hDVD8AjXIpgrj-x95m5iclsanHYauUt1__DsWXok2NqRliv2SDL42QoEmHIPs',
'settlement_bank_number' => '555588889999',
'business' => [
'business_type' => 'BOTH',
'app_download' => 'https://download.qq.com',
'website' => 'https://www.qq.com',
'office_account' => 'wx8888888888888888',
'mini_program' => 'wx8888888888888888',
'store_address' => '10F World Finance Centre (South Office), 11 Canton Road, Tsim Sha Tsui, Hong Kong',
'store_photos' => \json_encode([
'Media_id1',
'Media_id2',
'Media_id3',
]),
'mcc' => '4214',
],
'director' => [
'name' => 'Bob',
'number' => '5555-8888',
],
'principal' => [
'name' => 'Bob',
'number' => '5555-8888',
],
],
'headers' => [
'Idempotency-Key' => 'GzPCeo963zXKcO2hDVD8AjXIpgrj',
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/merchants']->post([
'base_uri' => 'https://api.mch.weixin.qq.com/hk/', // 接入点(国内接入)
'json' => [
'sp_appid' => 'wx8888888888888888',
'sp_mchid' => '3200000001',
'name' => 'Merchant name',
'shortname' => 'Merchant shortname',
'office_phone' => '075586010000',
'contact' => [
'name' => '李先生',
'phone' => '075586010000',
'email' => 'test@test.com',
],
'business_category' => 644,
'channel_id' => '3200000001',
'merchant_country_code' => '344',
'merchant_type' => 'ENTERPRISE',
'registration_certificate_number' => '5555-8888',
'registration_certificate_date' => '2020-10-16',
'registration_certificate_copy' => 'w7yQFawBtja5uEdm_aoGhHuxkrIaqB4GzPCeo963zXKcO2hDVD8AjXIpgrj-x95m5iclsanHYauUt1__DsWXok2NqRliv2SDL42QoEmHIPs',
'settlement_bank_number' => '555588889999',
'business' => [
'business_type' => 'BOTH',
'app_download' => 'https://download.qq.com',
'website' => 'https://www.qq.com',
'office_account' => 'wx8888888888888888',
'mini_program' => 'wx8888888888888888',
'store_address' => '10F World Finance Centre (South Office), 11 Canton Road, Tsim Sha Tsui, Hong Kong',
'store_photos' => \json_encode([
'Media_id1',
'Media_id2',
'Media_id3',
]),
'mcc' => '4214',
],
'director' => [
'name' => 'Bob',
'number' => '5555-8888',
],
'principal' => [
'name' => 'Bob',
'number' => '5555-8888',
],
],
'headers' => [
'Idempotency-Key' => 'GzPCeo963zXKcO2hDVD8AjXIpgrj',
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
sub_mchid | string | 子商户号 |
verification_status | string | 验证状态Under Review | Approved 枚举值之一 |
description | string | 验证状态描述 |
参阅 官方文档
修改子商户(融合钱包)
用于机构子商户创建成功后,接口提供子商户信息修改
🔰
本接口服务已于 2022.09.08
(北京时间)发布新版,新接口见这里,此文档仅做留存参考。
请求参数 | 类型 | 描述 |
---|---|---|
base_uri | string | 声明接入点https://api.mch.weixin.qq.com/hk/ (国内接入) |
json | object | 声明请求的JSON 数据结构 |
sp_appid | string | 机构appid |
sp_mchid | string | 机构商户号 |
sub_mchid | string | 子商户号 |
name | string | 子商户全称 |
shortname | string | 子商户简称 |
office_phone | string | 公司电话 |
contact | object | 联系人信息 |
name | string | 联系人名称 |
phone | string | 联系人电话 |
string | 联系人邮箱 | |
business_category | integer | 类目 |
channel_id | string | 渠道号 |
merchant_country_code | string | 注册国家或区域 |
merchant_type | string | 商户类型ENTERPRISE | INDIVIDUAL 枚举值之一 |
registration_certificate_number | string | 公司注册文件编号 |
registration_certificate_date | string | 公司注册文件过期时间 |
registration_certificate_copy | string | 公司注册文件照片 |
settlement_bank_number | string | 子商户银行结算账户信息 |
business | object | 业务信息 |
business_type | string | 业务类型ONLINE | OFFLINE | BOTH 枚举值之一 |
app_download | string | APP下载链接 |
website | string | 业务网站 |
office_account | string | 公众号 |
mini_program | string | 小程序 |
store_address | string | 门店地址 |
store_photos | string | 门店照片JSON 格式字符串 |
media_id | string[] | 媒体文件MediaId列表 |
mcc | string | MCC码 |
director | object | 董事信息 |
name | string | 董事姓名 |
number | string | 董事证件号 |
principal | object | 负责人信息 |
name | string | 负责人姓名 |
number | string | 负责人证件号 |
headers | object | 声明请求的头参数 |
Wechatpay-Serial | string | 平台公钥ID/平台公钥证书序列号 |
php
$instance->v3->merchants->putAsync([
'base_uri' => 'https://api.mch.weixin.qq.com/hk/', // 接入点(国内接入)
'json' => [
'sp_appid' => 'wx8888888888888888',
'sp_mchid' => '3200000001',
'sub_mchid' => '20000100',
'name' => 'Merchant name',
'shortname' => 'Merchant shortname',
'office_phone' => '075586010000',
'contact' => [
'name' => '李先生',
'phone' => '075586010000',
'email' => 'test@test.com',
],
'business_category' => 644,
'channel_id' => '3200000001',
'merchant_country_code' => '344',
'merchant_type' => 'ENTERPRISE',
'registration_certificate_number' => '5555-8888',
'registration_certificate_date' => '2020-10-16',
'registration_certificate_copy' => 'w7yQFawBtja5uEdm_aoGhHuxkrIaqB4GzPCeo963zXKcO2hDVD8AjXIpgrj-x95m5iclsanHYauUt1__DsWXok2NqRliv2SDL42QoEmHIPs',
'settlement_bank_number' => '555588889999',
'business' => [
'business_type' => 'BOTH',
'app_download' => 'https://download.qq.com',
'website' => 'https://www.qq.com',
'office_account' => 'wx8888888888888888',
'mini_program' => 'wx8888888888888888',
'store_address' => '10F World Finance Centre (South Office), 11 Canton Road, Tsim Sha Tsui, Hong Kong',
'store_photos' => \json_encode([
'Media_id1',
'Media_id2',
'Media_id3',
]),
'mcc' => '4214',
],
'director' => [
'name' => 'Bob',
'number' => '5555-8888',
],
'principal' => [
'name' => 'Bob',
'number' => '5555-8888',
],
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/merchants')->putAsync([
'base_uri' => 'https://api.mch.weixin.qq.com/hk/', // 接入点(国内接入)
'json' => [
'sp_appid' => 'wx8888888888888888',
'sp_mchid' => '3200000001',
'sub_mchid' => '20000100',
'name' => 'Merchant name',
'shortname' => 'Merchant shortname',
'office_phone' => '075586010000',
'contact' => [
'name' => '李先生',
'phone' => '075586010000',
'email' => 'test@test.com',
],
'business_category' => 644,
'channel_id' => '3200000001',
'merchant_country_code' => '344',
'merchant_type' => 'ENTERPRISE',
'registration_certificate_number' => '5555-8888',
'registration_certificate_date' => '2020-10-16',
'registration_certificate_copy' => 'w7yQFawBtja5uEdm_aoGhHuxkrIaqB4GzPCeo963zXKcO2hDVD8AjXIpgrj-x95m5iclsanHYauUt1__DsWXok2NqRliv2SDL42QoEmHIPs',
'settlement_bank_number' => '555588889999',
'business' => [
'business_type' => 'BOTH',
'app_download' => 'https://download.qq.com',
'website' => 'https://www.qq.com',
'office_account' => 'wx8888888888888888',
'mini_program' => 'wx8888888888888888',
'store_address' => '10F World Finance Centre (South Office), 11 Canton Road, Tsim Sha Tsui, Hong Kong',
'store_photos' => \json_encode([
'Media_id1',
'Media_id2',
'Media_id3',
]),
'mcc' => '4214',
],
'director' => [
'name' => 'Bob',
'number' => '5555-8888',
],
'principal' => [
'name' => 'Bob',
'number' => '5555-8888',
],
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/merchants']->putAsync([
'base_uri' => 'https://api.mch.weixin.qq.com/hk/', // 接入点(国内接入)
'json' => [
'sp_appid' => 'wx8888888888888888',
'sp_mchid' => '3200000001',
'sub_mchid' => '20000100',
'name' => 'Merchant name',
'shortname' => 'Merchant shortname',
'office_phone' => '075586010000',
'contact' => [
'name' => '李先生',
'phone' => '075586010000',
'email' => 'test@test.com',
],
'business_category' => 644,
'channel_id' => '3200000001',
'merchant_country_code' => '344',
'merchant_type' => 'ENTERPRISE',
'registration_certificate_number' => '5555-8888',
'registration_certificate_date' => '2020-10-16',
'registration_certificate_copy' => 'w7yQFawBtja5uEdm_aoGhHuxkrIaqB4GzPCeo963zXKcO2hDVD8AjXIpgrj-x95m5iclsanHYauUt1__DsWXok2NqRliv2SDL42QoEmHIPs',
'settlement_bank_number' => '555588889999',
'business' => [
'business_type' => 'BOTH',
'app_download' => 'https://download.qq.com',
'website' => 'https://www.qq.com',
'office_account' => 'wx8888888888888888',
'mini_program' => 'wx8888888888888888',
'store_address' => '10F World Finance Centre (South Office), 11 Canton Road, Tsim Sha Tsui, Hong Kong',
'store_photos' => \json_encode([
'Media_id1',
'Media_id2',
'Media_id3',
]),
'mcc' => '4214',
],
'director' => [
'name' => 'Bob',
'number' => '5555-8888',
],
'principal' => [
'name' => 'Bob',
'number' => '5555-8888',
],
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->merchants->put([
'base_uri' => 'https://api.mch.weixin.qq.com/hk/', // 接入点(国内接入)
'json' => [
'sp_appid' => 'wx8888888888888888',
'sp_mchid' => '3200000001',
'sub_mchid' => '20000100',
'name' => 'Merchant name',
'shortname' => 'Merchant shortname',
'office_phone' => '075586010000',
'contact' => [
'name' => '李先生',
'phone' => '075586010000',
'email' => 'test@test.com',
],
'business_category' => 644,
'channel_id' => '3200000001',
'merchant_country_code' => '344',
'merchant_type' => 'ENTERPRISE',
'registration_certificate_number' => '5555-8888',
'registration_certificate_date' => '2020-10-16',
'registration_certificate_copy' => 'w7yQFawBtja5uEdm_aoGhHuxkrIaqB4GzPCeo963zXKcO2hDVD8AjXIpgrj-x95m5iclsanHYauUt1__DsWXok2NqRliv2SDL42QoEmHIPs',
'settlement_bank_number' => '555588889999',
'business' => [
'business_type' => 'BOTH',
'app_download' => 'https://download.qq.com',
'website' => 'https://www.qq.com',
'office_account' => 'wx8888888888888888',
'mini_program' => 'wx8888888888888888',
'store_address' => '10F World Finance Centre (South Office), 11 Canton Road, Tsim Sha Tsui, Hong Kong',
'store_photos' => \json_encode([
'Media_id1',
'Media_id2',
'Media_id3',
]),
'mcc' => '4214',
],
'director' => [
'name' => 'Bob',
'number' => '5555-8888',
],
'principal' => [
'name' => 'Bob',
'number' => '5555-8888',
],
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/merchants')->put([
'base_uri' => 'https://api.mch.weixin.qq.com/hk/', // 接入点(国内接入)
'json' => [
'sp_appid' => 'wx8888888888888888',
'sp_mchid' => '3200000001',
'sub_mchid' => '20000100',
'name' => 'Merchant name',
'shortname' => 'Merchant shortname',
'office_phone' => '075586010000',
'contact' => [
'name' => '李先生',
'phone' => '075586010000',
'email' => 'test@test.com',
],
'business_category' => 644,
'channel_id' => '3200000001',
'merchant_country_code' => '344',
'merchant_type' => 'ENTERPRISE',
'registration_certificate_number' => '5555-8888',
'registration_certificate_date' => '2020-10-16',
'registration_certificate_copy' => 'w7yQFawBtja5uEdm_aoGhHuxkrIaqB4GzPCeo963zXKcO2hDVD8AjXIpgrj-x95m5iclsanHYauUt1__DsWXok2NqRliv2SDL42QoEmHIPs',
'settlement_bank_number' => '555588889999',
'business' => [
'business_type' => 'BOTH',
'app_download' => 'https://download.qq.com',
'website' => 'https://www.qq.com',
'office_account' => 'wx8888888888888888',
'mini_program' => 'wx8888888888888888',
'store_address' => '10F World Finance Centre (South Office), 11 Canton Road, Tsim Sha Tsui, Hong Kong',
'store_photos' => \json_encode([
'Media_id1',
'Media_id2',
'Media_id3',
]),
'mcc' => '4214',
],
'director' => [
'name' => 'Bob',
'number' => '5555-8888',
],
'principal' => [
'name' => 'Bob',
'number' => '5555-8888',
],
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/merchants']->put([
'base_uri' => 'https://api.mch.weixin.qq.com/hk/', // 接入点(国内接入)
'json' => [
'sp_appid' => 'wx8888888888888888',
'sp_mchid' => '3200000001',
'sub_mchid' => '20000100',
'name' => 'Merchant name',
'shortname' => 'Merchant shortname',
'office_phone' => '075586010000',
'contact' => [
'name' => '李先生',
'phone' => '075586010000',
'email' => 'test@test.com',
],
'business_category' => 644,
'channel_id' => '3200000001',
'merchant_country_code' => '344',
'merchant_type' => 'ENTERPRISE',
'registration_certificate_number' => '5555-8888',
'registration_certificate_date' => '2020-10-16',
'registration_certificate_copy' => 'w7yQFawBtja5uEdm_aoGhHuxkrIaqB4GzPCeo963zXKcO2hDVD8AjXIpgrj-x95m5iclsanHYauUt1__DsWXok2NqRliv2SDL42QoEmHIPs',
'settlement_bank_number' => '555588889999',
'business' => [
'business_type' => 'BOTH',
'app_download' => 'https://download.qq.com',
'website' => 'https://www.qq.com',
'office_account' => 'wx8888888888888888',
'mini_program' => 'wx8888888888888888',
'store_address' => '10F World Finance Centre (South Office), 11 Canton Road, Tsim Sha Tsui, Hong Kong',
'store_photos' => \json_encode([
'Media_id1',
'Media_id2',
'Media_id3',
]),
'mcc' => '4214',
],
'director' => [
'name' => 'Bob',
'number' => '5555-8888',
],
'principal' => [
'name' => 'Bob',
'number' => '5555-8888',
],
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
sub_mchid | string | 子商户号 |
参阅 官方文档