文档中心 > API类目 > 天猫校园零售

tmall.campus.retail.offline.storeitem.modify (【天猫校园】-新零售-商品批量编辑)

【天猫校园】-新零售-商品批量编辑

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
item_modify_batch_request ItemModifyBatchRequest 可选 请求参数
  • └ main_item_id
  • Number
  • 可选
  • 6833232324
  • 线下主品itemId
  • store_item_request_list
  • StoreItemRequest []
  • 可选
  • storeItemRequestList
  • 每个门店具体的参数
  • └ item_id
  • Number
  • 可选
  • 6833239099
  • 线下子品itemId
  • └ features
  • String
  • 可选
  • {"unifiedCommodity":"1"}
  • 商品特征
  • └ price
  • Number
  • 可选
  • 10
  • 商品价格(分)
  • └ store_name
  • String
  • 可选
  • storeName
  • 门店name
  • └ outer_id
  • String
  • 可选
  • 238200
  • SAAS侧的商品编码
  • └ store_id
  • String
  • 可选
  • 3243284
  • 门店id
  • └ box_gauge
  • String
  • 可选
  • 1
  • 箱规规格(数字)
  • └ status
  • Number
  • 可选
  • 0
  • 商品状态: 0:正常;

响应参数

名称 类型 示例值 描述
result Result 接口返回结果
  • └ msg
  • String
  • 参数不合法
  • 服务异常信息
  • └ code
  • String
  • 9120
  • 结果码
  • └ data
  • String
  • 9831
  • 批任务ID
  • └ success
  • Boolean
  • true
  • 服务是否执行成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallCampusRetailOfflineStoreitemModifyRequest req = new TmallCampusRetailOfflineStoreitemModifyRequest();
TmallCampusRetailOfflineStoreitemModifyRequest.ItemModifyBatchRequest obj1 = new TmallCampusRetailOfflineStoreitemModifyRequest.ItemModifyBatchRequest();
obj1.setMainItemId(6833232324L);
List<TmallCampusRetailOfflineStoreitemModifyRequest.StoreItemRequest> list3 = new ArrayList<TmallCampusRetailOfflineStoreitemModifyRequest.StoreItemRequest>();
TmallCampusRetailOfflineStoreitemModifyRequest.StoreItemRequest obj4 = new TmallCampusRetailOfflineStoreitemModifyRequest.StoreItemRequest();
list3.add(obj4);
obj4.setItemId(6833239099L);
obj4.setFeatures("{\"unifiedCommodity\":\"1\"}");
obj4.setPrice(10L);
obj4.setStoreName("storeName");
obj4.setOuterId("238200");
obj4.setStoreId("3243284");
obj4.setBoxGauge("1");
obj4.setStatus(0L);
obj1.setStoreItemRequestList(list3);
req.setItemModifyBatchRequest(obj1);
TmallCampusRetailOfflineStoreitemModifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_campus_retail_offline_storeitem_modify_response>
    <result>
        <msg>参数不合法</msg>
        <code>9120</code>
        <data>9831</data>
        <success>true</success>
    </result>
</tmall_campus_retail_offline_storeitem_modify_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

返回
顶部