Skip to content

查询子商户(融合钱包)

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

请求参数类型描述
base_uristring声明接入点https://api.mch.weixin.qq.com/hk/(国内接入)
sub_mchidstring子商户号
queryobject声明请求的查询参数
sp_appidstring机构appid
sp_mchidstring机构商户号
php
$instance->v3->merchants->_sub_mchid_->getAsync([
  'base_uri' => 'https://api.mch.weixin.qq.com/hk/', // 接入点(国内接入)
  'sub_mchid' => '20000100',
  'query' => [
    'sp_appid' => 'wx8888888888888888',
    'sp_mchid' => '3200000001',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/merchants/{sub_mchid}')->getAsync([
  'base_uri' => 'https://api.mch.weixin.qq.com/hk/', // 接入点(国内接入)
  'sub_mchid' => '20000100',
  'query' => [
    'sp_appid' => 'wx8888888888888888',
    'sp_mchid' => '3200000001',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/merchants/{sub_mchid}']->getAsync([
  'base_uri' => 'https://api.mch.weixin.qq.com/hk/', // 接入点(国内接入)
  'sub_mchid' => '20000100',
  'query' => [
    'sp_appid' => 'wx8888888888888888',
    'sp_mchid' => '3200000001',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->merchants->_sub_mchid_->get([
  'base_uri' => 'https://api.mch.weixin.qq.com/hk/', // 接入点(国内接入)
  'sub_mchid' => '20000100',
  'query' => [
    'sp_appid' => 'wx8888888888888888',
    'sp_mchid' => '3200000001',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/merchants/{sub_mchid}')->get([
  'base_uri' => 'https://api.mch.weixin.qq.com/hk/', // 接入点(国内接入)
  'sub_mchid' => '20000100',
  'query' => [
    'sp_appid' => 'wx8888888888888888',
    'sp_mchid' => '3200000001',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/merchants/{sub_mchid}']->get([
  'base_uri' => 'https://api.mch.weixin.qq.com/hk/', // 接入点(国内接入)
  'sub_mchid' => '20000100',
  'query' => [
    'sp_appid' => 'wx8888888888888888',
    'sp_mchid' => '3200000001',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
sub_mchidstring子商户号
namestring子商户全称
shortnamestring子商户简称
office_phonestring公司联系方式
merchant_country_codestring册国家或区域
business_categoryinteger类目
contactobject联系人信息
namestring联系人名称
phonestring联系人电话
emailstring联系人邮箱
merchant_typestring商户类型
registration_certificate_numberstring公司注册文件编号
registration_certificate_datestring公司注册文件过期时间
settlement_bank_numberstring子商户结算账户
businessobject业务信息
business_typestring业务类型
app_downloadstringAPP下载地址
websitestring业务网站
office_accountstring公众号
mini_programstring小程序
store_addressstring门店地址
mccstringMCC码
directorobject董事信息
namestring董事姓名
numberstring董事证件号码
principalobject负责人信息
namestring负责人姓名
numberstring负责人证件号码

参阅 官方文档

Published on the GitHub by TheNorthMemory