Skip to content

提交升级申请单

使用“提交升级申请单”接口为小微商户发起升级流程,根据商户实际情况可升级为个体户、企业、其他组织。

🚫

本接口服务已于 2023.05.23 (北京时间)下线,文档仅做留存参考。

请求参数类型描述
securitytrue声明加载商户API证书
xmlobject声明请求的XML数据结构
versionstring接口版本号
1.0 枚举值
mch_idstring商户号
sign_typestring签名类型
HMAC-SHA256 枚举值
cert_snstring平台证书序列号
sub_mch_idstring小微商户号
organization_typestring主体类型
business_license_copystring营业执照扫描件
business_license_numberstring营业执照注册号
merchant_namestring商户名称
company_addressstring注册地址
legal_personstring经营者姓名/法定代表人
business_timestring营业期限
business_licence_typestring营业执照类型
organization_copystring组织机构代码证照片
organization_numberstring组织机构代码
organization_timestring组织机构代码有效期限
account_namestring开户名称
account_bankstring开户银行
bank_address_codestring开户银行省市编码
bank_namestring开户银行全称(含支行)17家直连银行无需填写,其他银行请务必填写
account_numberstring银行卡号
merchant_shortnamestring商户简称
businessstring费率结算规则ID
qualificationsstring特殊资质
business_scenestring经营场景
business_addition_descstring补充说明
business_addition_picsstring补充材料
contact_emailstring联系邮箱
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_codestring返回状态码
SUCCESS | FAIL 枚举值之一
return_msgstring返回信息
nonce_strstring随机字符串
signstring签名
result_codestring业务结果
SUCCESS | FAIL 枚举值之一
err_codestring错误代码
err_code_desstring错误代码描述
err_paramstring参数校验不通过的字段名

参阅 官方文档

Published on the GitHub by TheNorthMemory