Skip to content

银行特约商户违规信息查询

方便银行服务商查询特约商户违规记录

请求参数类型描述
securitytrue声明加载商户API证书
xmlobject声明请求的XML数据结构
mch_idstring商户号
sign_typestring签名类型
HMAC-SHA256 枚举值
begin_timestring开始时间
end_timestring结束时间
page_indexstring页码
page_sizestring每页返回的数量
violation_records_formatstring违规记录数据格式
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_codestring返回状态码
SUCCESS | FAIL 枚举值之一
return_msgstring错误码描述
error_codestring错误码
error_code_desstring错误代码描述
result_codestring返回状态码
SUCCESS | FAIL 枚举值之一
result_msgstring错误码描述
violation_recordsstring违规记录数据JSON格式字符串
total_sizenumber记录总数
violation_recordsobject[]违规记录列表
company_namestring公司名称
handle_methodstring处理方式
handle_statestring处理状态
punish_timestring处罚时间
sub_mch_idstring违规子商户号
deadlinestring最后处理时间

参阅 官方文档

Published on the GitHub by TheNorthMemory