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

alibaba.fin.tao.insurance.insure.check (机构投保核对)

机构投保核对

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_request InsureCheck4TopRequest 必须 入参
  • └ apply_time
  • Date
  • 必须
  • 2021-01-01 01:01:01
  • 投保申请时间
  • └ attributes
  • String
  • 可选
  • {}
  • 扩展参数
  • customer
  • CustomerDTO
  • 必须
  • 用户信息
  • └ 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
  • 保额
  • └ institution
  • String
  • 必须
  • SUNSHINE
  • 机构
  • └ institution_order_id
  • String
  • 必须
  • 123445677
  • 保司订单号
  • └ product_code
  • String
  • 必须
  • PET_INSURANCE
  • 产品码
  • └ sub_product
  • String
  • 可选
  • PLATFORM_BONUS_INSURANCE
  • 子产品码
  • └ item_id
  • Number
  • 必须
  • 123456
  • 商品ID
  • └ tenant
  • String
  • 必须
  • DTAO
  • 租户

响应参数

名称 类型 示例值 描述
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);
AlibabaFinTaoInsuranceInsureCheckRequest req = new AlibabaFinTaoInsuranceInsureCheckRequest();
AlibabaFinTaoInsuranceInsureCheckRequest.InsureCheck4TopRequest obj1 = new AlibabaFinTaoInsuranceInsureCheckRequest.InsureCheck4TopRequest();
obj1.setApplyTime(StringUtils.parseDateTime("2021-01-01 01:01:01"));
obj1.setAttributes("{}");
AlibabaFinTaoInsuranceInsureCheckRequest.CustomerDTO obj2 = new AlibabaFinTaoInsuranceInsureCheckRequest.CustomerDTO();
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.setInstitution("SUNSHINE");
obj1.setInstitutionOrderId("123445677");
obj1.setProductCode("PET_INSURANCE");
obj1.setSubProduct("PLATFORM_BONUS_INSURANCE");
obj1.setItemId(123456L);
obj1.setTenant("DTAO");
req.setParamRequest(obj1);
AlibabaFinTaoInsuranceInsureCheckResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_fin_tao_insurance_insure_check_response>
    <result>
        <response_code>SUCCESS</response_code>
        <response_message>SUCCESS</response_message>
        <success>true</success>
    </result>
</alibaba_fin_tao_insurance_insure_check_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

返回
顶部