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

taobao.industry.secondhand.report.import (淘宝二手-验机报告导入)

淘宝二手-验机报告导入

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
report ImportQualityTestingReportVO 必须 报告对象
  • └ report_user_name
  • String
  • 可选
  • 张三
  • 报告人,注意是实际写报告的人
  • └ report_time
  • Number
  • 必须
  • 1652112000000
  • 出报告的时间
  • └ report_id
  • String
  • 必须
  • #5432
  • 出具报告ID
  • └ product_index_type
  • String
  • 必须
  • imei
  • 商品查询索引类型
  • └ product_index_id
  • String
  • 必须
  • 584727236543254
  • 商品查询索引id
  • └ title
  • String
  • 必须
  • xx手机验机报告
  • 报告名称
  • └ desc
  • String
  • 可选
  • 描述
  • 报告描述
  • └ main_img
  • String
  • 可选
  • http://cdn.xxx.com/yyy.jpg
  • 报告主图
  • └ extra_img
  • String []
  • 可选
  • 报告扩展图
  • └ commodity_condition
  • String
  • 可选
  • 111
  • 成色
  • └ model_type
  • String
  • 必须
  • mobile
  • 商品类型
  • └ model_details
  • String
  • 必须
  • 商品属性列表
  • └ report_type
  • String
  • 必须
  • mobile
  • 报告类型
  • └ report_details
  • String
  • 必须
  • 报告属性列表

响应参数

名称 类型 示例值 描述
res_success Boolean true 成功状态
res_data String gfhdsahgdsahfdsaghds 签名
res_error_code String 500 错误id
res_error_msg String 系统错误 错误描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
IndustrySecondhandReportImportRequest req = new IndustrySecondhandReportImportRequest();
IndustrySecondhandReportImportRequest.ImportQualityTestingReportVO obj1 = new IndustrySecondhandReportImportRequest.ImportQualityTestingReportVO();
obj1.setReportUserName("张三");
obj1.setReportTime(1652112000000L);
obj1.setReportId("#5432");
obj1.setProductIndexType("imei");
obj1.setProductIndexId("584727236543254");
obj1.setTitle("xx手机验机报告");
obj1.setDesc("描述");
obj1.setMainImg("http://cdn.xxx.com/yyy.jpg");
obj1.setExtraImg("");
obj1.setCommodityCondition("111");
obj1.setModelType("mobile");
obj1.setModelDetails("");
obj1.setReportType("mobile");
obj1.setReportDetails("");
req.setReport(obj1);
IndustrySecondhandReportImportResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<industry_secondhand_report_import_response>
    <res_success>true</res_success>
    <res_data>gfhdsahgdsahfdsaghds</res_data>
    <res_error_code>500</res_error_code>
    <res_error_msg>系统错误</res_error_msg>
</industry_secondhand_report_import_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

返回
顶部