文档中心 > API类目 > 场景金融保险

alibaba.fin.tao.insurance.insure.apply (场景金融提供的业务层投保回调接口)

场景金融提供的业务层投保回调接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_request InsureApply4TopRequest 必须 入参
  • └ apply_time
  • Date
  • 必须
  • 2021-01-01 01:01:01
  • 投保申请时间
  • └ attributes
  • String
  • 可选
  • {}
  • 扩展参数
  • customer
  • CustomerDTO
  • 必须
  • 用户信息
  • └ cif_no
  • Number
  • 可选
  • 0
  • cifNo
  • └ customer_id
  • String
  • 必须
  • 123456
  • 用户id
  • └ customer_type
  • String
  • 必须
  • ALI
  • 用户id类型
  • └ effective_time
  • Date
  • 必须
  • 2021-01-01 01:01:01
  • 保单生效时间
  • └ expiration_time
  • Date
  • 必须
  • 2021-01-01 01:01:01
  • 保单失效时间
  • └ fee_amount
  • String
  • 必须
  • 1
  • 保费
  • └ guaranteed_amount
  • String
  • 必须
  • 2
  • 保额
  • └ identifier
  • String
  • 必须
  • 20223489348
  • 幂等号
  • └ institution
  • String
  • 必须
  • SUNSHINE
  • 机构
  • └ policy_no
  • String
  • 必须
  • 123445677
  • 报单号
  • └ product_code
  • String
  • 必须
  • PET_INSURANCE
  • 产品码
  • └ sub_product
  • String
  • 可选
  • PLATFORM_BONUS_INSURANCE
  • 子产品码
  • └ subject_matter_id
  • String
  • 可选
  • 123456
  • 标的物id
  • └ tenant
  • String
  • 必须
  • DTAO
  • 租户
  • └ out_user_id
  • String
  • 可选
  • open_id
  • open_id

响应参数

名称 类型 示例值 描述
result InsureApply4TopResponse 出参
  • └ response_code
  • String
  • SUCCESS
  • 系统编码
  • └ response_message
  • String
  • SUCCESS
  • 系统信息
  • └ success
  • Boolean
  • true
  • 调用情况

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaFinTaoInsuranceInsureApplyRequest req = new AlibabaFinTaoInsuranceInsureApplyRequest();
AlibabaFinTaoInsuranceInsureApplyRequest.InsureApply4TopRequest obj1 = new AlibabaFinTaoInsuranceInsureApplyRequest.InsureApply4TopRequest();
obj1.setApplyTime(StringUtils.parseDateTime("2021-01-01 01:01:01"));
obj1.setAttributes("{}");
AlibabaFinTaoInsuranceInsureApplyRequest.CustomerDTO obj2 = new AlibabaFinTaoInsuranceInsureApplyRequest.CustomerDTO();
obj2.setCifNo(0L);
obj2.setCustomerId("123456");
obj2.setCustomerType("ALI");
obj1.setCustomer(obj2);
obj1.setEffectiveTime(StringUtils.parseDateTime("2021-01-01 01:01:01"));
obj1.setExpirationTime(StringUtils.parseDateTime("2021-01-01 01:01:01"));
obj1.setFeeAmount("1");
obj1.setGuaranteedAmount("2");
obj1.setIdentifier("20223489348");
obj1.setInstitution("SUNSHINE");
obj1.setPolicyNo("123445677");
obj1.setProductCode("PET_INSURANCE");
obj1.setSubProduct("PLATFORM_BONUS_INSURANCE");
obj1.setSubjectMatterId("123456");
obj1.setTenant("DTAO");
obj1.setOutUserId("open_id");
req.setParamRequest(obj1);
AlibabaFinTaoInsuranceInsureApplyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_fin_tao_insurance_insure_apply_response>
    <result>
        <response_code>SUCCESS</response_code>
        <response_message>SUCCESS</response_message>
        <success>true</success>
    </result>
</alibaba_fin_tao_insurance_insure_apply_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部