提交升级申请单
使用“提交升级申请单”接口为小微商户发起升级流程,根据商户实际情况可升级为个体户、企业、其他组织。
🚫
本接口服务已于 2023.05.23
(北京时间)下线,文档仅做留存参考。
请求参数 | 类型 | 描述 |
---|---|---|
security | true | 声明加载商户API证书 |
xml | object | 声明请求的XML 数据结构 |
version | string | 接口版本号1.0 枚举值 |
mch_id | string | 商户号 |
sign_type | string | 签名类型HMAC-SHA256 枚举值 |
cert_sn | string | 平台证书序列号 |
sub_mch_id | string | 小微商户号 |
organization_type | string | 主体类型 |
business_license_copy | string | 营业执照扫描件 |
business_license_number | string | 营业执照注册号 |
merchant_name | string | 商户名称 |
company_address | string | 注册地址 |
legal_person | string | 经营者姓名/法定代表人 |
business_time | string | 营业期限 |
business_licence_type | string | 营业执照类型 |
organization_copy | string | 组织机构代码证照片 |
organization_number | string | 组织机构代码 |
organization_time | string | 组织机构代码有效期限 |
account_name | string | 开户名称 |
account_bank | string | 开户银行 |
bank_address_code | string | 开户银行省市编码 |
bank_name | string | 开户银行全称(含支行)17家直连银行无需填写,其他银行请务必填写 |
account_number | string | 银行卡号 |
merchant_shortname | string | 商户简称 |
business | string | 费率结算规则ID |
qualifications | string | 特殊资质 |
business_scene | string | 经营场景 |
business_addition_desc | string | 补充说明 |
business_addition_pics | string | 补充材料 |
contact_email | string | 联系邮箱 |
php
$instance->v2->applyment->micro->submitupgrade->postAsync([
'security' => true,
'xml' => [
'version' => '1.0',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'cert_sn' => '5663476TEREGD45FH63GDFHFG657FCHBFG',
'sub_mch_id' => '1230000109',
'organization_type' => '2',
'business_license_copy' => '',
'business_license_number' => '123456789012345',
'merchant_name' => '深圳腾讯科技有限公司',
'company_address' => '深圳市腾讯大厦',
'legal_person' => '',
'business_time' => '["1970-01-01","长期"]',
'business_licence_type' => '1762',
'organization_copy' => '',
'organization_number' => '1234567-1',
'organization_time' => '["1970-01-01","长期"]',
'account_name' => '',
'account_bank' => '工商银行',
'bank_address_code' => '11000',
'bank_name' => '深圳农村商业银行xxx支行',
'account_number' => '',
'merchant_shortname' => '',
'business' => '',
'qualifications' => '["xxx","xxx"]',
'business_scene' => '[1721]',
'business_addition_desc' => '',
'business_addition_pics' => '["123","456"]',
'contact_email' => '123@qq.com',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance->chain('v2/applyment/micro/submitupgrade')->postAsync([
'security' => true,
'xml' => [
'version' => '1.0',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'cert_sn' => '5663476TEREGD45FH63GDFHFG657FCHBFG',
'sub_mch_id' => '1230000109',
'organization_type' => '2',
'business_license_copy' => '',
'business_license_number' => '123456789012345',
'merchant_name' => '深圳腾讯科技有限公司',
'company_address' => '深圳市腾讯大厦',
'legal_person' => '',
'business_time' => '["1970-01-01","长期"]',
'business_licence_type' => '1762',
'organization_copy' => '',
'organization_number' => '1234567-1',
'organization_time' => '["1970-01-01","长期"]',
'account_name' => '',
'account_bank' => '工商银行',
'bank_address_code' => '11000',
'bank_name' => '深圳农村商业银行xxx支行',
'account_number' => '',
'merchant_shortname' => '',
'business' => '',
'qualifications' => '["xxx","xxx"]',
'business_scene' => '[1721]',
'business_addition_desc' => '',
'business_addition_pics' => '["123","456"]',
'contact_email' => '123@qq.com',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance['v2/applyment/micro/submitupgrade']->postAsync([
'security' => true,
'xml' => [
'version' => '1.0',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'cert_sn' => '5663476TEREGD45FH63GDFHFG657FCHBFG',
'sub_mch_id' => '1230000109',
'organization_type' => '2',
'business_license_copy' => '',
'business_license_number' => '123456789012345',
'merchant_name' => '深圳腾讯科技有限公司',
'company_address' => '深圳市腾讯大厦',
'legal_person' => '',
'business_time' => '["1970-01-01","长期"]',
'business_licence_type' => '1762',
'organization_copy' => '',
'organization_number' => '1234567-1',
'organization_time' => '["1970-01-01","长期"]',
'account_name' => '',
'account_bank' => '工商银行',
'bank_address_code' => '11000',
'bank_name' => '深圳农村商业银行xxx支行',
'account_number' => '',
'merchant_shortname' => '',
'business' => '',
'qualifications' => '["xxx","xxx"]',
'business_scene' => '[1721]',
'business_addition_desc' => '',
'business_addition_pics' => '["123","456"]',
'contact_email' => '123@qq.com',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$response = $instance->v2->applyment->micro->submitupgrade->post([
'security' => true,
'xml' => [
'version' => '1.0',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'cert_sn' => '5663476TEREGD45FH63GDFHFG657FCHBFG',
'sub_mch_id' => '1230000109',
'organization_type' => '2',
'business_license_copy' => '',
'business_license_number' => '123456789012345',
'merchant_name' => '深圳腾讯科技有限公司',
'company_address' => '深圳市腾讯大厦',
'legal_person' => '',
'business_time' => '["1970-01-01","长期"]',
'business_licence_type' => '1762',
'organization_copy' => '',
'organization_number' => '1234567-1',
'organization_time' => '["1970-01-01","长期"]',
'account_name' => '',
'account_bank' => '工商银行',
'bank_address_code' => '11000',
'bank_name' => '深圳农村商业银行xxx支行',
'account_number' => '',
'merchant_shortname' => '',
'business' => '',
'qualifications' => '["xxx","xxx"]',
'business_scene' => '[1721]',
'business_addition_desc' => '',
'business_addition_pics' => '["123","456"]',
'contact_email' => '123@qq.com',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance->chain('v2/applyment/micro/submitupgrade')->post([
'security' => true,
'xml' => [
'version' => '1.0',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'cert_sn' => '5663476TEREGD45FH63GDFHFG657FCHBFG',
'sub_mch_id' => '1230000109',
'organization_type' => '2',
'business_license_copy' => '',
'business_license_number' => '123456789012345',
'merchant_name' => '深圳腾讯科技有限公司',
'company_address' => '深圳市腾讯大厦',
'legal_person' => '',
'business_time' => '["1970-01-01","长期"]',
'business_licence_type' => '1762',
'organization_copy' => '',
'organization_number' => '1234567-1',
'organization_time' => '["1970-01-01","长期"]',
'account_name' => '',
'account_bank' => '工商银行',
'bank_address_code' => '11000',
'bank_name' => '深圳农村商业银行xxx支行',
'account_number' => '',
'merchant_shortname' => '',
'business' => '',
'qualifications' => '["xxx","xxx"]',
'business_scene' => '[1721]',
'business_addition_desc' => '',
'business_addition_pics' => '["123","456"]',
'contact_email' => '123@qq.com',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance['v2/applyment/micro/submitupgrade']->post([
'security' => true,
'xml' => [
'version' => '1.0',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'cert_sn' => '5663476TEREGD45FH63GDFHFG657FCHBFG',
'sub_mch_id' => '1230000109',
'organization_type' => '2',
'business_license_copy' => '',
'business_license_number' => '123456789012345',
'merchant_name' => '深圳腾讯科技有限公司',
'company_address' => '深圳市腾讯大厦',
'legal_person' => '',
'business_time' => '["1970-01-01","长期"]',
'business_licence_type' => '1762',
'organization_copy' => '',
'organization_number' => '1234567-1',
'organization_time' => '["1970-01-01","长期"]',
'account_name' => '',
'account_bank' => '工商银行',
'bank_address_code' => '11000',
'bank_name' => '深圳农村商业银行xxx支行',
'account_number' => '',
'merchant_shortname' => '',
'business' => '',
'qualifications' => '["xxx","xxx"]',
'business_scene' => '[1721]',
'business_addition_desc' => '',
'business_addition_pics' => '["123","456"]',
'contact_email' => '123@qq.com',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
返回字典 | 类型 | 描述 |
---|---|---|
return_code | string | 返回状态码SUCCESS | FAIL 枚举值之一 |
return_msg | string | 返回信息 |
nonce_str | string | 随机字符串 |
sign | string | 签名 |
result_code | string | 业务结果SUCCESS | FAIL 枚举值之一 |
err_code | string | 错误代码 |
err_code_des | string | 错误代码描述 |
err_param | string | 参数校验不通过的字段名 |
参阅 官方文档