银行特约商户录入/银行特约商户资料查询
银行服务商接入微信支付前需要将下属特约商户基本资料信息报备给微信,在微信支付侧生成特约商户识别码后方可提交微信支付。特约商户识别码是区分子商户交易、结算和清分的标志。提供给银行服务商报备后的商户查询。通过MCHID(识别码),返回商户全部资料信息。
请求参数 | 类型 | 描述 |
---|---|---|
security | true | 声明加载商户API证书 |
xml | object | 声明请求的XML 数据结构 |
appid | string | 公众账号ID |
mch_id | string | 商户号 |
merchant_name | string | 商户名称 |
sub_mch_id | string | 商户识别码 |
page_index | string | 页码 |
page_size | string | 展示资料个数 |
query | object | 声明请求的查询参数 |
action | string | add | query 枚举值之一 |
php
$instance->v2->secapi->mch->submchmanage->postAsync([
'security' => true,
'xml' => [
'appid' => 'wxd678efh567hg6787',
'mch_id' => '1230000109',
'merchant_name' => '商户名称',
'sub_mch_id' => '1230000109',
'page_index' => '1',
'page_size' => '10',
],
'query' => [
'action' => 'add',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance->chain('v2/secapi/mch/submchmanage')->postAsync([
'security' => true,
'xml' => [
'appid' => 'wxd678efh567hg6787',
'mch_id' => '1230000109',
'merchant_name' => '商户名称',
'sub_mch_id' => '1230000109',
'page_index' => '1',
'page_size' => '10',
],
'query' => [
'action' => 'add',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance['v2/secapi/mch/submchmanage']->postAsync([
'security' => true,
'xml' => [
'appid' => 'wxd678efh567hg6787',
'mch_id' => '1230000109',
'merchant_name' => '商户名称',
'sub_mch_id' => '1230000109',
'page_index' => '1',
'page_size' => '10',
],
'query' => [
'action' => 'add',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$response = $instance->v2->secapi->mch->submchmanage->post([
'security' => true,
'xml' => [
'appid' => 'wxd678efh567hg6787',
'mch_id' => '1230000109',
'merchant_name' => '商户名称',
'sub_mch_id' => '1230000109',
'page_index' => '1',
'page_size' => '10',
],
'query' => [
'action' => 'add',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance->chain('v2/secapi/mch/submchmanage')->post([
'security' => true,
'xml' => [
'appid' => 'wxd678efh567hg6787',
'mch_id' => '1230000109',
'merchant_name' => '商户名称',
'sub_mch_id' => '1230000109',
'page_index' => '1',
'page_size' => '10',
],
'query' => [
'action' => 'add',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance['v2/secapi/mch/submchmanage']->post([
'security' => true,
'xml' => [
'appid' => 'wxd678efh567hg6787',
'mch_id' => '1230000109',
'merchant_name' => '商户名称',
'sub_mch_id' => '1230000109',
'page_index' => '1',
'page_size' => '10',
],
'query' => [
'action' => 'add',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
返回字典 | 类型 | 描述 |
---|---|---|
return_code | string | 返回状态码SUCCESS | FAIL 枚举值之一 |
return_msg | string | 返回信息 |
result_code | string | 业务结果SUCCESS | FAIL 枚举值之一 |
result_msg | string | 业务结果描述 |
total | string | 总记录数 |
mchinfo | object[] | 商户信息列表 |
appid | string | 公众账号ID |
mch_id | string | 商户号 |
merchant_name | string | 商户名称 |
merchant_shortname | string | 商户简称 |
service_phone | string | 客服电话 |
contact | string | 联系人 |
contact_phone | string | 联系电话 |
contact_email | string | 联系邮箱 |
business | string | 经营类目 |
channel_id | string | 渠道商商户号 |
channel_name | string | 渠道商名称 |