查询扣费预约
商户调用「预约扣费」接口,因系统原因未能明确预约结果时,可使用本接口查询预结果。
请求参数 | 类型 | 描述 |
---|---|---|
contract_id | string | 委托代扣协议ID |
query | object | 声明请求的查询参数 |
sub_mchid | string | 子商户号商户号 |
php
$instance->v3->papay->pay->partner->schedules->contractId->_contract_id_->getAsync([
'contract_id' => '123124412412423431',
'query' => [
'sub_mchid' => '1900000109',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/papay/pay/partner/schedules/contract-id/{contract_id}')->getAsync([
'contract_id' => '123124412412423431',
'query' => [
'sub_mchid' => '1900000109',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/papay/pay/partner/schedules/contract-id/{contract_id}']->getAsync([
'contract_id' => '123124412412423431',
'query' => [
'sub_mchid' => '1900000109',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->papay->pay->partner->schedules->contractId->_contract_id_->get([
'contract_id' => '123124412412423431',
'query' => [
'sub_mchid' => '1900000109',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/papay/pay/partner/schedules/contract-id/{contract_id}')->get([
'contract_id' => '123124412412423431',
'query' => [
'sub_mchid' => '1900000109',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/papay/pay/partner/schedules/contract-id/{contract_id}']->get([
'contract_id' => '123124412412423431',
'query' => [
'sub_mchid' => '1900000109',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
schedule_state | string | 扣费预约的状态 |
deduct_start_date | string | 可扣费开始日期 |
deduct_end_date | string | 可扣费结束日期 |
scheduled_amount | object | 已预约的扣费金额信息 |
total | number | 金额 |
currency | string | 货币类型 |
deduct_amount | object | 实际扣费金额 |
total | number | 金额 |
currency | string | 货币类型 |
deduct_date | string | 实际扣费的日期 |
参阅 官方文档