Skip to content

查询分账回退结果

商户需要核实回退结果,可调用此接口查询回退结果

请求参数类型描述
out_return_nostring商户回退单号
queryobject声明请求的查询参数
sub_mchidstring子商户号
out_order_nostring商户分账单号
php
$instance->v3->profitsharing->returnOrders->_out_return_no_->getAsync([
  'out_return_no' => 'R20190516001',
  'query' => [
    'sub_mchid'    => '1900000109',
    'out_order_no' => 'P20190806125346',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/profitsharing/return-orders/{out_return_no}')->getAsync([
  'out_return_no' => 'R20190516001',
  'query' => [
    'sub_mchid'    => '1900000109',
    'out_order_no' => 'P20190806125346',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/profitsharing/return-orders/{out_return_no}']->getAsync([
  'out_return_no' => 'R20190516001',
  'query' => [
    'sub_mchid'    => '1900000109',
    'out_order_no' => 'P20190806125346',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->profitsharing->returnOrders->_out_return_no_->get([
  'out_return_no' => 'R20190516001',
  'query' => [
    'sub_mchid'    => '1900000109',
    'out_order_no' => 'P20190806125346',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/profitsharing/return-orders/{out_return_no}')->get([
  'out_return_no' => 'R20190516001',
  'query' => [
    'sub_mchid'    => '1900000109',
    'out_order_no' => 'P20190806125346',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/profitsharing/return-orders/{out_return_no}']->get([
  'out_return_no' => 'R20190516001',
  'query' => [
    'sub_mchid'    => '1900000109',
    'out_order_no' => 'P20190806125346',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
sub_mchidstring子商户号
order_idstring微信分账单号
out_order_nostring商户分账单号
out_return_nostring商户回退单号
return_idstring微信回退单号
return_mchidstring回退商户号
amountinteger回退金额
descriptionstring回退描述
resultstring回退结果
fail_reasonstring失败原因
create_timestring创建时间
finish_timestring完成时间

参阅 官方文档

Published on the GitHub by TheNorthMemory