tmall.suning.store.invalid (仓库失效)

苏宁仓库失效,分批次失效某个仓库内所有商品库存

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_list InventoryStoreInvalidRequest [] 必须
  • 最大列表长度:10
  • 商品和仓库对应列表
    • └ sc_item_code
    • String
    • 必须
    • sn001
    • 商品code
    • └ store_code
    • String
    • 必须
    • snD25
    • 仓库code

    响应参数

    名称 类型 示例值 描述
    result BatchResult 批量返回结果
    • └ error_code
    • String
    • errorCode
    • 错误码
    • error_list
    • InventoryStoreInvalidRequest []
    • {"sc_item_code":"S12i","store_code":"保税仓"}
    • 失败列表
    • └ error_code
    • String
    • errorCode
    • 错误码
    • └ error_msg
    • String
    • errorMsg
    • 错误信息
    • └ sc_item_code
    • String
    • S12i
    • 商品编码
    • └ store_code
    • String
    • 保税仓
    • 仓库编码
    • └ error_msg
    • String
    • errorMsg
    • 错误信息
    • └ success
    • Boolean
    • false
    • 是否成功
    • success_list
    • InventoryStoreInvalidRequest []
    • {"sc_item_code":"S12i","store_code":"保税仓"}
    • 成功列表
    • └ sc_item_code
    • String
    • S12i
    • 商品编码
    • └ store_code
    • String
    • 保税仓
    • 仓库编码

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    TmallSuningStoreInvalidRequest req = new TmallSuningStoreInvalidRequest();
    List<TmallSuningStoreInvalidRequest.InventoryStoreInvalidRequest> list2 = new ArrayList<TmallSuningStoreInvalidRequest.InventoryStoreInvalidRequest>();
    TmallSuningStoreInvalidRequest.InventoryStoreInvalidRequest obj3 = new TmallSuningStoreInvalidRequest.InventoryStoreInvalidRequest();
    list2.add(obj3);
    obj3.setScItemCode("sn001");
    obj3.setStoreCode("snD25");
    req.setParamList(list2);
    TmallSuningStoreInvalidResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <tmall_suning_store_invalid_response>
        <result>
            <error_code>errorCode</error_code>
            <error_list>
                <inventory_store_invalid_request>
                    <error_code>errorCode</error_code>
                    <error_msg>errorMsg</error_msg>
                    <sc_item_code>S12i</sc_item_code>
                    <store_code>保税仓</store_code>
                </inventory_store_invalid_request>
            </error_list>
            <error_msg>errorMsg</error_msg>
            <success>false</success>
            <success_list>
                <inventory_store_invalid_request>
                    <sc_item_code>S12i</sc_item_code>
                    <store_code>保税仓</store_code>
                </inventory_store_invalid_request>
            </success_list>
        </result>
    </tmall_suning_store_invalid_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

    返回
    顶部