Skip to content

生成投保结果

生成投保结果

请求参数类型描述
jsonobject声明请求的JSON数据结构
sp_mchidstring服务商商户号
wesure_order_nostring特约商户商户号
tokenstring微保保单号
insurance_company_order_nostring保司保单号
openidstring用户标识
insure_statestring投保状态
insure_effect_timestring保障生效时间
insure_invalid_timestring保障失效时间
insurance_company_namestring保障的保险公司名称
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);
返回字典类型描述
空字符串(无返回内容)

参阅 官方文档

Published on the GitHub by TheNorthMemory