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

文档中心 > API类目 > 阿里健康API

alibaba.alihealth.inboundresult.query (供应商查询入库结果)

供应商通过采购单号或者LBX单号查询入库结果

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
supplier_id Number 必须 1000000000051843 供应商ID
purchase_order_no String 可选 PO210702174404229042945 采购单号
lbx_no String 可选 LBX0221027130915787 LBX单号

响应参数

名称 类型 示例值 描述
result JkResult 返回结果
  • modules
  • Module []
  • 返回结果list
  • └ purchase_order_no
  • String
  • po123
  • 采购单号
  • └ lbx_no
  • String
  • lbx1213
  • lbx单号
  • └ sc_item_id
  • Number
  • 1232
  • 货品ID
  • └ title
  • String
  • 测试商品
  • 货品名称
  • └ specification
  • String
  • 12粒/盒
  • 规格
  • └ whc_bar_code
  • String
  • 6912312
  • 条码
  • └ received_normal_qty
  • Number
  • 123
  • 实收正品数量
  • └ received_defective_qty
  • Number
  • 11
  • 实收残品数量
  • └ success
  • Boolean
  • true
  • 查询是否成功
  • └ error_code
  • String
  • JK_SYSTEM_ERROR
  • 错误码
  • └ error_msg
  • String
  • 系统错误
  • 错误信息
  • └ status
  • Number
  • 40
  • 收货状态,40-代表收货完成

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthInboundresultQueryRequest req = new AlibabaAlihealthInboundresultQueryRequest();
req.setSupplierId(1000000000051843L);
req.setPurchaseOrderNo("PO210702174404229042945");
req.setLbxNo("LBX0221027130915787");
AlibabaAlihealthInboundresultQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_inboundresult_query_response>
    <result>
        <modules>
            <module>
                <purchase_order_no>po123</purchase_order_no>
                <lbx_no>lbx1213</lbx_no>
                <sc_item_id>1232</sc_item_id>
                <title>测试商品</title>
                <specification>12粒/盒</specification>
                <whc_bar_code>6912312</whc_bar_code>
                <received_normal_qty>123</received_normal_qty>
                <received_defective_qty>11</received_defective_qty>
            </module>
        </modules>
        <success>true</success>
        <error_code>JK_SYSTEM_ERROR</error_code>
        <error_msg>系统错误</error_msg>
        <status>40</status>
    </result>
</alibaba_alihealth_inboundresult_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

返回
顶部