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

alibaba.finance.insurance.report.callback (报案回调)

报案回调

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
report_callback ReportCallbackRequest 必须 回调请求
  • └ insure_id
  • String
  • 必须
  • 010xxx
  • 平台保单号
  • └ policy_no
  • String
  • 可选
  • HA123
  • 保司保单号
  • └ report_id
  • String
  • 必须
  • 010xxx
  • 平台报案单号
  • └ notify_type
  • String
  • 必须
  • WAREHOUSE_RECEIPT
  • 通知时间类型
  • └ attrs
  • String
  • 可选
  • {"a":"b"}
  • 扩展字段

响应参数

名称 类型 示例值 描述
is_success Boolean true 接口调用是否成功
response_code String SUCCESS 错误码
response_msg String 参数错误 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaFinanceInsuranceReportCallbackRequest req = new AlibabaFinanceInsuranceReportCallbackRequest();
AlibabaFinanceInsuranceReportCallbackRequest.ReportCallbackRequest obj1 = new AlibabaFinanceInsuranceReportCallbackRequest.ReportCallbackRequest();
obj1.setInsureId("010xxx");
obj1.setPolicyNo("HA123");
obj1.setReportId("010xxx");
obj1.setNotifyType("WAREHOUSE_RECEIPT");
obj1.setAttrs("{\"a\":\"b\"}");
req.setReportCallback(obj1);
AlibabaFinanceInsuranceReportCallbackResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_finance_insurance_report_callback_response>
    <is_success>true</is_success>
    <response_code>SUCCESS</response_code>
    <response_msg>参数错误</response_msg>
</alibaba_finance_insurance_report_callback_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

返回
顶部