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

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

alibaba.fin.tao.insurance.workcard.cancel (取消)

取消

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
cancel_work_cards4_top_request CancelWorkCards4TopRequest 可选 入参
  • └ workcard_id
  • Number
  • 可选
  • 123
  • 工单ID
  • └ workcard_id_list
  • Number []
  • 可选
  • [123,345]
  • 工单ID集合,批量时使用
  • └ remark
  • String
  • 可选
  • 取消
  • 取消原因
  • └ ext_attributes
  • String
  • 可选
  • {"info":"aaaa"}
  • 扩展字段

响应参数

名称 类型 示例值 描述
result WorkCard4TopResponse 出参
  • └ success
  • Boolean
  • true
  • 调用业务结果
  • └ response_message
  • String
  • SUCCESS
  • 系统信息
  • └ response_code
  • String
  • SUCCESS
  • 系统编码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaFinTaoInsuranceWorkcardCancelRequest req = new AlibabaFinTaoInsuranceWorkcardCancelRequest();
AlibabaFinTaoInsuranceWorkcardCancelRequest.CancelWorkCards4TopRequest obj1 = new AlibabaFinTaoInsuranceWorkcardCancelRequest.CancelWorkCards4TopRequest();
obj1.setWorkcardId(123L);
obj1.setWorkcardIdList(new Long[] { 123,345 };
);
obj1.setRemark("取消");
obj1.setExtAttributes("{\"info\":\"aaaa\"}");
req.setCancelWorkCards4TopRequest(obj1);
AlibabaFinTaoInsuranceWorkcardCancelResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_fin_tao_insurance_workcard_cancel_response>
    <result>
        <success>true</success>
        <response_message>SUCCESS</response_message>
        <response_code>SUCCESS</response_code>
    </result>
</alibaba_fin_tao_insurance_workcard_cancel_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

返回
顶部