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

alibaba.fin.tao.insurance.claim.uploadattachment (大延保理赔上传材料接口)

大延保理赔上传材料接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
biz_no String 必须 1234 报案&理赔单号
attachment_key String 必须 aa.jpg 附件名称
attachment_byte byte[] 必须 [] 附件内容
extra Json 可选 {} 扩展信息,存放其他单号

响应参数

名称 类型 示例值 描述
result Claim4TopResponse 出参
  • └ error_code
  • String
  • SYSTEM_ERROR
  • 错误码
  • model
  • AttachmentUpload4TopResponse
  • 附件内容
  • └ oss_path
  • String
  • https://aa.jgp
  • oss地址
  • └ error_msg
  • String
  • -
  • 错误信息
  • └ is_success
  • Boolean
  • true
  • 请求处理是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaFinTaoInsuranceClaimUploadattachmentRequest req = new AlibabaFinTaoInsuranceClaimUploadattachmentRequest();
req.setBizNo("1234");
req.setAttachmentKey("aa.jpg");
req.setAttachmentByte(new FileItem("/tmp/file.txt"));
req.setExtraString("{}");
AlibabaFinTaoInsuranceClaimUploadattachmentResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_fin_tao_insurance_claim_uploadattachment_response>
    <result>
        <error_code>SYSTEM_ERROR</error_code>
        <model>
            <oss_path>https://aa.jgp</oss_path>
        </model>
        <error_msg>-</error_msg>
        <is_success>true</is_success>
    </result>
</alibaba_fin_tao_insurance_claim_uploadattachment_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

返回
顶部