Skip to content

申请入驻

使用申请入驻接口提交你的小微商户资料,申请后一般5分钟左右可以查询到具体的申请结果。

🚫

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

请求参数类型描述
securitytrue声明加载商户API证书
xmlobject声明请求的XML数据结构
versionstring接口版本号
3.0 枚举值
cert_snstring平台证书序列号
mch_idstring商户号
sign_typestring签名类型
HMAC-SHA256 枚举值
business_codestring业务申请编号
id_card_copystring身份证人像面照片
id_card_nationalstring身份证国徽面照片
id_card_namestring身份证姓名
id_card_numberstring身份证号码
id_card_valid_timestring身份证有效期限JSON格式字符串
periodstring[]有效期限
account_namestring开户名称
account_bankstring开户银行
bank_address_codestring开户银行省市编码
bank_namestring开户银行全称(含支行)
account_numberstring银行账号
store_namestring门店名称
store_address_codestring门店省市编码
store_streetstring门店街道名称
store_longitudestring门店经度
store_latitudestring门店纬度
store_entrance_picstring门店门口照片
indoor_picstring店内环境照片
address_certificationstring经营场地证明
merchant_shortnamestring商户简称
service_phonestring客服电话
product_descstring售卖商品/提供服务描述
ratestring费率
business_addition_descstring补充说明
business_addition_picsstring补充材料
media_idstring[]图片列表
contactstring超级管理员姓名
contact_phonestring手机号码
contact_emailstring联系邮箱
php
$instance->v2->applyment->micro->submit->postAsync([
  'security' => true,
  'xml' => [
    'version'                => '3.0',
    'cert_sn'                => '5663476TEREGD45FH63GDFHFG657FCHBFG',
    'mch_id'                 => '1230000109',
    'sign_type'              => 'HMAC-SHA256',
    'business_code'          => '123456',
    'id_card_copy'           => '',
    'id_card_national'       => '',
    'id_card_name'           => '佑佑',
    'id_card_number'         => '',
    'id_card_valid_time'     => '["1970-01-01","长期"]',
    'account_name'           => '',
    'account_bank'           => '工商银行',
    'bank_address_code'      => '110000',
    'bank_name'              => '深圳农村商业银行xxx支行',
    'account_number'         => '',
    'store_name'             => '',
    'store_address_code'     => '110000',
    'store_street'           => '',
    'store_longitude'        => '113.941355',
    'store_latitude'         => '22.546245',
    'store_entrance_pic'     => '',
    'indoor_pic'             => '',
    'address_certification'  => '',
    'merchant_shortname'     => '',
    'service_phone'          => '',
    'product_desc'           => '',
    'rate'                   => '0.6%',
    'business_addition_desc' => '',
    'business_addition_pics' => '["123","456"]',
    'contact'                => '',
    'contact_phone'          => '',
    'contact_email'          => '',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance->chain('v2/applyment/micro/submit')->postAsync([
  'security' => true,
  'xml' => [
    'version'                => '3.0',
    'cert_sn'                => '5663476TEREGD45FH63GDFHFG657FCHBFG',
    'mch_id'                 => '1230000109',
    'sign_type'              => 'HMAC-SHA256',
    'business_code'          => '123456',
    'id_card_copy'           => '',
    'id_card_national'       => '',
    'id_card_name'           => '佑佑',
    'id_card_number'         => '',
    'id_card_valid_time'     => '["1970-01-01","长期"]',
    'account_name'           => '',
    'account_bank'           => '工商银行',
    'bank_address_code'      => '110000',
    'bank_name'              => '深圳农村商业银行xxx支行',
    'account_number'         => '',
    'store_name'             => '',
    'store_address_code'     => '110000',
    'store_street'           => '',
    'store_longitude'        => '113.941355',
    'store_latitude'         => '22.546245',
    'store_entrance_pic'     => '',
    'indoor_pic'             => '',
    'address_certification'  => '',
    'merchant_shortname'     => '',
    'service_phone'          => '',
    'product_desc'           => '',
    'rate'                   => '0.6%',
    'business_addition_desc' => '',
    'business_addition_pics' => '["123","456"]',
    'contact'                => '',
    'contact_phone'          => '',
    'contact_email'          => '',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance['v2/applyment/micro/submit']->postAsync([
  'security' => true,
  'xml' => [
    'version'                => '3.0',
    'cert_sn'                => '5663476TEREGD45FH63GDFHFG657FCHBFG',
    'mch_id'                 => '1230000109',
    'sign_type'              => 'HMAC-SHA256',
    'business_code'          => '123456',
    'id_card_copy'           => '',
    'id_card_national'       => '',
    'id_card_name'           => '佑佑',
    'id_card_number'         => '',
    'id_card_valid_time'     => '["1970-01-01","长期"]',
    'account_name'           => '',
    'account_bank'           => '工商银行',
    'bank_address_code'      => '110000',
    'bank_name'              => '深圳农村商业银行xxx支行',
    'account_number'         => '',
    'store_name'             => '',
    'store_address_code'     => '110000',
    'store_street'           => '',
    'store_longitude'        => '113.941355',
    'store_latitude'         => '22.546245',
    'store_entrance_pic'     => '',
    'indoor_pic'             => '',
    'address_certification'  => '',
    'merchant_shortname'     => '',
    'service_phone'          => '',
    'product_desc'           => '',
    'rate'                   => '0.6%',
    'business_addition_desc' => '',
    'business_addition_pics' => '["123","456"]',
    'contact'                => '',
    'contact_phone'          => '',
    'contact_email'          => '',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$response = $instance->v2->applyment->micro->submit->post([
  'security' => true,
  'xml' => [
    'version'                => '3.0',
    'cert_sn'                => '5663476TEREGD45FH63GDFHFG657FCHBFG',
    'mch_id'                 => '1230000109',
    'sign_type'              => 'HMAC-SHA256',
    'business_code'          => '123456',
    'id_card_copy'           => '',
    'id_card_national'       => '',
    'id_card_name'           => '佑佑',
    'id_card_number'         => '',
    'id_card_valid_time'     => '["1970-01-01","长期"]',
    'account_name'           => '',
    'account_bank'           => '工商银行',
    'bank_address_code'      => '110000',
    'bank_name'              => '深圳农村商业银行xxx支行',
    'account_number'         => '',
    'store_name'             => '',
    'store_address_code'     => '110000',
    'store_street'           => '',
    'store_longitude'        => '113.941355',
    'store_latitude'         => '22.546245',
    'store_entrance_pic'     => '',
    'indoor_pic'             => '',
    'address_certification'  => '',
    'merchant_shortname'     => '',
    'service_phone'          => '',
    'product_desc'           => '',
    'rate'                   => '0.6%',
    'business_addition_desc' => '',
    'business_addition_pics' => '["123","456"]',
    'contact'                => '',
    'contact_phone'          => '',
    'contact_email'          => '',
  ],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance->chain('v2/applyment/micro/submit')->post([
  'security' => true,
  'xml' => [
    'version'                => '3.0',
    'cert_sn'                => '5663476TEREGD45FH63GDFHFG657FCHBFG',
    'mch_id'                 => '1230000109',
    'sign_type'              => 'HMAC-SHA256',
    'business_code'          => '123456',
    'id_card_copy'           => '',
    'id_card_national'       => '',
    'id_card_name'           => '佑佑',
    'id_card_number'         => '',
    'id_card_valid_time'     => '["1970-01-01","长期"]',
    'account_name'           => '',
    'account_bank'           => '工商银行',
    'bank_address_code'      => '110000',
    'bank_name'              => '深圳农村商业银行xxx支行',
    'account_number'         => '',
    'store_name'             => '',
    'store_address_code'     => '110000',
    'store_street'           => '',
    'store_longitude'        => '113.941355',
    'store_latitude'         => '22.546245',
    'store_entrance_pic'     => '',
    'indoor_pic'             => '',
    'address_certification'  => '',
    'merchant_shortname'     => '',
    'service_phone'          => '',
    'product_desc'           => '',
    'rate'                   => '0.6%',
    'business_addition_desc' => '',
    'business_addition_pics' => '["123","456"]',
    'contact'                => '',
    'contact_phone'          => '',
    'contact_email'          => '',
  ],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance['v2/applyment/micro/submit']->post([
  'security' => true,
  'xml' => [
    'version'                => '3.0',
    'cert_sn'                => '5663476TEREGD45FH63GDFHFG657FCHBFG',
    'mch_id'                 => '1230000109',
    'sign_type'              => 'HMAC-SHA256',
    'business_code'          => '123456',
    'id_card_copy'           => '',
    'id_card_national'       => '',
    'id_card_name'           => '佑佑',
    'id_card_number'         => '',
    'id_card_valid_time'     => '["1970-01-01","长期"]',
    'account_name'           => '',
    'account_bank'           => '工商银行',
    'bank_address_code'      => '110000',
    'bank_name'              => '深圳农村商业银行xxx支行',
    'account_number'         => '',
    'store_name'             => '',
    'store_address_code'     => '110000',
    'store_street'           => '',
    'store_longitude'        => '113.941355',
    'store_latitude'         => '22.546245',
    'store_entrance_pic'     => '',
    'indoor_pic'             => '',
    'address_certification'  => '',
    'merchant_shortname'     => '',
    'service_phone'          => '',
    'product_desc'           => '',
    'rate'                   => '0.6%',
    'business_addition_desc' => '',
    'business_addition_pics' => '["123","456"]',
    'contact'                => '',
    'contact_phone'          => '',
    'contact_email'          => '',
  ],
]);
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参数校验不通过的字段名
applyment_idstring商户申请单号

参阅 官方文档

Published on the GitHub by TheNorthMemory