文档中心 > API类目 > 菜鸟仓配API

taobao.wlb.wms.inventory.profitloss.get (通过订单列表批量获取库存损益单信息)

通过订单列表批量获取库存损益单信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
cn_order_code String 必须 LBX2920101 菜鸟订单编码

响应参数

名称 类型 示例值 描述
profit_loss_info CainiaoInventoryProfitlossProfitlossinfo 损益信息
  • order_item_list
  • CainiaoInventoryProfitlossOrderitemlist []
  • 商品信息列表
  • order_item
  • CainiaoInventoryProfitlossOrderitem
  • 损益详情
  • └ item_code
  • String
  • 2332
  • 商家对商品的编码
  • └ inventory_type
  • String
  • 1
  • 库存类型 1 可销售库存(正品) 101 残次
  • └ item_qty
  • String
  • 12
  • 商品数量
  • └ due_date
  • Date
  • 2015-08-20 14:08:07
  • 商品保质期信息,失效日期
  • └ produce_date
  • Date
  • 2015-08-20 14:08:07
  • 商品保质期信息,生产日期
  • └ produce_code
  • String
  • 2820023
  • 生产编码,同一商品可能因商家不同有不同编码
  • └ produce_area
  • String
  • 浙江杭州
  • 生产地区
  • └ batch_code
  • String
  • 12
  • 批次号
  • └ item_id
  • String
  • 1233
  • 商品ID
  • └ store_code
  • String
  • 34532525
  • 仓库编码
  • └ cn_order_code
  • String
  • 4543545455
  • 仓库订单编码
  • └ order_type
  • Number
  • 701
  • 订单类型: 701 盘点出库 702 盘点入库
  • └ remark
  • String
  • aaa
  • 备注
  • └ created_time
  • Date
  • 2015-08-20 14:45:57
  • 单据生成时间

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
WlbWmsInventoryProfitlossGetRequest req = new WlbWmsInventoryProfitlossGetRequest();
req.setCnOrderCode("LBX2920101");
WlbWmsInventoryProfitlossGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<wlb_wms_inventory_profitloss_get_response>
    <profit_loss_info>
        <order_item_list>
            <cainiao_inventory_profitloss_orderitemlist>
                <order_item>
                    <item_code>2332</item_code>
                    <inventory_type>1</inventory_type>
                    <item_qty>12</item_qty>
                    <due_date>2015-08-20 14:08:07</due_date>
                    <produce_date>2015-08-20 14:08:07</produce_date>
                    <produce_code>2820023</produce_code>
                    <produce_area>浙江杭州</produce_area>
                    <batch_code>12</batch_code>
                    <item_id>1233</item_id>
                </order_item>
            </cainiao_inventory_profitloss_orderitemlist>
        </order_item_list>
        <store_code>34532525</store_code>
        <cn_order_code>4543545455</cn_order_code>
        <order_type>701</order_type>
        <remark>aaa</remark>
        <created_time>2015-08-20 14:45:57</created_time>
    </profit_loss_info>
</wlb_wms_inventory_profitloss_get_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

返回
顶部