文档中心 > API类目 > 五道口API

alibaba.tcls.aelophy.warehouse.order.get (仓作业单获取)

仓作业单获取

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
warehouse_order_get_request WarehouseOrderGetRequest 必须 查询入参对象
  • └ store_id
  • String
  • 必须
  • S001
  • 门店编码
  • └ biz_order_id
  • Number
  • 必须
  • 8000121012231001
  • 订单ID

响应参数

名称 类型 示例值 描述
api_result TopBaseResult 返回结果
  • model
  • WarehouseOrderResponse
  • 仓单对象
  • └ merchant_code
  • String
  • CSSJ
  • 商家编码
  • └ store_id
  • String
  • S001
  • 门店编码
  • └ biz_order_id
  • Number
  • 80010021029801
  • 订单ID
  • └ order_from
  • Number
  • 31
  • 订单来源 (2=美团/3=饿了么/26=京东到家/31=淘鲜达/28=私域渠道)
  • └ out_order_id
  • String
  • 180051001920101
  • 渠道订单ID
  • └ warehouse_status
  • Number
  • 1
  • 仓作业单状态 1 = 任务生成 2 = 拣货开始 3 = 拣货完成 4 = 打包开始 5 = 打包完成 -1 = 任务取消
  • └ warehouse_status_desc
  • String
  • 任务生成
  • 仓作业单状态描述
  • └ delivery_time_mind
  • Number
  • 1
  • 订单配送时效 1 = 自提 / 2 = 小时达
  • └ exc_status_desc
  • String
  • 正常
  • 仓单异常状态 (正常/缺货出/任务取消)
  • └ task_dispatched_time
  • Date
  • 2023-09-19 10:00:00
  • 仓作业任务下发时间(仓接单)
  • └ task_generate_time
  • Date
  • 2023-09-19 10:05:00
  • 仓作业任务生成时间(准备开始作业)
  • └ pick_worker_id
  • String
  • worker001
  • 拣货人员ID
  • └ pick_worker_name
  • String
  • 张三
  • 拣货人员姓名
  • └ pick_start_time
  • Date
  • 2023-09-19 10:15:00
  • 拣货开始时间(人员开始拣货)
  • └ pick_finish_time
  • Date
  • 2023-09-19 10:18:00
  • 拣货结束时间
  • └ pack_worker_id
  • String
  • worker001
  • 打包人员ID
  • └ pack_worker_name
  • String
  • 张三
  • 打包人员姓名
  • └ pack_start_time
  • Date
  • 2023-09-19 10:20:00
  • 打包开始时间
  • └ pack_finish_time
  • Date
  • 2023-09-19 10:22:00
  • 打包结束时间
  • └ latest_arrival_time
  • Date
  • 2023-09-19 11:00:00
  • 用户选择最晚送达时间
  • └ latest_outbound_time
  • Date
  • 2023-09-19 10:30:00
  • 最晚出库时间
  • └ actual_outbound_time
  • Date
  • 2023-09-19 10:25:00
  • 实际出库时间
  • └ cancel_time
  • Date
  • 2023-09-19 10:00:00
  • 仓作业取消时间
  • sub_orders
  • WarehouseSubOrderResponse []
  • 子单列表
  • └ biz_sub_order_id
  • Number
  • 80010021029802
  • 交易子单号
  • └ out_sub_order_id
  • String
  • 180051001920102
  • 渠道子单号
  • └ sku_code
  • String
  • 23001001
  • 商品编码
  • └ sku_name
  • String
  • 牛奶500ml
  • 商品名称
  • └ stock_unit
  • String
  • 库存单位
  • └ buy_stock_quantity
  • BigDecimal
  • 2.0
  • 库存单位购买数量(应拣数量)
  • └ pick_stock_quantity
  • BigDecimal
  • 2.0
  • 库存单位拣货数量
  • └ success
  • Boolean
  • true
  • 接口是否成功
  • └ err_code
  • String
  • SUCCESS
  • 返回码
  • └ err_msg
  • String
  • 调用成功
  • 返回码说明

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaTclsAelophyWarehouseOrderGetRequest req = new AlibabaTclsAelophyWarehouseOrderGetRequest();
AlibabaTclsAelophyWarehouseOrderGetRequest.WarehouseOrderGetRequest obj1 = new AlibabaTclsAelophyWarehouseOrderGetRequest.WarehouseOrderGetRequest();
obj1.setStoreId("S001");
obj1.setBizOrderId(8000121012231001L);
req.setWarehouseOrderGetRequest(obj1);
AlibabaTclsAelophyWarehouseOrderGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_tcls_aelophy_warehouse_order_get_response>
    <api_result>
        <model>
            <merchant_code>CSSJ</merchant_code>
            <store_id>S001</store_id>
            <biz_order_id>80010021029801</biz_order_id>
            <order_from>31</order_from>
            <out_order_id>180051001920101</out_order_id>
            <warehouse_status>1</warehouse_status>
            <warehouse_status_desc>任务生成</warehouse_status_desc>
            <delivery_time_mind>1</delivery_time_mind>
            <exc_status_desc>正常</exc_status_desc>
            <task_dispatched_time>2023-09-19 10:00:00</task_dispatched_time>
            <task_generate_time>2023-09-19 10:05:00</task_generate_time>
            <pick_worker_id>worker001</pick_worker_id>
            <pick_worker_name>张三</pick_worker_name>
            <pick_start_time>2023-09-19 10:15:00</pick_start_time>
            <pick_finish_time>2023-09-19 10:18:00</pick_finish_time>
            <pack_worker_id>worker001</pack_worker_id>
            <pack_worker_name>张三</pack_worker_name>
            <pack_start_time>2023-09-19 10:20:00</pack_start_time>
            <pack_finish_time>2023-09-19 10:22:00</pack_finish_time>
            <latest_arrival_time>2023-09-19 11:00:00</latest_arrival_time>
            <latest_outbound_time>2023-09-19 10:30:00</latest_outbound_time>
            <actual_outbound_time>2023-09-19 10:25:00</actual_outbound_time>
            <cancel_time>2023-09-19 10:00:00</cancel_time>
            <sub_orders>
                <warehouse_sub_order_response>
                    <biz_sub_order_id>80010021029802</biz_sub_order_id>
                    <out_sub_order_id>180051001920102</out_sub_order_id>
                    <sku_code>23001001</sku_code>
                    <sku_name>牛奶500ml</sku_name>
                    <stock_unit>份</stock_unit>
                    <buy_stock_quantity>2.0</buy_stock_quantity>
                    <pick_stock_quantity>2.0</pick_stock_quantity>
                </warehouse_sub_order_response>
            </sub_orders>
        </model>
        <success>true</success>
        <err_code>SUCCESS</err_code>
        <err_msg>调用成功</err_msg>
    </api_result>
</alibaba_tcls_aelophy_warehouse_order_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

返回
顶部