Skip to content

处置结果回传

从业机构/服务商/渠道商/商户查询订单风险后,调用该接口回传对风险订单/风险商户的调查、处置信息。

请求参数类型描述
jsonobject声明请求的JSON数据结构
sp_mchidstring服务商商户号
acquiring_bank_idstring从业机构商户号
channel_idstring渠道号
sub_mchidstring子商户号
out_trade_nostring商户订单号
risk_typestring风险类型
OTHER_RISK | INDUCE_PAYMENT | FRAUD | GAMBLING | CYBERSEX 枚举值之一
punish_typestring处置手段
OTHER_PUNISH | DISABLE_PAYMENT | SUSPEND_SETTLEMENT | DISABLE_WITHDRAW | REMOVE_MERCHANTS | ADD_MERCHANTS_BLACKLIST | REFUND | FREEZING_FUND_BY_TRANSACTION | FREEZING_FUND_BY_MERCHANTS | BLOCKED_USER 枚举值之一
additional_punish_typestring处置手段补充
complaints_informationstring投诉信息
php
$instance->v3->merchantRiskManage->tradeRiskResult->postAsync([
  'json' => [
    'sp_mchid'               => '1900000109',
    'acquiring_bank_id'      => '1356485',
    'channel_id'             => '1900000108',
    'sub_mchid'              => '1900009231',
    'out_trade_no'           => '1217752501201407033233368018',
    'risk_type'              => 'OTHER_RISK',
    'punish_type'            => 'OTHER_PUNISH',
    'additional_punish_type' => 'SUSPEND_SETTLEMENT_NDAYS:10',
    '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-result')->postAsync([
  'json' => [
    'sp_mchid'               => '1900000109',
    'acquiring_bank_id'      => '1356485',
    'channel_id'             => '1900000108',
    'sub_mchid'              => '1900009231',
    'out_trade_no'           => '1217752501201407033233368018',
    'risk_type'              => 'OTHER_RISK',
    'punish_type'            => 'OTHER_PUNISH',
    'additional_punish_type' => 'SUSPEND_SETTLEMENT_NDAYS:10',
    '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-result']->postAsync([
  'json' => [
    'sp_mchid'               => '1900000109',
    'acquiring_bank_id'      => '1356485',
    'channel_id'             => '1900000108',
    'sub_mchid'              => '1900009231',
    'out_trade_no'           => '1217752501201407033233368018',
    'risk_type'              => 'OTHER_RISK',
    'punish_type'            => 'OTHER_PUNISH',
    'additional_punish_type' => 'SUSPEND_SETTLEMENT_NDAYS:10',
    'complaints_information' => '商家说高额返利,支付很大金额之后发现并没有返利,是骗子',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->merchantRiskManage->tradeRiskResult->post([
  'json' => [
    'sp_mchid'               => '1900000109',
    'acquiring_bank_id'      => '1356485',
    'channel_id'             => '1900000108',
    'sub_mchid'              => '1900009231',
    'out_trade_no'           => '1217752501201407033233368018',
    'risk_type'              => 'OTHER_RISK',
    'punish_type'            => 'OTHER_PUNISH',
    'additional_punish_type' => 'SUSPEND_SETTLEMENT_NDAYS:10',
    'complaints_information' => '商家说高额返利,支付很大金额之后发现并没有返利,是骗子',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/merchant-risk-manage/trade-risk-result')->post([
  'json' => [
    'sp_mchid'               => '1900000109',
    'acquiring_bank_id'      => '1356485',
    'channel_id'             => '1900000108',
    'sub_mchid'              => '1900009231',
    'out_trade_no'           => '1217752501201407033233368018',
    'risk_type'              => 'OTHER_RISK',
    'punish_type'            => 'OTHER_PUNISH',
    'additional_punish_type' => 'SUSPEND_SETTLEMENT_NDAYS:10',
    'complaints_information' => '商家说高额返利,支付很大金额之后发现并没有返利,是骗子',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/merchant-risk-manage/trade-risk-result']->post([
  'json' => [
    'sp_mchid'               => '1900000109',
    'acquiring_bank_id'      => '1356485',
    'channel_id'             => '1900000108',
    'sub_mchid'              => '1900009231',
    'out_trade_no'           => '1217752501201407033233368018',
    'risk_type'              => 'OTHER_RISK',
    'punish_type'            => 'OTHER_PUNISH',
    'additional_punish_type' => 'SUSPEND_SETTLEMENT_NDAYS:10',
    'complaints_information' => '商家说高额返利,支付很大金额之后发现并没有返利,是骗子',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
sp_mchidstring服务商商户号
acquiring_bank_idstring从业机构商户号
channel_idstring渠道号
sub_mchidstring子商户号
out_trade_nostring商户订单号
risk_typestring风险类型
OTHER_RISK | INDUCE_PAYMENT | FRAUD | GAMBLING | CYBERSEX 枚举值之一
punish_typestring处置手段
OTHER_PUNISH | DISABLE_PAYMENT | SUSPEND_SETTLEMENT | DISABLE_WITHDRAW | REMOVE_MERCHANTS | ADD_MERCHANTS_BLACKLIST | REFUND | FREEZING_FUND_BY_TRANSACTION | FREEZING_FUND_BY_MERCHANTS | BLOCKED_USER 枚举值之一
additional_punish_typestring处置手段补充
punish_descriptionstring处置手段描述

参阅 官方文档

Published on the GitHub by TheNorthMemory