Skip to content

关闭预约商家转账记录

商户可通过接口关闭已经受理或者已经确认的预约商家转账记录。

请求参数类型描述
out_reservation_nostring商户预约单号
queryobject声明请求的查询参数
sub_mchidstring二级商户号
php
$instance->v3->platsolution->mchTransfer->reservation->outReservationNo->_out_reservation_no_->close->postAsync([
  'out_reservation_no' => 'plfk2020042013',
  'query' => [
    'sub_mchid' => '1900001109',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/platsolution/mch-transfer/reservation/out-reservation-no/{out_reservation_no}/close')->postAsync([
  'out_reservation_no' => 'plfk2020042013',
  'query' => [
    'sub_mchid' => '1900001109',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/platsolution/mch-transfer/reservation/out-reservation-no/{out_reservation_no}/close']->postAsync([
  'out_reservation_no' => 'plfk2020042013',
  'query' => [
    'sub_mchid' => '1900001109',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->platsolution->mchTransfer->reservation->outReservationNo->_out_reservation_no_->close->post([
  'out_reservation_no' => 'plfk2020042013',
  'query' => [
    'sub_mchid' => '1900001109',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/platsolution/mch-transfer/reservation/out-reservation-no/{out_reservation_no}/close')->post([
  'out_reservation_no' => 'plfk2020042013',
  'query' => [
    'sub_mchid' => '1900001109',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/platsolution/mch-transfer/reservation/out-reservation-no/{out_reservation_no}/close']->post([
  'out_reservation_no' => 'plfk2020042013',
  'query' => [
    'sub_mchid' => '1900001109',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
sp_mchidstring服务商商户号
sub_mchidstring二级商户号
sp_appidstring服务商AppID
sub_appidstring二级商户AppID
reservation_idstring微信转账预约单号
out_reservation_nostring商户预约单号
transfer_scene_idstring转账场景ID
estimated_datestring预计最晚转账日期
estimated_max_amountnumber预计最大转账金额
exact_amountnumber准确转账金额
openidstring收款用户OpenID
bank_typestring收款银行类型
statestring预约记录状态
accept_timestring预约记录受理的时间
reserve_timestring预约记录用户确认预约的时间
close_infoobject预约记录的关闭信息
close_timestring预约记录关闭的时间
close_reasonstring预约记录关闭的原因

参阅 官方文档

Published on the GitHub by TheNorthMemory