文档中心 > API类目 > 淘宝定制行业API

taobao.industry.yp.warehouse.defect.identify.result (优品仓内残次鉴定结果回传)

优品仓内残次鉴定结果回传

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
identify_order_no String 必须 IO001 鉴定单单号
result_type String 必须 1鉴定结果;2维修结果 结果类型
result_content String 必须 a. 鉴定结果:1找不到机器;2维修;3退机;4不可退 b. 维修结果:1维修成功;0维修失败 结果内容
extend_fields Json 可选 {"test":"test"} 拓展字段,例如责任位

响应参数

名称 类型 示例值 描述
result ResultDto 结果对象
  • └ is_retry
  • Boolean
  • true
  • 是否需要重试
  • └ error_msg
  • String
  • 系统异常
  • 错误详情
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ error_code
  • String
  • SYSTEM_ERROR
  • 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
IndustryYpWarehouseDefectIdentifyResultRequest req = new IndustryYpWarehouseDefectIdentifyResultRequest();
req.setIdentifyOrderNo("IO001");
req.setResultType("1鉴定结果;2维修结果");
req.setResultContent("a. 鉴定结果:1找不到机器;2维修;3退机;4不可退 b. 维修结果:1维修成功;0维修失败");
req.setExtendFieldsString("{\"test\":\"test\"}");
IndustryYpWarehouseDefectIdentifyResultResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<industry_yp_warehouse_defect_identify_result_response>
    <result>
        <is_retry>true</is_retry>
        <error_msg>系统异常</error_msg>
        <success>true</success>
        <error_code>SYSTEM_ERROR</error_code>
    </result>
</industry_yp_warehouse_defect_identify_result_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

返回
顶部