微信支付预约单号查询预约商家转账记录
商户可通过接口查询预约商家转账记录详情。预计最晚转账日期、预计最大转账金额等预约相关信息,仅在预约记录状态为已预约或已关闭且关闭原因不为用户超时未确认、商户通过API主动关闭已受理的记录、预约失败后关闭时返回。API提供的查询时限为3个月,创建时间超过3个月的预约记录不支持查询。
请求参数 | 类型 | 描述 |
---|---|---|
reservation_id | string | 微信转账预约单号 |
query | object | 声明请求的查询参数 |
sub_mchid | string | 二级商户号 |
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_mchid | string | 服务商商户号 |
sub_mchid | string | 二级商户号 |
sp_appid | string | 服务商AppID |
sub_appid | string | 二级商户AppID |
reservation_id | string | 微信转账预约单号 |
out_reservation_no | string | 商户预约单号 |
transfer_scene_id | string | 转账场景ID |
estimated_date | string | 预计最晚转账日期 |
estimated_max_amount | number | 预计最大转账金额 |
exact_amount | number | 准确转账金额 |
openid | string | 收款用户OpenID |
bank_type | string | 收款银行类型 |
state | string | 预约记录状态 |
accept_time | string | 预约记录受理的时间 |
reserve_time | string | 预约记录用户确认预约的时间 |
close_info | object | 预约记录的关闭信息 |
close_time | string | 预约记录关闭的时间 |
close_reason | string | 预约记录关闭的原因 |
参阅 官方文档