文档中心 > API类目 > 资质共享API

taobao.fivee.innerproduct.publish (国产商品发布)

资质共享平台国产商品发布

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_bucode String 必须 TEST bu身份标识
param_inner_product InnerProduct 必须 国产商品
  • └ auth_code
  • String
  • 可选
  • 1234
  • 批次或备案证书编号
  • └ barcode
  • String
  • 必须
  • 1234
  • 条形码
  • licences
  • Licence []
  • 可选
  • 证照信息
  • └ certification_body
  • String
  • 可选
  • 1234
  • 认证机构
  • └ code
  • String
  • 必须
  • 1234
  • 编码
  • └ due_date
  • Date
  • 可选
  • 2019-01-01 00:00:00
  • 到期日期
  • └ effective_date
  • Date
  • 可选
  • 2019-01-01 00:00:00
  • 生效日期
  • └ name
  • String
  • 必须
  • 质检报告
  • 证照名称
  • └ type
  • Number
  • 必须
  • 1
  • 类型
  • └ urls
  • String []
  • 可选
  • http://1234
  • 下载地址列表
  • └ name
  • String
  • 必须
  • 测试商品123
  • 名称
  • produce_companies
  • Company []
  • 可选
  • 生产商信息
  • └ established_date
  • Date
  • 可选
  • 2019-01-01 00:00:00
  • 成立时间
  • licences
  • Licence []
  • 可选
  • 证照信息
  • └ certification_body
  • String
  • 可选
  • 1234
  • 认证机构
  • └ code
  • String
  • 必须
  • 911234567890123456
  • 编码
  • └ due_date
  • Date
  • 必须
  • 2019-01-01 00:00:00
  • 到期日期
  • └ effective_date
  • Date
  • 必须
  • 2019-01-01 00:00:00
  • 生效日期
  • └ name
  • String
  • 必须
  • 营业执照
  • 证照名称
  • └ type
  • Number
  • 必须
  • 1
  • 类型
  • └ urls
  • String []
  • 可选
  • http://1234
  • 下载地址列表
  • └ name
  • String
  • 可选
  • 测试公司XXX
  • 名称
  • └ registered_capital
  • String
  • 可选
  • 1234
  • 注册资本
  • └ unique_code
  • String
  • 必须
  • 911234567890123456
  • 统一社会信用代码
  • provider_companies
  • Company []
  • 可选
  • 供应商信息
  • └ established_date
  • Date
  • 可选
  • 2019-01-01 00:00:00
  • 成立时间
  • licences
  • Licence []
  • 可选
  • 证照信息
  • └ certification_body
  • String
  • 可选
  • 1234
  • 认证机构
  • └ code
  • String
  • 必须
  • 911234567890654321
  • 编码
  • └ due_date
  • Date
  • 可选
  • 2019-01-01 00:00:00
  • 到期日期
  • └ effective_date
  • Date
  • 可选
  • 2019-01-01 00:00:00
  • 生效日期
  • └ name
  • String
  • 必须
  • 营业执照
  • 证照名称
  • └ type
  • Number
  • 必须
  • 1
  • 类型
  • └ urls
  • String []
  • 可选
  • http://1234
  • 下载地址列表
  • └ name
  • String
  • 可选
  • 测试公司123
  • 名称
  • └ registered_capital
  • String
  • 可选
  • 1234
  • 注册资本
  • └ unique_code
  • String
  • 必须
  • 911234567890654321
  • 统一社会信用代码
  • └ inner_code
  • String
  • 可选
  • RT1234
  • 各业务方内部编号(例如RT的内部货号)
  • └ remark
  • String
  • 可选
  • xxx商品xxx信息
  • 业务方备注

响应参数

名称 类型 示例值 描述
code_t Number code
data String 1234 返回素材id
message String message
success_t Boolean false 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
FiveeInnerproductPublishRequest req = new FiveeInnerproductPublishRequest();
req.setParamBucode("TEST");
FiveeInnerproductPublishRequest.InnerProduct obj1 = new FiveeInnerproductPublishRequest.InnerProduct();
obj1.setAuthCode("1234");
obj1.setBarcode("1234");
List<FiveeInnerproductPublishRequest.Licence> list3 = new ArrayList<FiveeInnerproductPublishRequest.Licence>();
FiveeInnerproductPublishRequest.Licence obj4 = new FiveeInnerproductPublishRequest.Licence();
list3.add(obj4);
obj4.setCertificationBody("1234");
obj4.setCode("1234");
obj4.setDueDate(StringUtils.parseDateTime("2019-01-01 00:00:00"));
obj4.setEffectiveDate(StringUtils.parseDateTime("2019-01-01 00:00:00"));
obj4.setName("质检报告");
obj4.setType(1L);
obj4.setUrls("http://1234");
obj1.setLicences(list3);
obj1.setName("测试商品123");
List<FiveeInnerproductPublishRequest.Company> list6 = new ArrayList<FiveeInnerproductPublishRequest.Company>();
FiveeInnerproductPublishRequest.Company obj7 = new FiveeInnerproductPublishRequest.Company();
list6.add(obj7);
obj7.setEstablishedDate(StringUtils.parseDateTime("2019-01-01 00:00:00"));
List<FiveeInnerproductPublishRequest.Licence> list10 = new ArrayList<FiveeInnerproductPublishRequest.Licence>();
FiveeInnerproductPublishRequest.Licence obj11 = new FiveeInnerproductPublishRequest.Licence();
list10.add(obj11);
obj11.setCertificationBody("1234");
obj11.setCode("911234567890123456");
obj11.setDueDate(StringUtils.parseDateTime("2019-01-01 00:00:00"));
obj11.setEffectiveDate(StringUtils.parseDateTime("2019-01-01 00:00:00"));
obj11.setName("营业执照");
obj11.setType(1L);
obj11.setUrls("http://1234");
list8.setLicences(list10);
obj7.setName("测试公司XXX");
obj7.setRegisteredCapital("1234");
obj7.setUniqueCode("911234567890123456");
obj1.setProduceCompanies(list6);
List<FiveeInnerproductPublishRequest.Company> list13 = new ArrayList<FiveeInnerproductPublishRequest.Company>();
FiveeInnerproductPublishRequest.Company obj14 = new FiveeInnerproductPublishRequest.Company();
list13.add(obj14);
obj14.setEstablishedDate(StringUtils.parseDateTime("2019-01-01 00:00:00"));
List<FiveeInnerproductPublishRequest.Licence> list17 = new ArrayList<FiveeInnerproductPublishRequest.Licence>();
FiveeInnerproductPublishRequest.Licence obj18 = new FiveeInnerproductPublishRequest.Licence();
list17.add(obj18);
obj18.setCertificationBody("1234");
obj18.setCode("911234567890654321");
obj18.setDueDate(StringUtils.parseDateTime("2019-01-01 00:00:00"));
obj18.setEffectiveDate(StringUtils.parseDateTime("2019-01-01 00:00:00"));
obj18.setName("营业执照");
obj18.setType(1L);
obj18.setUrls("http://1234");
list15.setLicences(list17);
obj14.setName("测试公司123");
obj14.setRegisteredCapital("1234");
obj14.setUniqueCode("911234567890654321");
obj1.setProviderCompanies(list13);
obj1.setInnerCode("RT1234");
obj1.setRemark("xxx商品xxx信息");
req.setParamInnerProduct(obj1);
FiveeInnerproductPublishResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<fivee_innerproduct_publish_response>
    <code_t></code_t>
    <data>1234</data>
    <message></message>
    <success_t>false</success_t>
</fivee_innerproduct_publish_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

返回
顶部