事前-风险商户核查接口
为了提升特约商户录入质量,发现并及时中止特约商户风险交易行为,现面向银行服务商开放风险商户数据,支持银行在录入商户前提前核查商户风险、了解风险交易、并且将风险处理结果同步微信支付。用于服务商/银行准入商户时,根据身份证,银行卡号,营业执照等信息查询商户是否有风险。
请求参数 | 类型 | 描述 |
---|---|---|
security | true | 声明加载商户API证书 |
xml | object | 声明请求的XML 数据结构 |
mch_id | string | 服务商号 |
cert_serial_number | string | 平台证书序列号 |
certificates_number | string | 身份证号(需加密) |
certificates_name | string | 身份证所有人姓名(需加密) |
settlement_card_no | string | 结算账号(需加密) |
settlement_card_name | string | 结算户名(需加密) |
settlement_card_bank | string | 结算银行 |
business_license_number | string | 营业执照编号(需加密) |
company_name | string | 公司名称 |
store_address | string | 门店地址 |
store_longitude | string | 门店经度 |
store_latitude | string | 门店纬度 |
sign_type | string | 签名类型HMAC-SHA256 枚举值 |
php
$instance->v2->mchrisk->querymchrisk->postAsync([
'security' => true,
'xml' => [
'mch_id' => '1900000109',
'cert_serial_number' => 'XXXXX',
'certificates_number' => '8609cb22e1774a50a930e414cc71eca06121bcd266335cda230d24a7886a8d9f',
'certificates_name' => 'ca775af5f841bdf424b2e6eb86a6e21e',
'settlement_card_no' => '8609cb22e1774a50a930e414cc71eca06121bcd266335cda230d24a7886a8d9f',
'settlement_card_name' => 'ca775af5f841bdf424b2e6eb86a6e21e',
'settlement_card_bank' => '招商银行科技园支行',
'business_license_number' => 'ca775af5f841bdf424b2e6eb86a6e21e',
'company_name' => 'XXXXX有限公司',
'store_address' => '广东省深圳市南山区深南大道10000号',
'store_longitude' => '22.5461478801',
'store_latitude' => '113.9410519639',
'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/querymchrisk')->postAsync([
'security' => true,
'xml' => [
'mch_id' => '1900000109',
'cert_serial_number' => 'XXXXX',
'certificates_number' => '8609cb22e1774a50a930e414cc71eca06121bcd266335cda230d24a7886a8d9f',
'certificates_name' => 'ca775af5f841bdf424b2e6eb86a6e21e',
'settlement_card_no' => '8609cb22e1774a50a930e414cc71eca06121bcd266335cda230d24a7886a8d9f',
'settlement_card_name' => 'ca775af5f841bdf424b2e6eb86a6e21e',
'settlement_card_bank' => '招商银行科技园支行',
'business_license_number' => 'ca775af5f841bdf424b2e6eb86a6e21e',
'company_name' => 'XXXXX有限公司',
'store_address' => '广东省深圳市南山区深南大道10000号',
'store_longitude' => '22.5461478801',
'store_latitude' => '113.9410519639',
'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/querymchrisk']->postAsync([
'security' => true,
'xml' => [
'mch_id' => '1900000109',
'cert_serial_number' => 'XXXXX',
'certificates_number' => '8609cb22e1774a50a930e414cc71eca06121bcd266335cda230d24a7886a8d9f',
'certificates_name' => 'ca775af5f841bdf424b2e6eb86a6e21e',
'settlement_card_no' => '8609cb22e1774a50a930e414cc71eca06121bcd266335cda230d24a7886a8d9f',
'settlement_card_name' => 'ca775af5f841bdf424b2e6eb86a6e21e',
'settlement_card_bank' => '招商银行科技园支行',
'business_license_number' => 'ca775af5f841bdf424b2e6eb86a6e21e',
'company_name' => 'XXXXX有限公司',
'store_address' => '广东省深圳市南山区深南大道10000号',
'store_longitude' => '22.5461478801',
'store_latitude' => '113.9410519639',
'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->querymchrisk->post([
'security' => true,
'xml' => [
'mch_id' => '1900000109',
'cert_serial_number' => 'XXXXX',
'certificates_number' => '8609cb22e1774a50a930e414cc71eca06121bcd266335cda230d24a7886a8d9f',
'certificates_name' => 'ca775af5f841bdf424b2e6eb86a6e21e',
'settlement_card_no' => '8609cb22e1774a50a930e414cc71eca06121bcd266335cda230d24a7886a8d9f',
'settlement_card_name' => 'ca775af5f841bdf424b2e6eb86a6e21e',
'settlement_card_bank' => '招商银行科技园支行',
'business_license_number' => 'ca775af5f841bdf424b2e6eb86a6e21e',
'company_name' => 'XXXXX有限公司',
'store_address' => '广东省深圳市南山区深南大道10000号',
'store_longitude' => '22.5461478801',
'store_latitude' => '113.9410519639',
'sign_type' => 'HMAC-SHA256',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance->chain('v2/mchrisk/querymchrisk')->post([
'security' => true,
'xml' => [
'mch_id' => '1900000109',
'cert_serial_number' => 'XXXXX',
'certificates_number' => '8609cb22e1774a50a930e414cc71eca06121bcd266335cda230d24a7886a8d9f',
'certificates_name' => 'ca775af5f841bdf424b2e6eb86a6e21e',
'settlement_card_no' => '8609cb22e1774a50a930e414cc71eca06121bcd266335cda230d24a7886a8d9f',
'settlement_card_name' => 'ca775af5f841bdf424b2e6eb86a6e21e',
'settlement_card_bank' => '招商银行科技园支行',
'business_license_number' => 'ca775af5f841bdf424b2e6eb86a6e21e',
'company_name' => 'XXXXX有限公司',
'store_address' => '广东省深圳市南山区深南大道10000号',
'store_longitude' => '22.5461478801',
'store_latitude' => '113.9410519639',
'sign_type' => 'HMAC-SHA256',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance['v2/mchrisk/querymchrisk']->post([
'security' => true,
'xml' => [
'mch_id' => '1900000109',
'cert_serial_number' => 'XXXXX',
'certificates_number' => '8609cb22e1774a50a930e414cc71eca06121bcd266335cda230d24a7886a8d9f',
'certificates_name' => 'ca775af5f841bdf424b2e6eb86a6e21e',
'settlement_card_no' => '8609cb22e1774a50a930e414cc71eca06121bcd266335cda230d24a7886a8d9f',
'settlement_card_name' => 'ca775af5f841bdf424b2e6eb86a6e21e',
'settlement_card_bank' => '招商银行科技园支行',
'business_license_number' => 'ca775af5f841bdf424b2e6eb86a6e21e',
'company_name' => 'XXXXX有限公司',
'store_address' => '广东省深圳市南山区深南大道10000号',
'store_longitude' => '22.5461478801',
'store_latitude' => '113.9410519639',
'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 枚举值之一 |
mch_id | string | 服务商号 |
risk_level | string | 风险级别 |
risk_level_desc | string | 风险描述 |
参阅 官方文档