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

文档中心 > API类目 > 公益三小时公共

alibaba.csr.open.workbench.targeted.instance.stop (精准捐外部需求结束)

精准捐外部需求结束

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
instance CsrTargetedDonateInstanceStateSyncDTO 必须 需求信息
  • └ reason
  • String
  • 可选
  • 可不填
  • 结束原因
  • └ out_unique_id
  • String
  • 必须
  • 123
  • 需求唯一标识
  • └ batch_id
  • Number
  • 必须
  • 12
  • 批次id
  • └ project_id
  • Number
  • 必须
  • 1
  • 项目id

响应参数

名称 类型 示例值 描述
result CsrResult 返回结果
  • └ fail_msg
  • String
  • 参数错误
  • 错误信息
  • └ fail_code
  • Number
  • 500
  • 错误码
  • └ has_success
  • Boolean
  • true
  • 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCsrOpenWorkbenchTargetedInstanceStopRequest req = new AlibabaCsrOpenWorkbenchTargetedInstanceStopRequest();
AlibabaCsrOpenWorkbenchTargetedInstanceStopRequest.CsrTargetedDonateInstanceStateSyncDTO obj1 = new AlibabaCsrOpenWorkbenchTargetedInstanceStopRequest.CsrTargetedDonateInstanceStateSyncDTO();
obj1.setReason("可不填");
obj1.setOutUniqueId("123");
obj1.setBatchId(12L);
obj1.setProjectId(1L);
req.setInstance(obj1);
AlibabaCsrOpenWorkbenchTargetedInstanceStopResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_csr_open_workbench_targeted_instance_stop_response>
    <result>
        <fail_msg>参数错误</fail_msg>
        <fail_code>500</fail_code>
        <has_success>true</has_success>
    </result>
</alibaba_csr_open_workbench_targeted_instance_stop_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

返回
顶部