Skip to content

保险商户查询保险扣费周期列表

商户可通过本接口查询已经签订的保险自动续费协议对应的扣费周期列表。

请求参数类型描述
out_contract_codestring商户签约协议号
plan_idnumber委托代扣模板ID
queryobject声明请求的查询参数
limitnumber分页大小
offsetnumber分页开始位置
php
$instance->v3->papay->insuranceSign->policy_periods->planId->_plan_id_->outContractCode->_out_contract_code_->getAsync([
  'out_contract_code' => 'wxwtdk20200910100000',
  'plan_id' => '12535',
  'query' => [
    'limit' => 20,
    'offset' => 50,
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/papay/insurance-sign/policy_periods/plan-id/{plan_id}/out-contract-code/{out_contract_code}')->getAsync([
  'out_contract_code' => 'wxwtdk20200910100000',
  'plan_id' => '12535',
  'query' => [
    'limit' => 20,
    'offset' => 50,
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/papay/insurance-sign/policy_periods/plan-id/{plan_id}/out-contract-code/{out_contract_code}']->getAsync([
  'out_contract_code' => 'wxwtdk20200910100000',
  'plan_id' => '12535',
  'query' => [
    'limit' => 20,
    'offset' => 50,
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->papay->insuranceSign->policy_periods->planId->_plan_id_->outContractCode->_out_contract_code_->get([
  'out_contract_code' => 'wxwtdk20200910100000',
  'plan_id' => '12535',
  'query' => [
    'limit' => 20,
    'offset' => 50,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/papay/insurance-sign/policy_periods/plan-id/{plan_id}/out-contract-code/{out_contract_code}')->get([
  'out_contract_code' => 'wxwtdk20200910100000',
  'plan_id' => '12535',
  'query' => [
    'limit' => 20,
    'offset' => 50,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/papay/insurance-sign/policy_periods/plan-id/{plan_id}/out-contract-code/{out_contract_code}']->get([
  'out_contract_code' => 'wxwtdk20200910100000',
  'plan_id' => '12535',
  'query' => [
    'limit' => 20,
    'offset' => 50,
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
dataobject[]扣费周期列表,包括每个扣费周期项详情。
policy_period_idnumber保单的扣费周期编号
estimated_deduct_datestring扣费周期预计的扣费的日期
estimated_deduct_amountobject扣费周期预计的扣费金额
totalnumber金额
currencystring货币类型
policy_period_statestring扣费周期预约状态
scheduled_amountobject已预约的扣费金额信息
totalnumber金额
currencystring货币类型
deduct_amountobject实际扣费金额
totalnumber金额
currencystring货币类型
deduct_datestring实际扣费的日期
limitnumber分页大小
offsetnumber分页开始位置
total_countnumber扣费周期总条数

参阅 官方文档

Published on the GitHub by TheNorthMemory