taobao.place.store.itemstore.band (门店商品关联绑定接口)

商品和多个门店关系绑定接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
item_id Number 可选 111
  • 默认值:0
  • 商品id
    store_ids String [] 可选 [111,222]
  • 最大列表长度:999
  • 门店id
    action_type String 可选 add 操作类型

    响应参数

    名称 类型 示例值 描述
    result TopBatchResultDo null 返回结果
    • └ error_code
    • String
    • null
    • 错误码
    • └ error_msg
    • String
    • null
    • 错误信息
    • └ failure
    • Boolean
    • false
    • 是否失败
    • other
    • Other
    • null
    • 其它信息
    • └ empty
    • Boolean
    • false
    • 是否为空
    • └ result_list
    • Number []
    • null
    • 失败的门店id
    • └ success
    • Boolean
    • true
    • 是否成功
    • └ total_num
    • Number
    • 0
    • 总条目数

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    PlaceStoreItemstoreBandRequest req = new PlaceStoreItemstoreBandRequest();
    req.setItemId(111L);
    req.setStoreIds("111,222");
    req.setActionType("add");
    PlaceStoreItemstoreBandResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <place_store_itemstore_band_response>
        <result>
            <error_code>null</error_code>
            <error_msg>null</error_msg>
            <failure>false</failure>
            <other>
                <empty>false</empty>
            </other>
            <result_list>
                <number>null</number>
            </result_list>
            <success>true</success>
            <total_num>0</total_num>
        </result>
    </place_store_itemstore_band_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

    返回
    顶部