保险商户查询保险扣费周期列表
商户可通过本接口查询已经签订的保险自动续费协议对应的扣费周期列表。
请求参数 | 类型 | 描述 |
---|---|---|
out_contract_code | string | 商户签约协议号 |
plan_id | number | 委托代扣模板ID |
query | object | 声明请求的查询参数 |
limit | number | 分页大小 |
offset | number | 分页开始位置 |
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));
返回字典 | 类型 | 描述 |
---|---|---|
data | object[] | 扣费周期列表,包括每个扣费周期项详情。 |
policy_period_id | number | 保单的扣费周期编号 |
estimated_deduct_date | string | 扣费周期预计的扣费的日期 |
estimated_deduct_amount | object | 扣费周期预计的扣费金额 |
total | number | 金额 |
currency | string | 货币类型 |
policy_period_state | string | 扣费周期预约状态 |
scheduled_amount | object | 已预约的扣费金额信息 |
total | number | 金额 |
currency | string | 货币类型 |
deduct_amount | object | 实际扣费金额 |
total | number | 金额 |
currency | string | 货币类型 |
deduct_date | string | 实际扣费的日期 |
limit | number | 分页大小 |
offset | number | 分页开始位置 |
total_count | number | 扣费周期总条数 |
参阅 官方文档