Skip to content

开通保险理赔功能

平台服务商可通过该接口为保险公司开通保险理赔功能。

请求参数类型描述
jsonobject声明请求的JSON数据结构
out_apply_nostring商户申请单号
sub_mchidstring二级商户号
agreement_listobject[]签约协议列表
agreement_codestring协议编号
agreement_versionstring协议版本号
sign_organizationstring签约主体
sign_timestring签约时间
php
$instance->v3->platsolution->ecommerce->insuranceCompensationContracts->postAsync([
  'json' => [
    'out_apply_no'   => 'No123456',
    'sub_mchid'      => '1900000109',
    'agreement_list' => [[
      'agreement_code'    => '微信支付运营功能服务协议(平台二级商户)',
      'agreement_version' => '20240815',
      'sign_organization' => '温州名优贸易',
      'sign_time'         => '2024-08-08T10:34:56+08:00',
    ],],
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/platsolution/ecommerce/insurance-compensation-contracts')->postAsync([
  'json' => [
    'out_apply_no'   => 'No123456',
    'sub_mchid'      => '1900000109',
    'agreement_list' => [[
      'agreement_code'    => '微信支付运营功能服务协议(平台二级商户)',
      'agreement_version' => '20240815',
      'sign_organization' => '温州名优贸易',
      'sign_time'         => '2024-08-08T10:34:56+08:00',
    ],],
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/platsolution/ecommerce/insurance-compensation-contracts']->postAsync([
  'json' => [
    'out_apply_no'   => 'No123456',
    'sub_mchid'      => '1900000109',
    'agreement_list' => [[
      'agreement_code'    => '微信支付运营功能服务协议(平台二级商户)',
      'agreement_version' => '20240815',
      'sign_organization' => '温州名优贸易',
      'sign_time'         => '2024-08-08T10:34:56+08:00',
    ],],
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->platsolution->ecommerce->insuranceCompensationContracts->post([
  'json' => [
    'out_apply_no'   => 'No123456',
    'sub_mchid'      => '1900000109',
    'agreement_list' => [[
      'agreement_code'    => '微信支付运营功能服务协议(平台二级商户)',
      'agreement_version' => '20240815',
      'sign_organization' => '温州名优贸易',
      'sign_time'         => '2024-08-08T10:34:56+08:00',
    ],],
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/platsolution/ecommerce/insurance-compensation-contracts')->post([
  'json' => [
    'out_apply_no'   => 'No123456',
    'sub_mchid'      => '1900000109',
    'agreement_list' => [[
      'agreement_code'    => '微信支付运营功能服务协议(平台二级商户)',
      'agreement_version' => '20240815',
      'sign_organization' => '温州名优贸易',
      'sign_time'         => '2024-08-08T10:34:56+08:00',
    ],],
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/platsolution/ecommerce/insurance-compensation-contracts']->post([
  'json' => [
    'out_apply_no'   => 'No123456',
    'sub_mchid'      => '1900000109',
    'agreement_list' => [[
      'agreement_code'    => '微信支付运营功能服务协议(平台二级商户)',
      'agreement_version' => '20240815',
      'sign_organization' => '温州名优贸易',
      'sign_time'         => '2024-08-08T10:34:56+08:00',
    ],],
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
sub_mchidstring二级商户号
openedboolean是否开通成功
success_timestring成功时间

参阅 官方文档

Published on the GitHub by TheNorthMemory