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

alibaba.finance.tao.insurance.pet.insure.zhongan.migrate (存量保单数据迁移)

存量保单数据迁移

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_pet_insurance_migrate_request PetInsuranceMigrateRequest 可选 迁移请求
  • └ apply_time
  • Date
  • 可选
  • 2023-01-17 10:07:33
  • 申请时间
  • customer
  • CustomerDTO
  • 必须
  • 用户信息
  • └ cif_no
  • Number
  • 可选
  • 0
  • 为空
  • └ customer_type
  • String
  • 可选
  • ALI
  • 用户类型,传ALI
  • └ customer_id
  • String
  • 必须
  • 111
  • 用户ID
  • └ effective_time
  • Date
  • 可选
  • 2023-01-17 10:07:33
  • 生效时间
  • └ expiration_time
  • Date
  • 可选
  • 2023-01-17 10:07:33
  • 失效时间
  • └ external_order_name
  • String
  • 可选
  • test
  • 保司保单名称
  • └ external_order_no
  • String
  • 可选
  • test
  • 保司保单号
  • └ fee_amount
  • String
  • 可选
  • 22
  • 保费金额
  • └ guaranteed_amount
  • String
  • 可选
  • 1
  • 保障金额
  • └ identifier
  • String
  • 可选
  • test
  • 外部幂等id:传保司保单号
  • pet_info
  • PetInfo
  • 可选
  • 宠物信息
  • └ pet_birthday
  • String
  • 可选
  • 2023-01-17 10:07:33
  • 宠物生日
  • └ pet_image
  • String
  • 可选
  • test
  • 宠物头像,保司可以用正脸照。
  • └ pet_nick
  • String
  • 可选
  • test
  • 宠物昵称
  • └ pet_nobaby
  • Number
  • 可选
  • 0
  • 是否绝育:0否,1 是 2 未知
  • └ pet_sex
  • Number
  • 可选
  • 1
  • 公:1 * 母:2
  • └ pet_type2
  • String
  • 可选
  • 1001
  • 代表宠物种类,当宠物类型为1000时,值的范围1001-1053 ‘当宠物类型为2000时,值的范围2001-2199
  • └ source
  • Number
  • 可选
  • 6
  • 固定填写6,代表从众安保险来的,用于对账
  • └ user_nick
  • String
  • 可选
  • test
  • userNick
  • └ pet_type
  • String
  • 可选
  • 1000
  • 宠物类型, 1000:猫,2000:狗
  • └ product_code
  • String
  • 必须
  • PET_INSURANCE
  • 产品码,传PET_INSURANCE
  • └ subject_matter_id
  • String
  • 可选
  • 10222
  • 标的物,传阿里侧宠物ID,没有为空
  • └ tenant
  • String
  • 必须
  • DTAO
  • 租户,传DTAO

响应参数

名称 类型 示例值 描述
result PetInsuranceMigrateResponse 响应
  • └ 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);
AlibabaFinanceTaoInsurancePetInsureZhonganMigrateRequest req = new AlibabaFinanceTaoInsurancePetInsureZhonganMigrateRequest();
AlibabaFinanceTaoInsurancePetInsureZhonganMigrateRequest.PetInsuranceMigrateRequest obj1 = new AlibabaFinanceTaoInsurancePetInsureZhonganMigrateRequest.PetInsuranceMigrateRequest();
obj1.setApplyTime(StringUtils.parseDateTime("2023-01-17 10:07:33"));
AlibabaFinanceTaoInsurancePetInsureZhonganMigrateRequest.CustomerDTO obj2 = new AlibabaFinanceTaoInsurancePetInsureZhonganMigrateRequest.CustomerDTO();
obj2.setCifNo(0L);
obj2.setCustomerType("ALI");
obj2.setCustomerId("111");
obj1.setCustomer(obj2);
obj1.setEffectiveTime(StringUtils.parseDateTime("2023-01-17 10:07:33"));
obj1.setExpirationTime(StringUtils.parseDateTime("2023-01-17 10:07:33"));
obj1.setExternalOrderName("test");
obj1.setExternalOrderNo("test");
obj1.setFeeAmount("22");
obj1.setGuaranteedAmount("1");
obj1.setIdentifier("test");
AlibabaFinanceTaoInsurancePetInsureZhonganMigrateRequest.PetInfo obj3 = new AlibabaFinanceTaoInsurancePetInsureZhonganMigrateRequest.PetInfo();
obj3.setPetBirthday("2023-01-17 10:07:33");
obj3.setPetImage("test");
obj3.setPetNick("test");
obj3.setPetNobaby(0L);
obj3.setPetSex(1L);
obj3.setPetType2("1001");
obj3.setSource(6L);
obj3.setUserNick("test");
obj3.setPetType("1000");
obj1.setPetInfo(obj3);
obj1.setProductCode("PET_INSURANCE");
obj1.setSubjectMatterId("10222");
obj1.setTenant("DTAO");
req.setParamPetInsuranceMigrateRequest(obj1);
AlibabaFinanceTaoInsurancePetInsureZhonganMigrateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

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

返回
顶部