申请入驻
使用申请入驻接口提交你的小微商户资料,申请后一般5分钟左右可以查询到具体的申请结果。
🚫
本接口服务已于 2023.05.23
(北京时间)下线,文档仅做留存参考。
请求参数 | 类型 | 描述 |
---|---|---|
security | true | 声明加载商户API证书 |
xml | object | 声明请求的XML 数据结构 |
version | string | 接口版本号3.0 枚举值 |
cert_sn | string | 平台证书序列号 |
mch_id | string | 商户号 |
sign_type | string | 签名类型HMAC-SHA256 枚举值 |
business_code | string | 业务申请编号 |
id_card_copy | string | 身份证人像面照片 |
id_card_national | string | 身份证国徽面照片 |
id_card_name | string | 身份证姓名 |
id_card_number | string | 身份证号码 |
id_card_valid_time | string | 身份证有效期限JSON 格式字符串 |
period | string[] | 有效期限 |
account_name | string | 开户名称 |
account_bank | string | 开户银行 |
bank_address_code | string | 开户银行省市编码 |
bank_name | string | 开户银行全称(含支行) |
account_number | string | 银行账号 |
store_name | string | 门店名称 |
store_address_code | string | 门店省市编码 |
store_street | string | 门店街道名称 |
store_longitude | string | 门店经度 |
store_latitude | string | 门店纬度 |
store_entrance_pic | string | 门店门口照片 |
indoor_pic | string | 店内环境照片 |
address_certification | string | 经营场地证明 |
merchant_shortname | string | 商户简称 |
service_phone | string | 客服电话 |
product_desc | string | 售卖商品/提供服务描述 |
rate | string | 费率 |
business_addition_desc | string | 补充说明 |
business_addition_pics | string | 补充材料 |
media_id | string[] | 图片列表 |
contact | string | 超级管理员姓名 |
contact_phone | string | 手机号码 |
contact_email | string | 联系邮箱 |
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_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 | 参数校验不通过的字段名 |
applyment_id | string | 商户申请单号 |
参阅 官方文档