Skip to content

查询子商户

用于机构查询子商户创建是否成功,接口只提供单个子商户信息查询。

请求参数类型描述
queryinstitutionsubstring固定值queryInstitutionsub
xmlobject声明请求的XML数据结构
app_idstring机构appid
mch_idstring机构商户号
sub_mch_idstring子商户号
noncelessboolean声明请求的XML无随机字符串参数
固定值true
securityboolean声明加载商户API证书
固定值true
php
$instance->v2->secapi->mch->_queryinstitutionsub_->postAsync([
  'queryinstitutionsub' => 'queryInstitutionsub', // 固定参数(URI上有大写字符)
  'xml' => [
    'app_id' => 'wx8888888888888888',
    'mch_id' => '3200000001',
    'sub_mch_id' => '20000100',
  ],
  'nonceless' => true,
  'security' => true,
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance->chain('v2/secapi/mch/{queryinstitutionsub}')->postAsync([
  'queryinstitutionsub' => 'queryInstitutionsub', // 固定参数(URI上有大写字符)
  'xml' => [
    'app_id' => 'wx8888888888888888',
    'mch_id' => '3200000001',
    'sub_mch_id' => '20000100',
  ],
  'nonceless' => true,
  'security' => true,
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance['v2/secapi/mch/{queryinstitutionsub}']->postAsync([
  'queryinstitutionsub' => 'queryInstitutionsub', // 固定参数(URI上有大写字符)
  'xml' => [
    'app_id' => 'wx8888888888888888',
    'mch_id' => '3200000001',
    'sub_mch_id' => '20000100',
  ],
  'nonceless' => true,
  'security' => true,
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$response = $instance->v2->secapi->mch->_queryinstitutionsub_->post([
  'queryinstitutionsub' => 'queryInstitutionsub', // 固定参数(URI上有大写字符)
  'xml' => [
    'app_id' => 'wx8888888888888888',
    'mch_id' => '3200000001',
    'sub_mch_id' => '20000100',
  ],
  'nonceless' => true,
  'security' => true,
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance->chain('v2/secapi/mch/{queryinstitutionsub}')->post([
  'queryinstitutionsub' => 'queryInstitutionsub', // 固定参数(URI上有大写字符)
  'xml' => [
    'app_id' => 'wx8888888888888888',
    'mch_id' => '3200000001',
    'sub_mch_id' => '20000100',
  ],
  'nonceless' => true,
  'security' => true,
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance['v2/secapi/mch/{queryinstitutionsub}']->post([
  'queryinstitutionsub' => 'queryInstitutionsub', // 固定参数(URI上有大写字符)
  'xml' => [
    'app_id' => 'wx8888888888888888',
    'mch_id' => '3200000001',
    'sub_mch_id' => '20000100',
  ],
  'nonceless' => true,
  'security' => true,
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
返回字典类型描述
return_codestring返回状态码
return_msgstring返回信息
result_codestring业务返回码
err_codestring错误编码
err_code_desstring错误描述
signstring签名
sub_mch_idstring子商户号
merchant_namestring子商户名称
merchant_shortnamestring子商户简称
merchant_country_codestring注册国家或区域
business_categorystring业务类目
mccstringMCC
office_phonestring公司联系电话
contact_namestring联系人姓名
contact_phonestring联系人手机
contact_emailstring联系人邮箱
merchant_remarkstring子商户唯一标识
business_typestring业务类型
merchant_typestring商户类型
registration_certificate_numberstring公司注册文件编号
registration_certificate_datestring公司注册文件过期时间
app_downloadstringAPP下载链接
business_websitestring业务网站
office_accountstring公众号
mini_programstring小程序
store_addressstring门店地址
director_namestring董事姓名
director_id_numberstring董事证件编号
principal_namestring负责人姓名
principal_id_numberstring负责人证件编号
settlement_bank_numberstring子商户结算银行账户
channel_idstring渠道编号
h5_authorization_statestringH5支付权限状态
APPROVED | UNAUTHORIZED | UNDER_REVIEW | REJECTED | UNDER_PUNISHMENT | APPLICATION_FAILED 枚举值之一
h5_audit_reject_detailstringH5驳回详情
sub_mch_statusstring子商户状态
application_statusstring子商户入驻状态
application_reject_detailstring子商户入驻驳回详情

参阅 官方文档

Published on the GitHub by TheNorthMemory