Skip to content

查询出境退回结果(通过商户出境退回单号)

通过商户出境退回单号查询出境退回处理结果。默认接口限频300/s

请求参数类型描述
out_return_nostring商户出境单号
queryobject声明请求的查询参数
sub_mchidstring二级商户号
php
$instance->v3->fundsToOversea->return->returnOrders->outReturnNo->_out_return_no_->getAsync([
  'out_return_no' => 'merchant123123',
  'query' => [
    'sub_mchid' => '1231231',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/funds-to-oversea/return/return-orders/out-return-no/{out_return_no}')->getAsync([
  'out_return_no' => 'merchant123123',
  'query' => [
    'sub_mchid' => '1231231',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/funds-to-oversea/return/return-orders/out-return-no/{out_return_no}']->getAsync([
  'out_return_no' => 'merchant123123',
  'query' => [
    'sub_mchid' => '1231231',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->fundsToOversea->return->returnOrders->outReturnNo->_out_return_no_->get([
  'out_return_no' => 'merchant123123',
  'query' => [
    'sub_mchid' => '1231231',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/funds-to-oversea/return/return-orders/out-return-no/{out_return_no}')->get([
  'out_return_no' => 'merchant123123',
  'query' => [
    'sub_mchid' => '1231231',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/funds-to-oversea/return/return-orders/out-return-no/{out_return_no}']->get([
  'out_return_no' => 'merchant123123',
  'query' => [
    'sub_mchid' => '1231231',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
out_return_nostring商户出境退回单号
sub_mchidstring二级商户号
return_idstring微信出境退回单号
out_order_idstring商户出境单号
transaction_idstring微信订单号
refund_idstring微信退款单号
amountinteger退回金额
statestring出境退回状态
PROCESSING | SUCCESS | FAILED 枚举值之一
create_timestring创建时间
success_timestring成功时间
fail_reasonstring失败原因

参阅 官方文档

Published on the GitHub by TheNorthMemory