Skip to content

申请资金出境退回

商户可通过该接口发起资金出境退回申请,用于上报已跨境订单的退款信息。默认接口限频150/s

请求参数类型描述
jsonobject声明请求的JSON数据结构
out_return_nostring商户出境退回单号
sub_mchidstring二级商户号
out_order_idstring商户出境单号
transaction_idstring微信订单号
refund_idstring微信退款单号
amountinteger退回金额
php
$instance->v3->fundsToOversea->return->returnOrders->postAsync([
  'json' => [
    'out_return_no'  => 'R20250220103930',
    'sub_mchid'      => '123456',
    'out_order_id'   => 'merchant_1123123',
    'transaction_id' => '420000000000000010',
    'refund_id'      => '5017752501201407033233368018',
    'amount'         => 100,
  ],
])
->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')->postAsync([
  'json' => [
    'out_return_no'  => 'R20250220103930',
    'sub_mchid'      => '123456',
    'out_order_id'   => 'merchant_1123123',
    'transaction_id' => '420000000000000010',
    'refund_id'      => '5017752501201407033233368018',
    'amount'         => 100,
  ],
])
->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']->postAsync([
  'json' => [
    'out_return_no'  => 'R20250220103930',
    'sub_mchid'      => '123456',
    'out_order_id'   => 'merchant_1123123',
    'transaction_id' => '420000000000000010',
    'refund_id'      => '5017752501201407033233368018',
    'amount'         => 100,
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->fundsToOversea->return->returnOrders->post([
  'json' => [
    'out_return_no'  => 'R20250220103930',
    'sub_mchid'      => '123456',
    'out_order_id'   => 'merchant_1123123',
    'transaction_id' => '420000000000000010',
    'refund_id'      => '5017752501201407033233368018',
    'amount'         => 100,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/funds-to-oversea/return/return-orders')->post([
  'json' => [
    'out_return_no'  => 'R20250220103930',
    'sub_mchid'      => '123456',
    'out_order_id'   => 'merchant_1123123',
    'transaction_id' => '420000000000000010',
    'refund_id'      => '5017752501201407033233368018',
    'amount'         => 100,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/funds-to-oversea/return/return-orders']->post([
  'json' => [
    'out_return_no'  => 'R20250220103930',
    'sub_mchid'      => '123456',
    'out_order_id'   => 'merchant_1123123',
    'transaction_id' => '420000000000000010',
    'refund_id'      => '5017752501201407033233368018',
    'amount'         => 100,
  ],
]);
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