文档中心 > API类目 > 天猫校园共享前端类目

tmall.xiaoyuan.share.ride.async.item.create (tmall.xiaoyuan.ride.async.item.create)

前置异步创建商品

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param0 AsyncItemCreateRequest 可选 创品
  • └ investor
  • String
  • 可选
  • z1
  • 资方
  • └ typical_provider
  • String
  • 可选
  • tp1
  • tp商
  • └ campus_area_code
  • Number
  • 可选
  • 8
  • 校区
  • └ isv_res_model
  • String
  • 可选
  • 1
  • 车型

响应参数

名称 类型 示例值 描述
result Result 结果
  • └ code
  • String
  • 1
  • 代码
  • └ fail
  • String
  • false
  • 失败
  • └ msg
  • String
  • 消息
  • 消息
  • └ page_num
  • String
  • 1
  • 页码
  • └ success
  • String
  • true
  • 成功
  • └ total_num
  • String
  • 10
  • 条数

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallXiaoyuanShareRideAsyncItemCreateRequest req = new TmallXiaoyuanShareRideAsyncItemCreateRequest();
TmallXiaoyuanShareRideAsyncItemCreateRequest.AsyncItemCreateRequest obj1 = new TmallXiaoyuanShareRideAsyncItemCreateRequest.AsyncItemCreateRequest();
obj1.setInvestor("z1");
obj1.setTypicalProvider("tp1");
obj1.setCampusAreaCode(8L);
obj1.setIsvResModel("1");
req.setParam0(obj1);
TmallXiaoyuanShareRideAsyncItemCreateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_xiaoyuan_share_ride_async_item_create_response>
    <result>
        <code>1</code>
        <fail>false</fail>
        <msg>消息</msg>
        <page_num>1</page_num>
        <success>true</success>
        <total_num>10</total_num>
    </result>
</tmall_xiaoyuan_share_ride_async_item_create_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

返回
顶部