注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > 阿里供应链中台API

alibaba.ascp.joint.stock.inbound.query (入库单查询)

供应链计划商业化LBX入库单查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
auth AuthDTO 必须 通用请求头
  • └ request_id
  • String
  • 可选
  • xxxxx
  • 客户端请求id,问题排查用,建议请求唯一,与业务无关
query String 可选 {"startTimeGreaterThan":1642992793000,"endTimeLessThan":1642992793584,"scItemCode":"123456","storeCodeList":["test"]} 查询条件
page_size Number 必须 10 分页大小
current_page Number 必须 1 当前页

响应参数

名称 类型 示例值 描述
result ResultDTO 通用返回结果包装
  • data
  • PageDTO
  • 返回数据
  • └ page_size
  • Number
  • 10
  • 分页大小
  • └ current_page
  • Number
  • 1
  • 当前页
  • └ total_item
  • Number
  • 100
  • 数据总条数
  • rows
  • TaoInventoryStandingBookDTO []
  • list
  • 数据行
  • └ erp_order_code
  • String
  • test123
  • ERP订单号
  • └ wh_order_code
  • String
  • LBXxxxxx
  • LBX单号(仓储作业单)
  • └ order_type_name
  • String
  • 601
  • 单据类型
  • └ order_status_name
  • String
  • 50
  • 单据状态
  • └ store_code
  • String
  • testCode
  • 仓库code
  • └ store_name
  • String
  • 测试仓库
  • 仓库名称
  • └ plan_qty
  • Number
  • 1
  • 计划入库数量
  • └ real_qty
  • Number
  • 1
  • 实际入库数量
  • └ diversity_qty
  • Number
  • 0
  • 差异数量
  • └ expect_timestamp
  • Number
  • 1642992793584
  • 预计到仓日期(时间戳,ms)
  • └ create_timestamp
  • Number
  • 1642992793584
  • 创建时间(时间戳,ms)
  • └ total_page
  • Number
  • 10
  • 总页数
  • └ transaction_no
  • String
  • 199901011111
  • 事务号
  • └ biz_error_message
  • String
  • 查询条件不能为空
  • 错误信息
  • └ biz_success
  • String
  • true
  • 是否成功
  • └ biz_error_code
  • String
  • I
  • 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAscpJointStockInboundQueryRequest req = new AlibabaAscpJointStockInboundQueryRequest();
AlibabaAscpJointStockInboundQueryRequest.AuthDTO obj1 = new AlibabaAscpJointStockInboundQueryRequest.AuthDTO();
obj1.setRequestId("xxxxx");
req.setAuth(obj1);
req.setQuery("{\"startTimeGreaterThan\":1642992793000,\"endTimeLessThan\":1642992793584,\"scItemCode\":\"123456\",\"storeCodeList\":[\"test\"]}");
req.setPageSize(10L);
req.setCurrentPage(1L);
AlibabaAscpJointStockInboundQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_ascp_joint_stock_inbound_query_response>
    <result>
        <data>
            <page_size>10</page_size>
            <current_page>1</current_page>
            <total_item>100</total_item>
            <rows>
                <tao_inventory_standing_book_d_t_o>
                    <erp_order_code>test123</erp_order_code>
                    <wh_order_code>LBXxxxxx</wh_order_code>
                    <order_type_name>601</order_type_name>
                    <order_status_name>50</order_status_name>
                    <store_code>testCode</store_code>
                    <store_name>测试仓库</store_name>
                    <plan_qty>1</plan_qty>
                    <real_qty>1</real_qty>
                    <diversity_qty>0</diversity_qty>
                    <expect_timestamp>1642992793584</expect_timestamp>
                    <create_timestamp>1642992793584</create_timestamp>
                </tao_inventory_standing_book_d_t_o>
            </rows>
            <total_page>10</total_page>
        </data>
        <transaction_no>199901011111</transaction_no>
        <biz_error_message>查询条件不能为空</biz_error_message>
        <biz_success>true</biz_success>
        <biz_error_code>I</biz_error_code>
    </result>
</alibaba_ascp_joint_stock_inbound_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

返回
顶部