tmall.suning.inventorytype.set (苏宁仓库库存类型设置)

苏宁仓库库存类型设置

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_list InventoryTypeSetRequest [] 必须
  • 最大列表长度:10
  • 系统自动生成
    • └ inventory_type
    • Number
    • 必须
    • 1
    • 1:在仓库存 2:在途库存
    • └ sc_item_code
    • String
    • 必须
    • sn01
    • 后端商品code
    • └ store_code
    • String
    • 必须
    • suD25
    • 仓库code

    响应参数

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

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    TmallSuningInventorytypeSetRequest req = new TmallSuningInventorytypeSetRequest();
    List<TmallSuningInventorytypeSetRequest.InventoryTypeSetRequest> list2 = new ArrayList<TmallSuningInventorytypeSetRequest.InventoryTypeSetRequest>();
    TmallSuningInventorytypeSetRequest.InventoryTypeSetRequest obj3 = new TmallSuningInventorytypeSetRequest.InventoryTypeSetRequest();
    list2.add(obj3);
    obj3.setInventoryType(1L);
    obj3.setScItemCode("sn01");
    obj3.setStoreCode("suD25");
    req.setParamList(list2);
    TmallSuningInventorytypeSetResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <tmall_suning_inventorytype_set_response>
        <result>
            <error_code>errorCode</error_code>
            <error_list>
                <inventory_type_set_response>
                    <error_code>bz001</error_code>
                    <error_msg>db异常</error_msg>
                    <inventory_type>1</inventory_type>
                    <sc_item_code>S12i</sc_item_code>
                    <store_code>保税仓</store_code>
                </inventory_type_set_response>
            </error_list>
            <error_msg>errorMsg</error_msg>
            <success>false</success>
            <success_list>
                <inventory_type_set_response>
                    <inventory_type>1</inventory_type>
                    <sc_item_code>S12i</sc_item_code>
                    <store_code>保税仓</store_code>
                </inventory_type_set_response>
            </success_list>
        </result>
    </tmall_suning_inventorytype_set_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

    返回
    顶部