Skip to content

回传处置结果

商户查询订单风险后,调用该接口回传对风险订单/风险商户的调查、处置信息。

请求参数类型描述
jsonobject声明请求的JSON数据结构
sp_mchidstring服务商商户号
sub_mchidstring子商户号
mchidstring商户号
out_trade_nostring商户订单号
final_risk_resultnumber最终风险结论
1 | 2 枚举值之一
final_risk_typenumber最终风险类型
1 | 2 | 3 | 4 枚举值之一
disp_conclusionnumber[]处置结论
1 | 2 | 3 枚举值之一
disp_additionstring处置补充
exist_complaintboolean是否有投诉
refund_amountnumber退款金额
php
$instance->v3->merchantRiskManage->ecTradeRisk->recvDisposeResult->postAsync([
  'json' => [
    'sp_mchid'          => '1900000109',
    'sub_mchid'         => '1900009231',
    'mchid'             => '1900009231',
    'out_trade_no'      => '20150806125346',
    'final_risk_result' => 1,
    'final_risk_type'   => 1,
    'disp_conclusion'   => [1, 2, 3],
    'disp_addition'     => 'example_disp_addition',
    'exist_complaint'   => true,
    'refund_amount'     => 100,
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/merchant-risk-manage/ec-trade-risk/recv-dispose-result')->postAsync([
  'json' => [
    'sp_mchid'          => '1900000109',
    'sub_mchid'         => '1900009231',
    'mchid'             => '1900009231',
    'out_trade_no'      => '20150806125346',
    'final_risk_result' => 1,
    'final_risk_type'   => 1,
    'disp_conclusion'   => [1, 2, 3],
    'disp_addition'     => 'example_disp_addition',
    'exist_complaint'   => true,
    'refund_amount'     => 100,
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/merchant-risk-manage/ec-trade-risk/recv-dispose-result']->postAsync([
  'json' => [
    'sp_mchid'          => '1900000109',
    'sub_mchid'         => '1900009231',
    'mchid'             => '1900009231',
    'out_trade_no'      => '20150806125346',
    'final_risk_result' => 1,
    'final_risk_type'   => 1,
    'disp_conclusion'   => [1, 2, 3],
    'disp_addition'     => 'example_disp_addition',
    'exist_complaint'   => true,
    'refund_amount'     => 100,
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->merchantRiskManage->ecTradeRisk->recvDisposeResult->post([
  'json' => [
    'sp_mchid'          => '1900000109',
    'sub_mchid'         => '1900009231',
    'mchid'             => '1900009231',
    'out_trade_no'      => '20150806125346',
    'final_risk_result' => 1,
    'final_risk_type'   => 1,
    'disp_conclusion'   => [1, 2, 3],
    'disp_addition'     => 'example_disp_addition',
    'exist_complaint'   => true,
    'refund_amount'     => 100,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/merchant-risk-manage/ec-trade-risk/recv-dispose-result')->post([
  'json' => [
    'sp_mchid'          => '1900000109',
    'sub_mchid'         => '1900009231',
    'mchid'             => '1900009231',
    'out_trade_no'      => '20150806125346',
    'final_risk_result' => 1,
    'final_risk_type'   => 1,
    'disp_conclusion'   => [1, 2, 3],
    'disp_addition'     => 'example_disp_addition',
    'exist_complaint'   => true,
    'refund_amount'     => 100,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/merchant-risk-manage/ec-trade-risk/recv-dispose-result']->post([
  'json' => [
    'sp_mchid'          => '1900000109',
    'sub_mchid'         => '1900009231',
    'mchid'             => '1900009231',
    'out_trade_no'      => '20150806125346',
    'final_risk_result' => 1,
    'final_risk_type'   => 1,
    'disp_conclusion'   => [1, 2, 3],
    'disp_addition'     => 'example_disp_addition',
    'exist_complaint'   => true,
    'refund_amount'     => 100,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
rsp_msgstring返回描述

参阅 官方文档 官方文档

Published on the GitHub by TheNorthMemory