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

alibaba.alihealth.supplier.purchase.query (lbx查询批号效期)

lbx查询批号效期

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
lbx_no String 可选 lbx123456 lbx单号

响应参数

名称 类型 示例值 描述
result JkResult result 返回结果
  • └ error_code
  • String
  • QUERY_ERROR
  • 错误码
  • └ error_msg
  • String
  • 查询错误
  • 错误信息
  • modules
  • PoItemBatchInfoDTO []
  • module
  • module
  • └ produce_date
  • Date
  • 2020-03-30 19:00:00
  • 生产日期
  • └ sc_item_name
  • String
  • 测试商品1
  • 货品名称
  • └ sc_item_id
  • Number
  • 1234343
  • 货品id
  • └ po_no
  • String
  • PO1232323
  • 采购单号
  • └ expire_date
  • Date
  • 2020-03-30 19:00:00
  • 过期时间
  • └ batch_code
  • String
  • 1231232131
  • 批号
  • └ confirm_quantity
  • Number
  • 22
  • 确认数量
  • └ status
  • Number
  • 1
  • 状态
  • └ success
  • Boolean
  • false
  • 返回查询成功与否

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthSupplierPurchaseQueryRequest req = new AlibabaAlihealthSupplierPurchaseQueryRequest();
req.setLbxNo("lbx123456");
AlibabaAlihealthSupplierPurchaseQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_supplier_purchase_query_response>
    <result>
        <error_code>QUERY_ERROR</error_code>
        <error_msg>查询错误</error_msg>
        <modules>
            <po_item_batch_info_d_t_o>
                <produce_date>2020-03-30 19:00:00</produce_date>
                <sc_item_name>测试商品1</sc_item_name>
                <sc_item_id>1234343</sc_item_id>
                <po_no>PO1232323</po_no>
                <expire_date>2020-03-30 19:00:00</expire_date>
                <batch_code>1231232131</batch_code>
                <confirm_quantity>22</confirm_quantity>
                <status>1</status>
            </po_item_batch_info_d_t_o>
        </modules>
        <success>false</success>
    </result>
</alibaba_alihealth_supplier_purchase_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

返回
顶部