注意:以下文档只适用于TOP接口,请谨慎使用!

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

alibaba.finance.insurance.surrender (机构退保回调)

机构退保回调

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
surrender_request SurrenderRequest 必须 退保请求
  • └ institution
  • String
  • 必须
  • xxx
  • 机构,接入时约定
  • └ identifier
  • String
  • 必须
  • xxx
  • 幂等号
  • policy_surrender_list
  • PolicySurrender []
  • 必须
  • []
  • 退保明细
  • └ surrender_time
  • Date
  • 必须
  • 2020-10-10 10:00:00
  • 退保时间
  • └ actual_expiration_time
  • Date
  • 必须
  • 2020-10-12 10:00:00
  • 退保生效时间
  • └ policy_no
  • String
  • 必须
  • xxx
  • 保司保单号
  • └ surrender_fee_amount
  • String
  • 必须
  • 1.23
  • 退保保费,单位元
  • └ product_code
  • String
  • 必须
  • xxx
  • 产品码,接入时约定
  • └ order_id
  • String
  • 必须
  • xxx
  • 保司订单号
  • └ attributes
  • String
  • 可选
  • {}
  • 扩展字段
  • └ out_user_id
  • String
  • 可选
  • ASDFASF
  • 投保时获取的openId
  • └ tenant
  • String
  • 必须
  • DTAO
  • 租户,接入时约定
  • └ total_surrender_fee_amount
  • String
  • 必须
  • 3.33
  • 总退保保费,单位元
  • └ customer_id
  • String
  • 可选
  • 12345
  • 明文userId,蚂蚁使用

响应参数

名称 类型 示例值 描述
is_success Boolean true 接口成功
response_code String SUCCESS 错误码
response_msg String SYSTEM_ERROR 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaFinanceInsuranceSurrenderRequest req = new AlibabaFinanceInsuranceSurrenderRequest();
AlibabaFinanceInsuranceSurrenderRequest.SurrenderRequest obj1 = new AlibabaFinanceInsuranceSurrenderRequest.SurrenderRequest();
obj1.setInstitution("xxx");
obj1.setIdentifier("xxx");
List<AlibabaFinanceInsuranceSurrenderRequest.PolicySurrender> list3 = new ArrayList<AlibabaFinanceInsuranceSurrenderRequest.PolicySurrender>();
AlibabaFinanceInsuranceSurrenderRequest.PolicySurrender obj4 = new AlibabaFinanceInsuranceSurrenderRequest.PolicySurrender();
list3.add(obj4);
obj4.setSurrenderTime(StringUtils.parseDateTime("2020-10-10 10:00:00"));
obj4.setActualExpirationTime(StringUtils.parseDateTime("2020-10-12 10:00:00"));
obj4.setPolicyNo("xxx");
obj4.setSurrenderFeeAmount("1.23");
obj1.setPolicySurrenderList(list3);
obj1.setProductCode("xxx");
obj1.setOrderId("xxx");
obj1.setAttributes("{}");
obj1.setOutUserId("ASDFASF");
obj1.setTenant("DTAO");
obj1.setTotalSurrenderFeeAmount("3.33");
obj1.setCustomerId("12345");
req.setSurrenderRequest(obj1);
AlibabaFinanceInsuranceSurrenderResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_finance_insurance_surrender_response>
    <is_success>true</is_success>
    <response_code>SUCCESS</response_code>
    <response_msg>SYSTEM_ERROR</response_msg>
</alibaba_finance_insurance_surrender_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

返回
顶部