文档中心 > API类目 > 天猫供应链

alibaba.tianmao.uop.cancel (阿里巴巴.天猫. 履约订单. 取消)

阿里巴巴.天猫. 履约订单. 取消

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
hi_erp_close_dto HiErpCloseDTO 必须 取消接口入参
  • └ owner_id
  • Number
  • 必须
  • 123
  • 货主id
  • └ order_code
  • String
  • 必须
  • SCP1001
  • 履约单号
  • └ reason
  • String
  • 可选
  • 有误
  • 关单原因

响应参数

名称 类型 示例值 描述
result BaseResult 返回参数
  • └ success
  • Boolean
  • true
  • 是否成功
  • result
  • HiErpCloseResp
  • 数据
  • └ out_biz_id
  • String
  • 1001
  • 外部订单号
  • └ order_code
  • String
  • SCP1001
  • 履约单号
  • └ task_exc_msg
  • String
  • 任务创建成功
  • 取消任务创建结果
  • └ msg
  • String
  • 描述
  • 通常用于success为true时的页面提示
  • └ error_code
  • String
  • 错误编码
  • 通常用于success为false时的页面错误类型判定
  • └ error_msg
  • String
  • 错误信息
  • 通常用于success为false时的页面错误信息提示

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaTianmaoUopCancelRequest req = new AlibabaTianmaoUopCancelRequest();
AlibabaTianmaoUopCancelRequest.HiErpCloseDTO obj1 = new AlibabaTianmaoUopCancelRequest.HiErpCloseDTO();
obj1.setOwnerId(123L);
obj1.setOrderCode("SCP1001");
obj1.setReason("有误");
req.setHiErpCloseDto(obj1);
AlibabaTianmaoUopCancelResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_tianmao_uop_cancel_response>
    <result>
        <success>true</success>
        <result>
            <out_biz_id>1001</out_biz_id>
            <order_code>SCP1001</order_code>
            <task_exc_msg>任务创建成功</task_exc_msg>
        </result>
        <msg>描述</msg>
        <error_code>错误编码</error_code>
        <error_msg>错误信息</error_msg>
    </result>
</alibaba_tianmao_uop_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

返回
顶部