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

alibaba.ascp.joint.stock.inbound.detail.list (入库单详细查询)

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

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
auth AuthDTO 必须 通用请求头
  • └ request_id
  • String
  • 可选
  • xxxxx
  • 客户端请求id,问题排查用,建议请求唯一,与业务无关
query String 必须 {"whOrderCodeList":["order1","order2","order3"]} 查询条件,入库单单号集合

响应参数

名称 类型 示例值 描述
result ResultDTO 通用返回结果包装
  • data
  • TaoStockInDetailDTO []
  • 数据行
  • └ erp_order_code
  • String
  • test123
  • ERP订单号
  • └ order_type_name
  • String
  • 采购入库
  • 单据类型
  • └ order_status_name
  • String
  • 等待收货
  • 单据状态
  • └ store_code
  • String
  • testCode
  • 仓库code
  • └ store_name
  • String
  • 测试仓库
  • 仓库名称
  • └ expect_timestamp
  • Number
  • 1642992793584
  • 预计到仓日期(时间戳,ms)
  • └ create_timestamp
  • Number
  • 1642992793584
  • 创建时间(时间戳,ms)
  • └ modified_timestamp
  • Number
  • 1642992793584
  • 更新时间(时间戳,ms)
  • item_list
  • StockInItemDTO []
  • 明细列表
  • └ sc_item_id
  • String
  • a123
  • 货品ID
  • └ sc_item_title
  • String
  • a123货品
  • 货品名称
  • └ sc_item_code
  • String
  • Test1
  • 货品编码
  • └ bar_code
  • String
  • 6912345678912
  • 条形码(69码),多个以"#"分隔
  • └ plan_qty
  • Number
  • 1
  • 计划入库数量
  • └ real_qty
  • Number
  • 1
  • 实际入库数量
  • └ diversity_qty
  • Number
  • 0
  • 差异数量
  • └ wh_order_code
  • String
  • LBXxxxxx
  • LBX单号(仓储作业单)
  • └ 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);
AlibabaAscpJointStockInboundDetailListRequest req = new AlibabaAscpJointStockInboundDetailListRequest();
AlibabaAscpJointStockInboundDetailListRequest.AuthDTO obj1 = new AlibabaAscpJointStockInboundDetailListRequest.AuthDTO();
obj1.setRequestId("xxxxx");
req.setAuth(obj1);
req.setQuery("{\"whOrderCodeList\":[\"order1\",\"order2\",\"order3\"]}");
AlibabaAscpJointStockInboundDetailListResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_ascp_joint_stock_inbound_detail_list_response>
    <result>
        <data>
            <tao_stock_in_detail_d_t_o>
                <erp_order_code>test123</erp_order_code>
                <order_type_name>采购入库</order_type_name>
                <order_status_name>等待收货</order_status_name>
                <store_code>testCode</store_code>
                <store_name>测试仓库</store_name>
                <expect_timestamp>1642992793584</expect_timestamp>
                <create_timestamp>1642992793584</create_timestamp>
                <modified_timestamp>1642992793584</modified_timestamp>
                <item_list>
                    <stock_in_item_d_t_o>
                        <sc_item_id>a123</sc_item_id>
                        <sc_item_title>a123货品</sc_item_title>
                        <sc_item_code>Test1</sc_item_code>
                        <bar_code>6912345678912</bar_code>
                        <plan_qty>1</plan_qty>
                        <real_qty>1</real_qty>
                        <diversity_qty>0</diversity_qty>
                    </stock_in_item_d_t_o>
                </item_list>
                <wh_order_code>LBXxxxxx</wh_order_code>
            </tao_stock_in_detail_d_t_o>
        </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_detail_list_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

返回
顶部