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

taobao.fivee.company.upload (上传商信息接口)

资质共享平台上传资质证照

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_bucode String 必须 RT_MART bu身份标识
param_company Company 必须 商家证照信息
  • └ established_date
  • Date
  • 可选
  • 2019-01-01 00:00:00
  • 成立时间
  • licences
  • Licence []
  • 可选
  • 证照信息
  • └ certification_body
  • String
  • 可选
  • 1234
  • 认证机构
  • └ code
  • String
  • 必须
  • code
  • 编码
  • └ due_date
  • Date
  • 可选
  • 2019-01-01 00:00:00
  • 到期日期
  • └ effective_date
  • Date
  • 可选
  • 2019-01-01 00:00:00
  • 生效日期
  • └ name
  • String
  • 必须
  • name
  • 名称
  • └ type
  • Number
  • 必须
  • 1
  • 类型
  • └ urls
  • String []
  • 可选
  • http://1234
  • 下载地址列表
  • └ name
  • String
  • 必须
  • name
  • 名称
  • └ registered_capital
  • String
  • 可选
  • 1234
  • 注册资本
  • └ unique_code
  • String
  • 必须
  • 1234
  • 统一社会信用代码
  • └ relation_type
  • Number []
  • 可选
  • [1,2]
  • 关系类型:1.制造商 2.供应商

响应参数

名称 类型 示例值 描述
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);
FiveeCompanyUploadRequest req = new FiveeCompanyUploadRequest();
req.setParamBucode("RT_MART");
FiveeCompanyUploadRequest.Company obj1 = new FiveeCompanyUploadRequest.Company();
obj1.setEstablishedDate(StringUtils.parseDateTime("2019-01-01 00:00:00"));
List<FiveeCompanyUploadRequest.Licence> list3 = new ArrayList<FiveeCompanyUploadRequest.Licence>();
FiveeCompanyUploadRequest.Licence obj4 = new FiveeCompanyUploadRequest.Licence();
list3.add(obj4);
obj4.setCertificationBody("1234");
obj4.setCode("code");
obj4.setDueDate(StringUtils.parseDateTime("2019-01-01 00:00:00"));
obj4.setEffectiveDate(StringUtils.parseDateTime("2019-01-01 00:00:00"));
obj4.setName("name");
obj4.setType(1L);
obj4.setUrls("http://1234");
obj1.setLicences(list3);
obj1.setName("name");
obj1.setRegisteredCapital("1234");
obj1.setUniqueCode("1234");
obj1.setRelationType(new Long[] { 1,2 };
);
req.setParamCompany(obj1);
FiveeCompanyUploadResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

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

返回
顶部