Skip to content

二级商户进件

电商平台通过提交二级商户资料,完成二级商户入驻,入驻成为微信支付商户。

请求参数类型描述
jsonobject声明请求的JSON数据结构
out_request_nostring业务申请编号
organization_typestring主体类型
2401 | 2500 | 4 | 2 | 3 | 2502 | 1708 枚举值之一
finance_institutionboolean是否金融机构
business_license_infoobject营业执照/登记证书信息
cert_typestring登记证书类型
CERTIFICATE_TYPE_2388 | CERTIFICATE_TYPE_2389 | CERTIFICATE_TYPE_2390 | CERTIFICATE_TYPE_2391 | CERTIFICATE_TYPE_2392 | CERTIFICATE_TYPE_2393 | CERTIFICATE_TYPE_2394 | CERTIFICATE_TYPE_2395 | CERTIFICATE_TYPE_2396 | CERTIFICATE_TYPE_2399 | CERTIFICATE_TYPE_2400 | CERTIFICATE_TYPE_2520 | CERTIFICATE_TYPE_2521 | CERTIFICATE_TYPE_2522 枚举值之一
business_license_copystring证件扫描件
business_license_numberstring证件注册号
merchant_namestring商户名称
legal_personstring经营者/法定代表人姓名
company_addressstring注册地址
business_timestring营业期限JSON格式字符串
periodstring[]岂止日期
finance_institution_infoobject金融机构许可证信息
finance_typestring金融机构类型
BANK_AGENT | PAYMENT_AGENT | INSURANCE | TRADE_AND_SETTLE | OTHER 枚举值之一
finance_license_picsstring[]金融机构许可证图片
id_holder_typestring超级管理员类型
LEGAL | SUPER 枚举值之一
id_doc_typestringIDENTIFICATION_TYPE_IDCARD | IDENTIFICATION_TYPE_OVERSEA_PASSPORT | IDENTIFICATION_TYPE_HONGKONG_PASSPORT | IDENTIFICATION_TYPE_MACAO_PASSPORT | IDENTIFICATION_TYPE_TAIWAN_PASSPORT | IDENTIFICATION_TYPE_FOREIGN_RESIDENT | IDENTIFICATION_TYPE_HONGKONG_MACAO_RESIDENT | IDENTIFICATION_TYPE_TAIWAN_RESIDENT 枚举值之一
authorize_letter_copystring法定代表人说明函
id_card_infoobject经营者/法人身份证信息
id_card_copystring身份证人像面照片
id_card_nationalstring身份证国徽面照片
id_card_namestring身份证姓名
id_card_numberstring身份证号码
id_card_valid_time_beginstring身份证有效期开始时间
id_card_valid_timestring身份证有效期结束时间
id_doc_infoobject经营者/法人其他类型证件信息
id_doc_namestring证件姓名
id_doc_numberstring证件号码
id_doc_copystring证件正面照片
id_doc_copy_backstring证件反面照片
doc_period_beginstring证件有效期开始时间
doc_period_endstring证件有效期结束时间
ownerboolean经营者/法人是否为受益人
ubo_info_listobject[]最终受益人信息列表
ubo_id_doc_typestringIDENTIFICATION_TYPE_IDCARD | IDENTIFICATION_TYPE_OVERSEA_PASSPORT | IDENTIFICATION_TYPE_HONGKONG_PASSPORT | IDENTIFICATION_TYPE_MACAO_PASSPORT | IDENTIFICATION_TYPE_TAIWAN_PASSPORT | IDENTIFICATION_TYPE_FOREIGN_RESIDENT | IDENTIFICATION_TYPE_HONGKONG_MACAO_RESIDENT | IDENTIFICATION_TYPE_TAIWAN_RESIDENT 枚举值之一
ubo_id_doc_copystring证件正面照片
ubo_id_doc_copy_backstring证件反面照片
ubo_id_doc_namestring受益人姓名
ubo_id_doc_numberstring证件号码
ubo_id_doc_addressstring证件居住地址
ubo_period_beginstring证件有效期开始时间
ubo_period_endstring证件有效期结束时间
account_infoobject结算银行账户
bank_account_typestring账户类型
74 | 75 枚举值之一
account_bankstring开户银行
account_namestring开户名称
bank_address_codestring开户银行省市编码
bank_branch_idstring开户银行联行号
bank_namestring开户银行全称 (含支行]
account_numberstring银行帐号
contact_infoobject超级管理员信息
contact_typestring超级管理员类型
65 | 66 枚举值之一
contact_namestring超级管理员姓名
contact_id_doc_typestringIDENTIFICATION_TYPE_IDCARD | IDENTIFICATION_TYPE_OVERSEA_PASSPORT | IDENTIFICATION_TYPE_HONGKONG_PASSPORT | IDENTIFICATION_TYPE_MACAO_PASSPORT | IDENTIFICATION_TYPE_TAIWAN_PASSPORT | IDENTIFICATION_TYPE_FOREIGN_RESIDENT | IDENTIFICATION_TYPE_HONGKONG_MACAO_RESIDENT | IDENTIFICATION_TYPE_TAIWAN_RESIDENT 枚举值之一
contact_id_card_numberstring超级管理员身份证件号码
contact_id_doc_copystring超级管理员证件正面照片
contact_id_doc_copy_backstring超级管理员证件反面照片
contact_period_beginstring超级管理员证件有效期开始时间
contact_period_endstring超级管理员证件有效期结束时间
business_authorization_letterstring业务办理授权函
mobile_phonestring超级管理员手机
sales_scene_infoobject店铺信息
store_namestring店铺名称
store_urlstring店铺链接
store_qr_codestring店铺二维码
mini_program_sub_appidstring小程序AppID
settlement_infoobject结算规则
settlement_idstring结算规则ID
qualification_typestring所属行业
merchant_shortnamestring商户简称
qualificationsstring[]特殊资质
business_addition_picsstring[]补充材料
business_addition_descstring[]补充说明
headersobject声明请求的头参数
Wechatpay-Serialstring平台公钥ID/平台公钥证书序列号
php
$instance->v3->ecommerce->applyments->_empty_->postAsync([
  'json' => [
    'out_request_no'           => '',
    'organization_type'        => '2401',
    'finance_institution'      => true,
    'business_license_info'    => [
      'cert_type'               => 'CERTIFICATE_TYPE_2388',
      'business_license_copy'   => '47ZC6GC-vnrbEny__Ie_An5-tCpqxucuxi-vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4',
      'business_license_number' => '123456789012345678',
      'merchant_name'           => '腾讯科技有限公司',
      'legal_person'            => '张三',
      'company_address'         => '深圳南山区科苑路',
      'business_time'           => '["2014-01-01","长期"]',
    ],
    'finance_institution_info' => [
      'finance_type'         => 'BANK_AGENT',
      'finance_license_pics' => ['MediaId'],
    ],
    'id_holder_type'           => 'LEGAL',
    'id_doc_type'              => 'IDENTIFICATION_TYPE_IDCARD',
    'authorize_letter_copy'    => '',
    'id_card_info'             => [
      'id_card_copy'             => 'xpnFuAxhBTEO_PvWkfSCJ3zVIn001D8daLC-ehEuo0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ',
      'id_card_national'         => 'vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4',
      'id_card_name'             => 'pVd1HJ6v/69bDnuC4EL5Kz4jBHLiCa8MRtelw/wDa4SzfeespQO/0kjiwfqdfg==',
      'id_card_number'           => 'zV+BEmytMNQCqQ8juwEc4P4TG5xzchG/5IL9DBd+Z0zZXkw==4',
      'id_card_valid_time_begin' => '',
      'id_card_valid_time'       => '',
    ],
    'id_doc_info'              => [
      'id_doc_name'      => 'jTpGmxUX3FBWVQ5NJTZvlKX_gdU4LC-ehEuo0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ',
      'id_doc_number'    => 'jTpGmxUX3FBWVQ5NJTZvlKX_go0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ',
      'id_doc_copy'      => 'xi-vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4',
      'id_doc_copy_back' => 'xi-vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4',
      'doc_period_begin' => '2020-01-02',
      'doc_period_end'   => '2020-01-02',
    ],
    'owner'                    => true,
    'ubo_info_list'            => [[
      'ubo_id_doc_type'      => 'IDENTIFICATION_TYPE_IDCARD',
      'ubo_id_doc_copy'      => '',
      'ubo_id_doc_copy_back' => '',
      'ubo_id_doc_name'      => '',
      'ubo_id_doc_number'    => '',
      'ubo_id_doc_address'   => '',
      'ubo_period_begin'     => '',
      'ubo_period_end'       => '',
    ],],
    'account_info'             => [
      'bank_account_type' => '75',
      'account_bank'      => '工商银行',
      'account_name'      => 'AOZdYGISxo4yw96uY1Pk7Rq79Jtt7+I8juwEc4P4TG5xzchG/5IL9DBd+Z0zZXkw==',
      'bank_address_code' => '110000',
      'bank_branch_id'    => '402713354941',
      'bank_name'         => '施秉县农村信用合作联社城关信用社',
      'account_number'    => 'd+xT+MQCvrLHUVDWv/8MR/dB7TkXLVfSrUxMPZy6jWWYzpRrEEaYQE8ZRGYoeorwC+w==',
    ],
    'contact_info'             => [
      'contact_type'                  => '65',
      'contact_name'                  => 'pVd1HJ6zyvPedzGaV+X3IdGdbDnuC4Eelw/wDa4SzfeespQO/0kjiwfqdfg==',
      'contact_id_doc_type'           => 'IDENTIFICATION_TYPE_IDCARD',
      'contact_id_card_number'        => 'pVd1HJ6zmty7/mYNxLMpRSvMRtelw/wDa4SzfeespQO/0kjiwfqdfg==',
      'contact_id_doc_copy'           => '',
      'contact_id_doc_copy_back'      => '',
      'contact_period_begin'          => '',
      'contact_period_end'            => '',
      'business_authorization_letter' => '',
      'mobile_phone'                  => 'pVd1HJ6zyvPedzGaV+X3qtmrq9bb9tPROvwia4ibL+F6mfjbzQIzfb3HHLEjZ4YiNWWNeespQO/0kjiwfqdfg==',
    ],
    'sales_scene_info'         => [
      'store_name'             => '爱烧烤',
      'store_url'              => 'http://www.qq.com',
      'store_qr_code'          => '',
      'mini_program_sub_appid' => '',
    ],
    'settlement_info'          => [
      'settlement_id'      => '',
      'qualification_type' => '',
    ],
    'merchant_shortname'       => '',
    'qualifications'           => ['MediaId'],
    'business_addition_pics'   => ['MediaId'],
    'business_addition_desc'   => ['MediaId'],
  ],
  '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/ecommerce/applyments/{empty}')->postAsync([
  'json' => [
    'out_request_no'           => '',
    'organization_type'        => '2401',
    'finance_institution'      => true,
    'business_license_info'    => [
      'cert_type'               => 'CERTIFICATE_TYPE_2388',
      'business_license_copy'   => '47ZC6GC-vnrbEny__Ie_An5-tCpqxucuxi-vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4',
      'business_license_number' => '123456789012345678',
      'merchant_name'           => '腾讯科技有限公司',
      'legal_person'            => '张三',
      'company_address'         => '深圳南山区科苑路',
      'business_time'           => '["2014-01-01","长期"]',
    ],
    'finance_institution_info' => [
      'finance_type'         => 'BANK_AGENT',
      'finance_license_pics' => ['MediaId'],
    ],
    'id_holder_type'           => 'LEGAL',
    'id_doc_type'              => 'IDENTIFICATION_TYPE_IDCARD',
    'authorize_letter_copy'    => '',
    'id_card_info'             => [
      'id_card_copy'             => 'xpnFuAxhBTEO_PvWkfSCJ3zVIn001D8daLC-ehEuo0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ',
      'id_card_national'         => 'vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4',
      'id_card_name'             => 'pVd1HJ6v/69bDnuC4EL5Kz4jBHLiCa8MRtelw/wDa4SzfeespQO/0kjiwfqdfg==',
      'id_card_number'           => 'zV+BEmytMNQCqQ8juwEc4P4TG5xzchG/5IL9DBd+Z0zZXkw==4',
      'id_card_valid_time_begin' => '',
      'id_card_valid_time'       => '',
    ],
    'id_doc_info'              => [
      'id_doc_name'      => 'jTpGmxUX3FBWVQ5NJTZvlKX_gdU4LC-ehEuo0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ',
      'id_doc_number'    => 'jTpGmxUX3FBWVQ5NJTZvlKX_go0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ',
      'id_doc_copy'      => 'xi-vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4',
      'id_doc_copy_back' => 'xi-vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4',
      'doc_period_begin' => '2020-01-02',
      'doc_period_end'   => '2020-01-02',
    ],
    'owner'                    => true,
    'ubo_info_list'            => [[
      'ubo_id_doc_type'      => 'IDENTIFICATION_TYPE_IDCARD',
      'ubo_id_doc_copy'      => '',
      'ubo_id_doc_copy_back' => '',
      'ubo_id_doc_name'      => '',
      'ubo_id_doc_number'    => '',
      'ubo_id_doc_address'   => '',
      'ubo_period_begin'     => '',
      'ubo_period_end'       => '',
    ],],
    'account_info'             => [
      'bank_account_type' => '75',
      'account_bank'      => '工商银行',
      'account_name'      => 'AOZdYGISxo4yw96uY1Pk7Rq79Jtt7+I8juwEc4P4TG5xzchG/5IL9DBd+Z0zZXkw==',
      'bank_address_code' => '110000',
      'bank_branch_id'    => '402713354941',
      'bank_name'         => '施秉县农村信用合作联社城关信用社',
      'account_number'    => 'd+xT+MQCvrLHUVDWv/8MR/dB7TkXLVfSrUxMPZy6jWWYzpRrEEaYQE8ZRGYoeorwC+w==',
    ],
    'contact_info'             => [
      'contact_type'                  => '65',
      'contact_name'                  => 'pVd1HJ6zyvPedzGaV+X3IdGdbDnuC4Eelw/wDa4SzfeespQO/0kjiwfqdfg==',
      'contact_id_doc_type'           => 'IDENTIFICATION_TYPE_IDCARD',
      'contact_id_card_number'        => 'pVd1HJ6zmty7/mYNxLMpRSvMRtelw/wDa4SzfeespQO/0kjiwfqdfg==',
      'contact_id_doc_copy'           => '',
      'contact_id_doc_copy_back'      => '',
      'contact_period_begin'          => '',
      'contact_period_end'            => '',
      'business_authorization_letter' => '',
      'mobile_phone'                  => 'pVd1HJ6zyvPedzGaV+X3qtmrq9bb9tPROvwia4ibL+F6mfjbzQIzfb3HHLEjZ4YiNWWNeespQO/0kjiwfqdfg==',
    ],
    'sales_scene_info'         => [
      'store_name'             => '爱烧烤',
      'store_url'              => 'http://www.qq.com',
      'store_qr_code'          => '',
      'mini_program_sub_appid' => '',
    ],
    'settlement_info'          => [
      'settlement_id'      => '',
      'qualification_type' => '',
    ],
    'merchant_shortname'       => '',
    'qualifications'           => ['MediaId'],
    'business_addition_pics'   => ['MediaId'],
    'business_addition_desc'   => ['MediaId'],
  ],
  '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/ecommerce/applyments/{empty}']->postAsync([
  'json' => [
    'out_request_no'           => '',
    'organization_type'        => '2401',
    'finance_institution'      => true,
    'business_license_info'    => [
      'cert_type'               => 'CERTIFICATE_TYPE_2388',
      'business_license_copy'   => '47ZC6GC-vnrbEny__Ie_An5-tCpqxucuxi-vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4',
      'business_license_number' => '123456789012345678',
      'merchant_name'           => '腾讯科技有限公司',
      'legal_person'            => '张三',
      'company_address'         => '深圳南山区科苑路',
      'business_time'           => '["2014-01-01","长期"]',
    ],
    'finance_institution_info' => [
      'finance_type'         => 'BANK_AGENT',
      'finance_license_pics' => ['MediaId'],
    ],
    'id_holder_type'           => 'LEGAL',
    'id_doc_type'              => 'IDENTIFICATION_TYPE_IDCARD',
    'authorize_letter_copy'    => '',
    'id_card_info'             => [
      'id_card_copy'             => 'xpnFuAxhBTEO_PvWkfSCJ3zVIn001D8daLC-ehEuo0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ',
      'id_card_national'         => 'vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4',
      'id_card_name'             => 'pVd1HJ6v/69bDnuC4EL5Kz4jBHLiCa8MRtelw/wDa4SzfeespQO/0kjiwfqdfg==',
      'id_card_number'           => 'zV+BEmytMNQCqQ8juwEc4P4TG5xzchG/5IL9DBd+Z0zZXkw==4',
      'id_card_valid_time_begin' => '',
      'id_card_valid_time'       => '',
    ],
    'id_doc_info'              => [
      'id_doc_name'      => 'jTpGmxUX3FBWVQ5NJTZvlKX_gdU4LC-ehEuo0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ',
      'id_doc_number'    => 'jTpGmxUX3FBWVQ5NJTZvlKX_go0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ',
      'id_doc_copy'      => 'xi-vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4',
      'id_doc_copy_back' => 'xi-vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4',
      'doc_period_begin' => '2020-01-02',
      'doc_period_end'   => '2020-01-02',
    ],
    'owner'                    => true,
    'ubo_info_list'            => [[
      'ubo_id_doc_type'      => 'IDENTIFICATION_TYPE_IDCARD',
      'ubo_id_doc_copy'      => '',
      'ubo_id_doc_copy_back' => '',
      'ubo_id_doc_name'      => '',
      'ubo_id_doc_number'    => '',
      'ubo_id_doc_address'   => '',
      'ubo_period_begin'     => '',
      'ubo_period_end'       => '',
    ],],
    'account_info'             => [
      'bank_account_type' => '75',
      'account_bank'      => '工商银行',
      'account_name'      => 'AOZdYGISxo4yw96uY1Pk7Rq79Jtt7+I8juwEc4P4TG5xzchG/5IL9DBd+Z0zZXkw==',
      'bank_address_code' => '110000',
      'bank_branch_id'    => '402713354941',
      'bank_name'         => '施秉县农村信用合作联社城关信用社',
      'account_number'    => 'd+xT+MQCvrLHUVDWv/8MR/dB7TkXLVfSrUxMPZy6jWWYzpRrEEaYQE8ZRGYoeorwC+w==',
    ],
    'contact_info'             => [
      'contact_type'                  => '65',
      'contact_name'                  => 'pVd1HJ6zyvPedzGaV+X3IdGdbDnuC4Eelw/wDa4SzfeespQO/0kjiwfqdfg==',
      'contact_id_doc_type'           => 'IDENTIFICATION_TYPE_IDCARD',
      'contact_id_card_number'        => 'pVd1HJ6zmty7/mYNxLMpRSvMRtelw/wDa4SzfeespQO/0kjiwfqdfg==',
      'contact_id_doc_copy'           => '',
      'contact_id_doc_copy_back'      => '',
      'contact_period_begin'          => '',
      'contact_period_end'            => '',
      'business_authorization_letter' => '',
      'mobile_phone'                  => 'pVd1HJ6zyvPedzGaV+X3qtmrq9bb9tPROvwia4ibL+F6mfjbzQIzfb3HHLEjZ4YiNWWNeespQO/0kjiwfqdfg==',
    ],
    'sales_scene_info'         => [
      'store_name'             => '爱烧烤',
      'store_url'              => 'http://www.qq.com',
      'store_qr_code'          => '',
      'mini_program_sub_appid' => '',
    ],
    'settlement_info'          => [
      'settlement_id'      => '',
      'qualification_type' => '',
    ],
    'merchant_shortname'       => '',
    'qualifications'           => ['MediaId'],
    'business_addition_pics'   => ['MediaId'],
    'business_addition_desc'   => ['MediaId'],
  ],
  '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->ecommerce->applyments->_empty_->post([
  'json' => [
    'out_request_no'           => '',
    'organization_type'        => '2401',
    'finance_institution'      => true,
    'business_license_info'    => [
      'cert_type'               => 'CERTIFICATE_TYPE_2388',
      'business_license_copy'   => '47ZC6GC-vnrbEny__Ie_An5-tCpqxucuxi-vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4',
      'business_license_number' => '123456789012345678',
      'merchant_name'           => '腾讯科技有限公司',
      'legal_person'            => '张三',
      'company_address'         => '深圳南山区科苑路',
      'business_time'           => '["2014-01-01","长期"]',
    ],
    'finance_institution_info' => [
      'finance_type'         => 'BANK_AGENT',
      'finance_license_pics' => ['MediaId'],
    ],
    'id_holder_type'           => 'LEGAL',
    'id_doc_type'              => 'IDENTIFICATION_TYPE_IDCARD',
    'authorize_letter_copy'    => '',
    'id_card_info'             => [
      'id_card_copy'             => 'xpnFuAxhBTEO_PvWkfSCJ3zVIn001D8daLC-ehEuo0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ',
      'id_card_national'         => 'vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4',
      'id_card_name'             => 'pVd1HJ6v/69bDnuC4EL5Kz4jBHLiCa8MRtelw/wDa4SzfeespQO/0kjiwfqdfg==',
      'id_card_number'           => 'zV+BEmytMNQCqQ8juwEc4P4TG5xzchG/5IL9DBd+Z0zZXkw==4',
      'id_card_valid_time_begin' => '',
      'id_card_valid_time'       => '',
    ],
    'id_doc_info'              => [
      'id_doc_name'      => 'jTpGmxUX3FBWVQ5NJTZvlKX_gdU4LC-ehEuo0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ',
      'id_doc_number'    => 'jTpGmxUX3FBWVQ5NJTZvlKX_go0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ',
      'id_doc_copy'      => 'xi-vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4',
      'id_doc_copy_back' => 'xi-vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4',
      'doc_period_begin' => '2020-01-02',
      'doc_period_end'   => '2020-01-02',
    ],
    'owner'                    => true,
    'ubo_info_list'            => [[
      'ubo_id_doc_type'      => 'IDENTIFICATION_TYPE_IDCARD',
      'ubo_id_doc_copy'      => '',
      'ubo_id_doc_copy_back' => '',
      'ubo_id_doc_name'      => '',
      'ubo_id_doc_number'    => '',
      'ubo_id_doc_address'   => '',
      'ubo_period_begin'     => '',
      'ubo_period_end'       => '',
    ],],
    'account_info'             => [
      'bank_account_type' => '75',
      'account_bank'      => '工商银行',
      'account_name'      => 'AOZdYGISxo4yw96uY1Pk7Rq79Jtt7+I8juwEc4P4TG5xzchG/5IL9DBd+Z0zZXkw==',
      'bank_address_code' => '110000',
      'bank_branch_id'    => '402713354941',
      'bank_name'         => '施秉县农村信用合作联社城关信用社',
      'account_number'    => 'd+xT+MQCvrLHUVDWv/8MR/dB7TkXLVfSrUxMPZy6jWWYzpRrEEaYQE8ZRGYoeorwC+w==',
    ],
    'contact_info'             => [
      'contact_type'                  => '65',
      'contact_name'                  => 'pVd1HJ6zyvPedzGaV+X3IdGdbDnuC4Eelw/wDa4SzfeespQO/0kjiwfqdfg==',
      'contact_id_doc_type'           => 'IDENTIFICATION_TYPE_IDCARD',
      'contact_id_card_number'        => 'pVd1HJ6zmty7/mYNxLMpRSvMRtelw/wDa4SzfeespQO/0kjiwfqdfg==',
      'contact_id_doc_copy'           => '',
      'contact_id_doc_copy_back'      => '',
      'contact_period_begin'          => '',
      'contact_period_end'            => '',
      'business_authorization_letter' => '',
      'mobile_phone'                  => 'pVd1HJ6zyvPedzGaV+X3qtmrq9bb9tPROvwia4ibL+F6mfjbzQIzfb3HHLEjZ4YiNWWNeespQO/0kjiwfqdfg==',
    ],
    'sales_scene_info'         => [
      'store_name'             => '爱烧烤',
      'store_url'              => 'http://www.qq.com',
      'store_qr_code'          => '',
      'mini_program_sub_appid' => '',
    ],
    'settlement_info'          => [
      'settlement_id'      => '',
      'qualification_type' => '',
    ],
    'merchant_shortname'       => '',
    'qualifications'           => ['MediaId'],
    'business_addition_pics'   => ['MediaId'],
    'business_addition_desc'   => ['MediaId'],
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/ecommerce/applyments/{empty}')->post([
  'json' => [
    'out_request_no'           => '',
    'organization_type'        => '2401',
    'finance_institution'      => true,
    'business_license_info'    => [
      'cert_type'               => 'CERTIFICATE_TYPE_2388',
      'business_license_copy'   => '47ZC6GC-vnrbEny__Ie_An5-tCpqxucuxi-vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4',
      'business_license_number' => '123456789012345678',
      'merchant_name'           => '腾讯科技有限公司',
      'legal_person'            => '张三',
      'company_address'         => '深圳南山区科苑路',
      'business_time'           => '["2014-01-01","长期"]',
    ],
    'finance_institution_info' => [
      'finance_type'         => 'BANK_AGENT',
      'finance_license_pics' => ['MediaId'],
    ],
    'id_holder_type'           => 'LEGAL',
    'id_doc_type'              => 'IDENTIFICATION_TYPE_IDCARD',
    'authorize_letter_copy'    => '',
    'id_card_info'             => [
      'id_card_copy'             => 'xpnFuAxhBTEO_PvWkfSCJ3zVIn001D8daLC-ehEuo0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ',
      'id_card_national'         => 'vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4',
      'id_card_name'             => 'pVd1HJ6v/69bDnuC4EL5Kz4jBHLiCa8MRtelw/wDa4SzfeespQO/0kjiwfqdfg==',
      'id_card_number'           => 'zV+BEmytMNQCqQ8juwEc4P4TG5xzchG/5IL9DBd+Z0zZXkw==4',
      'id_card_valid_time_begin' => '',
      'id_card_valid_time'       => '',
    ],
    'id_doc_info'              => [
      'id_doc_name'      => 'jTpGmxUX3FBWVQ5NJTZvlKX_gdU4LC-ehEuo0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ',
      'id_doc_number'    => 'jTpGmxUX3FBWVQ5NJTZvlKX_go0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ',
      'id_doc_copy'      => 'xi-vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4',
      'id_doc_copy_back' => 'xi-vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4',
      'doc_period_begin' => '2020-01-02',
      'doc_period_end'   => '2020-01-02',
    ],
    'owner'                    => true,
    'ubo_info_list'            => [[
      'ubo_id_doc_type'      => 'IDENTIFICATION_TYPE_IDCARD',
      'ubo_id_doc_copy'      => '',
      'ubo_id_doc_copy_back' => '',
      'ubo_id_doc_name'      => '',
      'ubo_id_doc_number'    => '',
      'ubo_id_doc_address'   => '',
      'ubo_period_begin'     => '',
      'ubo_period_end'       => '',
    ],],
    'account_info'             => [
      'bank_account_type' => '75',
      'account_bank'      => '工商银行',
      'account_name'      => 'AOZdYGISxo4yw96uY1Pk7Rq79Jtt7+I8juwEc4P4TG5xzchG/5IL9DBd+Z0zZXkw==',
      'bank_address_code' => '110000',
      'bank_branch_id'    => '402713354941',
      'bank_name'         => '施秉县农村信用合作联社城关信用社',
      'account_number'    => 'd+xT+MQCvrLHUVDWv/8MR/dB7TkXLVfSrUxMPZy6jWWYzpRrEEaYQE8ZRGYoeorwC+w==',
    ],
    'contact_info'             => [
      'contact_type'                  => '65',
      'contact_name'                  => 'pVd1HJ6zyvPedzGaV+X3IdGdbDnuC4Eelw/wDa4SzfeespQO/0kjiwfqdfg==',
      'contact_id_doc_type'           => 'IDENTIFICATION_TYPE_IDCARD',
      'contact_id_card_number'        => 'pVd1HJ6zmty7/mYNxLMpRSvMRtelw/wDa4SzfeespQO/0kjiwfqdfg==',
      'contact_id_doc_copy'           => '',
      'contact_id_doc_copy_back'      => '',
      'contact_period_begin'          => '',
      'contact_period_end'            => '',
      'business_authorization_letter' => '',
      'mobile_phone'                  => 'pVd1HJ6zyvPedzGaV+X3qtmrq9bb9tPROvwia4ibL+F6mfjbzQIzfb3HHLEjZ4YiNWWNeespQO/0kjiwfqdfg==',
    ],
    'sales_scene_info'         => [
      'store_name'             => '爱烧烤',
      'store_url'              => 'http://www.qq.com',
      'store_qr_code'          => '',
      'mini_program_sub_appid' => '',
    ],
    'settlement_info'          => [
      'settlement_id'      => '',
      'qualification_type' => '',
    ],
    'merchant_shortname'       => '',
    'qualifications'           => ['MediaId'],
    'business_addition_pics'   => ['MediaId'],
    'business_addition_desc'   => ['MediaId'],
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/ecommerce/applyments/{empty}']->post([
  'json' => [
    'out_request_no'           => '',
    'organization_type'        => '2401',
    'finance_institution'      => true,
    'business_license_info'    => [
      'cert_type'               => 'CERTIFICATE_TYPE_2388',
      'business_license_copy'   => '47ZC6GC-vnrbEny__Ie_An5-tCpqxucuxi-vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4',
      'business_license_number' => '123456789012345678',
      'merchant_name'           => '腾讯科技有限公司',
      'legal_person'            => '张三',
      'company_address'         => '深圳南山区科苑路',
      'business_time'           => '["2014-01-01","长期"]',
    ],
    'finance_institution_info' => [
      'finance_type'         => 'BANK_AGENT',
      'finance_license_pics' => ['MediaId'],
    ],
    'id_holder_type'           => 'LEGAL',
    'id_doc_type'              => 'IDENTIFICATION_TYPE_IDCARD',
    'authorize_letter_copy'    => '',
    'id_card_info'             => [
      'id_card_copy'             => 'xpnFuAxhBTEO_PvWkfSCJ3zVIn001D8daLC-ehEuo0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ',
      'id_card_national'         => 'vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4',
      'id_card_name'             => 'pVd1HJ6v/69bDnuC4EL5Kz4jBHLiCa8MRtelw/wDa4SzfeespQO/0kjiwfqdfg==',
      'id_card_number'           => 'zV+BEmytMNQCqQ8juwEc4P4TG5xzchG/5IL9DBd+Z0zZXkw==4',
      'id_card_valid_time_begin' => '',
      'id_card_valid_time'       => '',
    ],
    'id_doc_info'              => [
      'id_doc_name'      => 'jTpGmxUX3FBWVQ5NJTZvlKX_gdU4LC-ehEuo0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ',
      'id_doc_number'    => 'jTpGmxUX3FBWVQ5NJTZvlKX_go0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ',
      'id_doc_copy'      => 'xi-vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4',
      'id_doc_copy_back' => 'xi-vByf3Gjm7KE53JXvGy9tqZm2XAUf-4KGprrKhpVBDIUv0OF4wFNIO4kqg05InE4d2I6_H7I4',
      'doc_period_begin' => '2020-01-02',
      'doc_period_end'   => '2020-01-02',
    ],
    'owner'                    => true,
    'ubo_info_list'            => [[
      'ubo_id_doc_type'      => 'IDENTIFICATION_TYPE_IDCARD',
      'ubo_id_doc_copy'      => '',
      'ubo_id_doc_copy_back' => '',
      'ubo_id_doc_name'      => '',
      'ubo_id_doc_number'    => '',
      'ubo_id_doc_address'   => '',
      'ubo_period_begin'     => '',
      'ubo_period_end'       => '',
    ],],
    'account_info'             => [
      'bank_account_type' => '75',
      'account_bank'      => '工商银行',
      'account_name'      => 'AOZdYGISxo4yw96uY1Pk7Rq79Jtt7+I8juwEc4P4TG5xzchG/5IL9DBd+Z0zZXkw==',
      'bank_address_code' => '110000',
      'bank_branch_id'    => '402713354941',
      'bank_name'         => '施秉县农村信用合作联社城关信用社',
      'account_number'    => 'd+xT+MQCvrLHUVDWv/8MR/dB7TkXLVfSrUxMPZy6jWWYzpRrEEaYQE8ZRGYoeorwC+w==',
    ],
    'contact_info'             => [
      'contact_type'                  => '65',
      'contact_name'                  => 'pVd1HJ6zyvPedzGaV+X3IdGdbDnuC4Eelw/wDa4SzfeespQO/0kjiwfqdfg==',
      'contact_id_doc_type'           => 'IDENTIFICATION_TYPE_IDCARD',
      'contact_id_card_number'        => 'pVd1HJ6zmty7/mYNxLMpRSvMRtelw/wDa4SzfeespQO/0kjiwfqdfg==',
      'contact_id_doc_copy'           => '',
      'contact_id_doc_copy_back'      => '',
      'contact_period_begin'          => '',
      'contact_period_end'            => '',
      'business_authorization_letter' => '',
      'mobile_phone'                  => 'pVd1HJ6zyvPedzGaV+X3qtmrq9bb9tPROvwia4ibL+F6mfjbzQIzfb3HHLEjZ4YiNWWNeespQO/0kjiwfqdfg==',
    ],
    'sales_scene_info'         => [
      'store_name'             => '爱烧烤',
      'store_url'              => 'http://www.qq.com',
      'store_qr_code'          => '',
      'mini_program_sub_appid' => '',
    ],
    'settlement_info'          => [
      'settlement_id'      => '',
      'qualification_type' => '',
    ],
    'merchant_shortname'       => '',
    'qualifications'           => ['MediaId'],
    'business_addition_pics'   => ['MediaId'],
    'business_addition_desc'   => ['MediaId'],
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
applyment_idinteger微信支付申请单号
out_request_nostring业务申请编号

参阅 官方文档 官方文档

Published on the GitHub by TheNorthMemory