文档中心 > API类目 > 天猫服务平台

tmall.mallitemcenter.supplier.ability.update.batch (服务能力批量上传接口(tmall_relation))

服务能力批量上传接口(tmall_relation)

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
batch_enable_service_store_request_dto BatchEnableServiceStoreRequestDTO 必须 入参
  • single_enable_request_dto_list
  • SingleEnableRequestDTO []
  • 必须
  • eg
  • 子入参
  • └ service_sku_list
  • String []
  • 必须
  • afdasga
  • skucode
  • └ service_code
  • String
  • 必须
  • servicecode
  • servicecode
  • └ enable
  • Boolean
  • 必须
  • true
  • true表示新增能力,false表示删除能力
  • └ store_name
  • String
  • 必须
  • 测试门店
  • 门店名称
  • └ store_id
  • Number
  • 必须
  • 1234
  • 门店id

响应参数

名称 类型 示例值 描述
result Result 接口返回model
  • └ result_data
  • Boolean
  • true
  • 结果
  • └ error_type
  • Number
  • null
  • 错误类型
  • └ error_code
  • String
  • "isv.invalid-parameter"
  • 错误码
  • └ message
  • String
  • message
  • message
  • └ is_success
  • Boolean
  • true
  • true or false

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallMallitemcenterSupplierAbilityUpdateBatchRequest req = new TmallMallitemcenterSupplierAbilityUpdateBatchRequest();
TmallMallitemcenterSupplierAbilityUpdateBatchRequest.BatchEnableServiceStoreRequestDTO obj1 = new TmallMallitemcenterSupplierAbilityUpdateBatchRequest.BatchEnableServiceStoreRequestDTO();
List<TmallMallitemcenterSupplierAbilityUpdateBatchRequest.SingleEnableRequestDTO> list3 = new ArrayList<TmallMallitemcenterSupplierAbilityUpdateBatchRequest.SingleEnableRequestDTO>();
TmallMallitemcenterSupplierAbilityUpdateBatchRequest.SingleEnableRequestDTO obj4 = new TmallMallitemcenterSupplierAbilityUpdateBatchRequest.SingleEnableRequestDTO();
list3.add(obj4);
obj4.setServiceSkuList("afdasga");
obj4.setServiceCode("servicecode");
obj4.setEnable(true);
obj1.setSingleEnableRequestDtoList(list3);
obj1.setStoreName("测试门店");
obj1.setStoreId(1234L);
req.setBatchEnableServiceStoreRequestDto(obj1);
TmallMallitemcenterSupplierAbilityUpdateBatchResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_mallitemcenter_supplier_ability_update_batch_response>
    <result>
        <result_data>true</result_data>
        <error_type>null</error_type>
        <error_code>&quot;isv.invalid-parameter&quot;</error_code>
        <message>message</message>
        <is_success>true</is_success>
    </result>
</tmall_mallitemcenter_supplier_ability_update_batch_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

返回
顶部