Skip to content

查询风险信息

请求参数类型描述
queryobject声明请求的查询参数
sp_mchidstring微信支付分配的服务商唯一标识
acquiring_bank_idstring微信支付分配的从业机构唯一标识
channel_idstring微信支付分配的渠道商唯一标识
sub_mchidstring上报订单风险数据的商户号信息
out_trade_nostring商户系统内部订单号,只能是数字、大小写字母_-*且在同一个商户号下唯一
complaints_informationstring投诉信息
php
$instance->v3->merchantRiskManage->tradeRiskInformation->getAsync([
  'query' => [
    'sp_mchid' => '1900000109',
    'acquiring_bank_id' => '1356485',
    'channel_id' => '1900000108',
    'sub_mchid' => '1900009231',
    'out_trade_no' => '1217752501201407033233368018',
    'complaints_information' => '商家说高额返利,支付很大金额之后发现并没有返利,是骗子',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/merchant-risk-manage/trade-risk-information')->getAsync([
  'query' => [
    'sp_mchid' => '1900000109',
    'acquiring_bank_id' => '1356485',
    'channel_id' => '1900000108',
    'sub_mchid' => '1900009231',
    'out_trade_no' => '1217752501201407033233368018',
    'complaints_information' => '商家说高额返利,支付很大金额之后发现并没有返利,是骗子',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/merchant-risk-manage/trade-risk-information']->getAsync([
  'query' => [
    'sp_mchid' => '1900000109',
    'acquiring_bank_id' => '1356485',
    'channel_id' => '1900000108',
    'sub_mchid' => '1900009231',
    'out_trade_no' => '1217752501201407033233368018',
    'complaints_information' => '商家说高额返利,支付很大金额之后发现并没有返利,是骗子',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->merchantRiskManage->tradeRiskInformation->get([
  'query' => [
    'sp_mchid' => '1900000109',
    'acquiring_bank_id' => '1356485',
    'channel_id' => '1900000108',
    'sub_mchid' => '1900009231',
    'out_trade_no' => '1217752501201407033233368018',
    'complaints_information' => '商家说高额返利,支付很大金额之后发现并没有返利,是骗子',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/merchant-risk-manage/trade-risk-information')->get([
  'query' => [
    'sp_mchid' => '1900000109',
    'acquiring_bank_id' => '1356485',
    'channel_id' => '1900000108',
    'sub_mchid' => '1900009231',
    'out_trade_no' => '1217752501201407033233368018',
    'complaints_information' => '商家说高额返利,支付很大金额之后发现并没有返利,是骗子',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/merchant-risk-manage/trade-risk-information']->get([
  'query' => [
    'sp_mchid' => '1900000109',
    'acquiring_bank_id' => '1356485',
    'channel_id' => '1900000108',
    'sub_mchid' => '1900009231',
    'out_trade_no' => '1217752501201407033233368018',
    'complaints_information' => '商家说高额返利,支付很大金额之后发现并没有返利,是骗子',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述

参阅 官方文档

Published on the GitHub by TheNorthMemory