间联模式查询商户审核状态开放接口
为了提升特约商户录入质量,发现并及时中止特约商户风险交易行为,现面向银行服务商开放风险商户数据,支持银行在录入商户前提前核查商户风险、了解风险交易、并且将风险处理结果同步微信支付.用于服务商/银行准入商户时,根据身份证,银行卡号,营业执照等信息查询商户是否有风险。说明:该接口需要提供以下信息至少一种,提供的信息越多,查询结果越准确。
请求参数 | 类型 | 描述 |
---|---|---|
xml | object | 声明请求的XML 数据结构 |
mch_id | string | 服务商号 |
sub_mch_id | string | 子商户号 |
channel_id | string | 渠道号 |
sign_type | string | 签名类型HMAC-SHA256 枚举值 |
php
$instance->v2->mchrisk->bankquerymchauditinfo->postAsync([
'xml' => [
'mch_id' => '1900000109',
'sub_mch_id' => '999990016',
'channel_id' => '999990017',
'sign_type' => 'HMAC-SHA256',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance->chain('v2/mchrisk/bankquerymchauditinfo')->postAsync([
'xml' => [
'mch_id' => '1900000109',
'sub_mch_id' => '999990016',
'channel_id' => '999990017',
'sign_type' => 'HMAC-SHA256',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance['v2/mchrisk/bankquerymchauditinfo']->postAsync([
'xml' => [
'mch_id' => '1900000109',
'sub_mch_id' => '999990016',
'channel_id' => '999990017',
'sign_type' => 'HMAC-SHA256',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$response = $instance->v2->mchrisk->bankquerymchauditinfo->post([
'xml' => [
'mch_id' => '1900000109',
'sub_mch_id' => '999990016',
'channel_id' => '999990017',
'sign_type' => 'HMAC-SHA256',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance->chain('v2/mchrisk/bankquerymchauditinfo')->post([
'xml' => [
'mch_id' => '1900000109',
'sub_mch_id' => '999990016',
'channel_id' => '999990017',
'sign_type' => 'HMAC-SHA256',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance['v2/mchrisk/bankquerymchauditinfo']->post([
'xml' => [
'mch_id' => '1900000109',
'sub_mch_id' => '999990016',
'channel_id' => '999990017',
'sign_type' => 'HMAC-SHA256',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
返回字典 | 类型 | 描述 |
---|---|---|
return_code | string | 返回状态码SUCCESS | FAIL 枚举值之一 |
return_msg | string | 返回结果 |
result_code | string | 业务结果SUCCESS | FAIL 枚举值之一 |
err_code | string | 错误代码 |
err_code_des | string | 错误描述 |
mch_id | string | 服务商号 |
sub_mch_id | string | 子商户号 |
channel_id | string | 渠道号 |
audit_status | string | 审核状态 |
audit_comment | string | 审核备注 |
nonce_str | string | 随机字符串 |
sign | string | 签名 |
sign_type | string | 签名类型HMAC-SHA256 枚举值 |
参阅 官方文档