查询分账回退结果
商户需要核实回退结果,可调用此接口查询回退结果
请求参数 | 类型 | 描述 |
---|---|---|
out_return_no | string | 商户回退单号 |
query | object | 声明请求的查询参数 |
sub_mchid | string | 子商户号 |
out_order_no | string | 商户分账单号 |
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_mchid | string | 子商户号 |
order_id | string | 微信分账单号 |
out_order_no | string | 商户分账单号 |
out_return_no | string | 商户回退单号 |
return_id | string | 微信回退单号 |
return_mchid | string | 回退商户号 |
amount | integer | 回退金额 |
description | string | 回退描述 |
result | string | 回退结果 |
fail_reason | string | 失败原因 |
create_time | string | 创建时间 |
finish_time | string | 完成时间 |
参阅 官方文档