生成投保结果 
生成投保结果
| 请求参数 | 类型 | 描述 | 
|---|---|---|
| json | object | 声明请求的 JSON数据结构 | 
| sp_mchid | string | 服务商商户号 | 
| wesure_order_no | string | 特约商户商户号 | 
| token | string | 微保保单号 | 
| insurance_company_order_no | string | 保司保单号 | 
| openid | string | 用户标识 | 
| insure_state | string | 投保状态 | 
| insure_effect_time | string | 保障生效时间 | 
| insure_invalid_time | string | 保障失效时间 | 
| insurance_company_name | string | 保障的保险公司名称 | 
php
$instance->v3->payrollCard->wesure->insurance->postAsync([
  'json' => [
    'sp_mchid'                   => '1900000109',
    'wesure_order_no'            => '1900000109',
    'token'                      => '5fds5345dfd',
    'insurance_company_order_no' => '5fds5345dfd',
    'openid'                     => '111111',
    'insure_state'               => 'INSURE_SUCCESS',
    'insure_effect_time'         => '2018-06-08T10:34:56+08:00',
    'insure_invalid_time'        => '2018-06-08T10:34:56+08:00',
    'insurance_company_name'     => '平安',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();php
$instance->chain('v3/payroll-card/wesure/insurance')->postAsync([
  'json' => [
    'sp_mchid'                   => '1900000109',
    'wesure_order_no'            => '1900000109',
    'token'                      => '5fds5345dfd',
    'insurance_company_order_no' => '5fds5345dfd',
    'openid'                     => '111111',
    'insure_state'               => 'INSURE_SUCCESS',
    'insure_effect_time'         => '2018-06-08T10:34:56+08:00',
    'insure_invalid_time'        => '2018-06-08T10:34:56+08:00',
    'insurance_company_name'     => '平安',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();php
$instance['v3/payroll-card/wesure/insurance']->postAsync([
  'json' => [
    'sp_mchid'                   => '1900000109',
    'wesure_order_no'            => '1900000109',
    'token'                      => '5fds5345dfd',
    'insurance_company_order_no' => '5fds5345dfd',
    'openid'                     => '111111',
    'insure_state'               => 'INSURE_SUCCESS',
    'insure_effect_time'         => '2018-06-08T10:34:56+08:00',
    'insure_invalid_time'        => '2018-06-08T10:34:56+08:00',
    'insurance_company_name'     => '平安',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();php
$response = $instance->v3->payrollCard->wesure->insurance->post([
  'json' => [
    'sp_mchid'                   => '1900000109',
    'wesure_order_no'            => '1900000109',
    'token'                      => '5fds5345dfd',
    'insurance_company_order_no' => '5fds5345dfd',
    'openid'                     => '111111',
    'insure_state'               => 'INSURE_SUCCESS',
    'insure_effect_time'         => '2018-06-08T10:34:56+08:00',
    'insure_invalid_time'        => '2018-06-08T10:34:56+08:00',
    'insurance_company_name'     => '平安',
  ],
]);
print_r($response->getStatusCode() === 204);php
$response = $instance->chain('v3/payroll-card/wesure/insurance')->post([
  'json' => [
    'sp_mchid'                   => '1900000109',
    'wesure_order_no'            => '1900000109',
    'token'                      => '5fds5345dfd',
    'insurance_company_order_no' => '5fds5345dfd',
    'openid'                     => '111111',
    'insure_state'               => 'INSURE_SUCCESS',
    'insure_effect_time'         => '2018-06-08T10:34:56+08:00',
    'insure_invalid_time'        => '2018-06-08T10:34:56+08:00',
    'insurance_company_name'     => '平安',
  ],
]);
print_r($response->getStatusCode() === 204);php
$response = $instance['v3/payroll-card/wesure/insurance']->post([
  'json' => [
    'sp_mchid'                   => '1900000109',
    'wesure_order_no'            => '1900000109',
    'token'                      => '5fds5345dfd',
    'insurance_company_order_no' => '5fds5345dfd',
    'openid'                     => '111111',
    'insure_state'               => 'INSURE_SUCCESS',
    'insure_effect_time'         => '2018-06-08T10:34:56+08:00',
    'insure_invalid_time'        => '2018-06-08T10:34:56+08:00',
    'insurance_company_name'     => '平安',
  ],
]);
print_r($response->getStatusCode() === 204);| 返回字典 | 类型 | 描述 | 
|---|---|---|
| 空字符串(无返回内容) | ||
参阅 官方文档