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

alibaba.finance.tao.insurance.pet.insure.zhongan (宠物险众安投保成功结果回调)

宠物险众安投保成功结果回调

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_pet_insurance_insure_request PetInsuranceInsureRequest 必须 投保请求
  • customer
  • CustomerDTO
  • 必须
  • 用户信息
  • └ cif_no
  • Number
  • 可选
  • 0
  • 为空
  • └ customer_type
  • String
  • 必须
  • ALI
  • 用户类型
  • └ customer_id
  • String
  • 必须
  • 111
  • 用户ID
  • └ identifier
  • String
  • 必须
  • test
  • 外部幂等id,保司单号
  • └ product_code
  • String
  • 必须
  • PET_INSURANCE
  • 产品
  • └ tenant
  • String
  • 必须
  • DTAO
  • 租户
  • zhong_a_n_insure_result_d_t_o
  • ZhongAnInsureResultDTO
  • 必须
  • 投保结果
  • └ apply_time
  • Date
  • 必须
  • 2022-08-17 16:30:29
  • 收单申请时间
  • └ effective_time
  • Date
  • 必须
  • 2022-08-17 16:30:29
  • 生效时间
  • └ expiration_time
  • Date
  • 必须
  • 2022-08-17 16:30:29
  • 失效时间
  • ext
  • ZhongAnInsureExtInfo
  • 必须
  • 扩展信息
  • └ activity_id
  • String
  • 可选
  • test
  • 活动ID,页面带给保司的字段
  • └ external_order_name
  • String
  • 必须
  • test
  • 保司保单名称
  • └ rights_id
  • String
  • 可选
  • test
  • 权益ID,页面带给保司的字段
  • └ external_order_no
  • String
  • 必须
  • test
  • 保司保单号
  • └ fee_amount
  • String
  • 必须
  • 1
  • 保费金额
  • └ guaranteed_amount
  • String
  • 必须
  • 2
  • 保障金额
  • └ institution
  • String
  • 必须
  • ZHONGAN
  • 机构码
  • └ sub_product
  • String
  • 必须
  • test
  • 子产品,页面带给保司的字段,透传下来
  • └ subject_matter_id
  • String
  • 必须
  • test
  • 标的物,阿里侧宠物ID

响应参数

名称 类型 示例值 描述
result PetInsuranceInsureResponse 响应
  • └ response_code
  • String
  • SUCCESS
  • 响应码
  • └ response_message
  • String
  • 成功
  • 响应描述
  • └ success
  • Boolean
  • true
  • 请求成功标识

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaFinanceTaoInsurancePetInsureZhonganRequest req = new AlibabaFinanceTaoInsurancePetInsureZhonganRequest();
AlibabaFinanceTaoInsurancePetInsureZhonganRequest.PetInsuranceInsureRequest obj1 = new AlibabaFinanceTaoInsurancePetInsureZhonganRequest.PetInsuranceInsureRequest();
AlibabaFinanceTaoInsurancePetInsureZhonganRequest.CustomerDTO obj2 = new AlibabaFinanceTaoInsurancePetInsureZhonganRequest.CustomerDTO();
obj2.setCifNo(0L);
obj2.setCustomerType("ALI");
obj2.setCustomerId("111");
obj1.setCustomer(obj2);
obj1.setIdentifier("test");
obj1.setProductCode("PET_INSURANCE");
obj1.setTenant("DTAO");
AlibabaFinanceTaoInsurancePetInsureZhonganRequest.ZhongAnInsureResultDTO obj3 = new AlibabaFinanceTaoInsurancePetInsureZhonganRequest.ZhongAnInsureResultDTO();
obj3.setApplyTime(StringUtils.parseDateTime("2022-08-17 16:30:29"));
obj3.setEffectiveTime(StringUtils.parseDateTime("2022-08-17 16:30:29"));
obj3.setExpirationTime(StringUtils.parseDateTime("2022-08-17 16:30:29"));
AlibabaFinanceTaoInsurancePetInsureZhonganRequest.ZhongAnInsureExtInfo obj4 = new AlibabaFinanceTaoInsurancePetInsureZhonganRequest.ZhongAnInsureExtInfo();
obj4.setActivityId("test");
obj4.setExternalOrderName("test");
obj4.setRightsId("test");
obj3.setExt(obj4);
obj3.setExternalOrderNo("test");
obj3.setFeeAmount("1");
obj3.setGuaranteedAmount("2");
obj3.setInstitution("ZHONGAN");
obj3.setSubProduct("test");
obj3.setSubjectMatterId("test");
obj1.setZhongANInsureResultDTO(obj3);
req.setParamPetInsuranceInsureRequest(obj1);
AlibabaFinanceTaoInsurancePetInsureZhonganResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_finance_tao_insurance_pet_insure_zhongan_response>
    <result>
        <response_code>SUCCESS</response_code>
        <response_message>成功</response_message>
        <success>true</success>
    </result>
</alibaba_finance_tao_insurance_pet_insure_zhongan_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

返回
顶部