Skip to content

保险商户查询保险自动续费预约

商户调用「预约保险自动续费」接口,因系统原因未能明确预约结果时,可使用本接口查询预结果。

请求参数类型描述
contract_idstring委托代扣协议ID
policy_period_idnumber保单的扣费周期编号
php
$instance->v3->papay->insurancePay->policyPeriods->contractId->_contract_id_->policyPeriodId->_policy_period_id_->getAsync([
  'contract_id' => '',
  'policy_period_id' => '1',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/papay/insurance-pay/policy-periods/contract-id/{contract_id}/policy-period-id/{policy_period_id}')->getAsync([
  'contract_id' => '',
  'policy_period_id' => '1',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/papay/insurance-pay/policy-periods/contract-id/{contract_id}/policy-period-id/{policy_period_id}']->getAsync([
  'contract_id' => '',
  'policy_period_id' => '1',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->papay->insurancePay->policyPeriods->contractId->_contract_id_->policyPeriodId->_policy_period_id_->get([
  'contract_id' => '',
  'policy_period_id' => '1',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/papay/insurance-pay/policy-periods/contract-id/{contract_id}/policy-period-id/{policy_period_id}')->get([
  'contract_id' => '',
  'policy_period_id' => '1',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/papay/insurance-pay/policy-periods/contract-id/{contract_id}/policy-period-id/{policy_period_id}']->get([
  'contract_id' => '',
  'policy_period_id' => '1',
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
policy_period_idnumber保单的扣费周期编号
policy_period_statestring当前扣费周期的状态
deduct_start_datestring可扣费开始日期
deduct_end_datestring可扣费结束日期
scheduled_amountobject已预约的扣费金额信息
totalnumber金额
currencystring货币类型
deduct_amountobject实际扣费金额
totalnumber金额
currencystring货币类型
deduct_datestring实际扣费的日期

参阅 官方文档

Published on the GitHub by TheNorthMemory