银行特约商户违规信息查询
方便银行服务商查询特约商户违规记录
请求参数 | 类型 | 描述 |
---|---|---|
security | true | 声明加载商户API证书 |
xml | object | 声明请求的XML 数据结构 |
mch_id | string | 商户号 |
sign_type | string | 签名类型 |
begin_time | string | 开始时间 |
end_time | string | 结束时间 |
page_index | string | 页码 |
page_size | string | 每页返回的数量 |
violation_records_format | string | 违规记录数据格式csv | json 枚举值之一 |
php
$instance->v2->risk->getviolation->postAsync([
'security' => true,
'xml' => [
'mch_id' => '1230000110',
'sign_type' => 'HMAC-SHA256',
'begin_time' => '2020-05-11 10:10:00',
'end_time' => '2020-05-11 10:10:00',
'page_index' => '1',
'page_size' => '10',
'violation_records_format' => 'json',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance->chain('v2/risk/getviolation')->postAsync([
'security' => true,
'xml' => [
'mch_id' => '1230000110',
'sign_type' => 'HMAC-SHA256',
'begin_time' => '2020-05-11 10:10:00',
'end_time' => '2020-05-11 10:10:00',
'page_index' => '1',
'page_size' => '10',
'violation_records_format' => 'json',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance['v2/risk/getviolation']->postAsync([
'security' => true,
'xml' => [
'mch_id' => '1230000110',
'sign_type' => 'HMAC-SHA256',
'begin_time' => '2020-05-11 10:10:00',
'end_time' => '2020-05-11 10:10:00',
'page_index' => '1',
'page_size' => '10',
'violation_records_format' => 'json',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$response = $instance->v2->risk->getviolation->post([
'security' => true,
'xml' => [
'mch_id' => '1230000110',
'sign_type' => 'HMAC-SHA256',
'begin_time' => '2020-05-11 10:10:00',
'end_time' => '2020-05-11 10:10:00',
'page_index' => '1',
'page_size' => '10',
'violation_records_format' => 'json',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance->chain('v2/risk/getviolation')->post([
'security' => true,
'xml' => [
'mch_id' => '1230000110',
'sign_type' => 'HMAC-SHA256',
'begin_time' => '2020-05-11 10:10:00',
'end_time' => '2020-05-11 10:10:00',
'page_index' => '1',
'page_size' => '10',
'violation_records_format' => 'json',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance['v2/risk/getviolation']->post([
'security' => true,
'xml' => [
'mch_id' => '1230000110',
'sign_type' => 'HMAC-SHA256',
'begin_time' => '2020-05-11 10:10:00',
'end_time' => '2020-05-11 10:10:00',
'page_index' => '1',
'page_size' => '10',
'violation_records_format' => 'json',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
返回字典 | 类型 | 描述 |
---|---|---|
return_code | string | 返回状态码SUCCESS | FAIL 枚举值之一 |
return_msg | string | 错误码描述 |
error_code | string | 错误码 |
error_code_des | string | 错误代码描述 |
result_code | string | 返回状态码SUCCESS | FAIL 枚举值之一 |
result_msg | string | 错误码描述 |
violation_records | string | 违规记录数据JSON 格式字符串 |
total_size | number | 记录总数 |
violation_records | object[] | 违规记录列表 |
company_name | string | 公司名称 |
handle_method | string | 处理方式 |
handle_state | string | 处理状态 |
punish_time | string | 处罚时间 |
sub_mch_id | string | 违规子商户号 |
deadline | string | 最后处理时间 |
参阅 官方文档