Skip to content

微信支付预约单号查询预约商家转账记录

商户可通过接口查询预约商家转账记录详情。预计最晚转账日期、预计最大转账金额等预约相关信息,仅在预约记录状态为已预约或已关闭且关闭原因不为用户超时未确认、商户通过API主动关闭已受理的记录、预约失败后关闭时返回。API提供的查询时限为3个月,创建时间超过3个月的预约记录不支持查询。

请求参数类型描述
reservation_idstring微信转账预约单号
queryobject声明请求的查询参数
sub_mchidstring二级商户号
php
$instance->v3->platsolution->mchTransfer->reservation->reservationId->_reservation_id_->getAsync([
  'reservation_id' => '1330000071100999991182020050700019480001',
  '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/reservation-id/{reservation_id}')->getAsync([
  'reservation_id' => '1330000071100999991182020050700019480001',
  '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/reservation-id/{reservation_id}']->getAsync([
  'reservation_id' => '1330000071100999991182020050700019480001',
  '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->reservationId->_reservation_id_->get([
  'reservation_id' => '1330000071100999991182020050700019480001',
  'query' => [
    'sub_mchid' => '1900001109',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/platsolution/mch-transfer/reservation/reservation-id/{reservation_id}')->get([
  'reservation_id' => '1330000071100999991182020050700019480001',
  'query' => [
    'sub_mchid' => '1900001109',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/platsolution/mch-transfer/reservation/reservation-id/{reservation_id}']->get([
  'reservation_id' => '1330000071100999991182020050700019480001',
  '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