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

taobao.wlb.wms.cainiao.bill.query (查询单据列表)

查询单据列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
page_size Number 可选 50
  • 默认值:50
  • 每页条数。(每页条数不超过50条。默认为50)
    page_no Number 可选 1
  • 默认值:1
  • 页码。(大于0的整数。默认为1)
    order_type String 可选 201 订单类型 201 销售出库 501 退货入库 502 换货出库 503 补发出库904 普通入库 903 普通出库单 306 B2B入库单 305 B2B出库单 601 采购入库 901 退供出库单 701 盘点出库 702 盘点入库 711 库存异动单
    end_modified_time Date 必须 2015-08-18 13:50:32 起始时间,此字段检索订单最后修改时间, 格式 yyyy-MM-dd HH:mm:ss。
    start_modified_time Date 必须 2015-08-18 13:50:32 结束时间,此字段检索订单最后修改时间, 格式 yyyy-MM-dd HH:mm:ss。

    响应参数

    名称 类型 示例值 描述
    order_info_list CainiaoBillQueryOrderinfolist [] 订单列表信息
    • order_info
    • CainiaoBillQueryOrderinfo
    • 订单信息
    • └ remark
    • String
    • 备注
    • 备注
    • └ modified_time
    • Date
    • 2015-08-20 13:11:00
    • 订单最后修改时间
    • └ status
    • String
    • WMS_ACCEPT
    • 单据状态 WMS_ACCEPT 接单成功 WMS_REJECT 接单失败 WMS_CONFIRMED 仓库生产完成,注:此状态表示单据已经在WMS处理完成,可能通过获取单据详情接口获取单据详细信息。 WMS_CANCEL 取消仓库发货 -- WMS_FAILED 订单发货失败 TMS_SIGN 买家签收 TMS_REJECT 买家拒签 TMS_CANCEL 拦截派送
    • └ store_code
    • String
    • Store_001
    • 仓库编码
    • └ order_type
    • Number
    • 201
    • 单据类型 201 销售出库 501 退货入库 502 换货出库 503 补发出库 904 普通入库 903 普通出库单 306 B2B入库单 305 B2B出库单 601 采购入库 901 退供出库单 701 盘点出库 702 盘点入库 711 库存异动单
    • └ order_code
    • String
    • 23333
    • ERP订单号
    • └ cn_order_code
    • String
    • LBX1245
    • 菜鸟订单编码
    • └ order_source
    • String
    • 201
    • 订单来源(213 天猫,201 淘宝,214 京东,202 1688 阿里中文站 ,203 苏宁在线,204 亚马逊中国,205 当当,208 1号店,207 唯品会,209 国美在线,210 拍拍,206 易贝ebay,211 聚美优品,212 乐蜂网,215 邮乐,216 凡客,217 优购,218 银泰,219 易讯,221 聚尚网,222 蘑菇街,223 POS门店,301 其他)
    • └ order_source_codes
    • String []
    • ["hello","world"]
    • 交易订单号
    total_count Number 11 总条数

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    WlbWmsCainiaoBillQueryRequest req = new WlbWmsCainiaoBillQueryRequest();
    req.setPageSize(50L);
    req.setPageNo(1L);
    req.setOrderType("201");
    req.setEndModifiedTime(StringUtils.parseDateTime("2015-08-18 13:50:32"));
    req.setStartModifiedTime(StringUtils.parseDateTime("2015-08-18 13:50:32"));
    WlbWmsCainiaoBillQueryResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <wlb_wms_cainiao_bill_query_response>
        <order_info_list>
            <cainiao_bill_query_orderinfolist>
                <order_info>
                    <remark>备注</remark>
                    <modified_time>2015-08-20 13:11:00</modified_time>
                    <status>WMS_ACCEPT</status>
                    <store_code>Store_001</store_code>
                    <order_type>201</order_type>
                    <order_code>23333</order_code>
                    <cn_order_code>LBX1245</cn_order_code>
                    <order_source>201</order_source>
                    <order_source_codes>
                        <string>[&quot;hello&quot;</string>
                        <string>&quot;world&quot;]</string>
                    </order_source_codes>
                </order_info>
            </cainiao_bill_query_orderinfolist>
        </order_info_list>
        <total_count>11</total_count>
    </wlb_wms_cainiao_bill_query_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

    返回
    顶部