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

alibaba.alihealth.brand.ls.purchase.query (零售DDI_采购出入库查询)

零售DDI_采购出入库查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
ddi_query_request DdiQueryRequest 必须 请求体
  • └ start_date
  • String
  • 必须
  • 20250801
  • 查询开始日期
  • └ end_date
  • String
  • 必须
  • 20250801
  • 查询结束日期
  • └ item_ids
  • String []
  • 可选
  • ["607650113288"]
  • 货品ID列表
  • └ company_name
  • String
  • 可选
  • 阿里健康医药(广东)有限公司金港中路分店
  • 公司主体
  • └ page_size
  • Number
  • 必须
  • 20
  • 分页大小
  • └ brand_ids
  • String []
  • 必须
  • ["3694391"]
  • 品牌ID列表
  • └ page_num
  • Number
  • 必须
  • 1
  • 页号

响应参数

名称 类型 示例值 描述
result PagedResult 返回的分页信息
  • └ is_retry
  • Boolean
  • false
  • 是否可重试
  • └ page_index
  • Number
  • 1
  • 页号
  • └ total_page
  • Number
  • 12
  • 总页数
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ page_size
  • Number
  • 20
  • 每页大小
  • └ error_code
  • String
  • PARAMS_INVALID
  • 错误码
  • └ total_count
  • Number
  • 115
  • 总条数
  • body
  • PurchaseInoutItem []
  • 数据列表
  • └ biz_order_time
  • String
  • 2025-08-01 10:29:26
  • 业务创单时间
  • └ inout_date_time
  • String
  • 2025-08-01 10:29:26
  • 出入库时间
  • └ inout_lbx_code
  • String
  • ALJK600219795749
  • 业务单号,下发仓库的物流单号
  • └ store_code
  • String
  • KSYYWLZX001
  • 仓库编号
  • └ store_name
  • String
  • 广交物流昆山医药物流中心
  • 仓库名称
  • └ company_name
  • String
  • 阿里健康医药(广东)有限公司塘栖分店
  • 公司主体,仓库所属主体
  • └ small_inout_type_name
  • String
  • 采购入库
  • 采购类型:采购入库;调拨入库;采购退库
  • └ inout_company_code
  • String
  • 800000000056742
  • 往来单位ID:采购入库、采购退库为二级供应商ID;调拨入库为调拨来源仓库编号;
  • └ inout_company_name
  • String
  • 莲藕健康药业(广州)有限公司
  • 往来单位名称:采购入库、采购退库为二级供应商名称;调拨入库为调拨来源仓库名称;
  • └ sc_item_id
  • String
  • 607650113288
  • 货品ID
  • └ bar_code
  • String
  • 8710428006073
  • 货品条码
  • └ sc_item_name
  • String
  • 安素 肠内营养粉剂(TP) 400g/罐 标准装
  • 货品名称
  • └ spec
  • String
  • 400g/罐
  • 货品规格
  • └ basic_unit
  • String
  • 基本单位
  • └ inout_real_qty
  • Number
  • 30
  • 出入库数量:采购入库、调拨入库为正数,退供出库为负数
  • └ biz_order_price
  • String
  • 8.45
  • 采购价格(单位:元)
  • └ biz_order_amt
  • String
  • 253.50
  • 采购金额(单位:元)
  • └ factory_name
  • String
  • ABBOTT LABORATORIES B.V.
  • 生产厂家
  • └ brand_id
  • String
  • 3694391
  • 品牌ID
  • └ brand_name
  • String
  • 安素
  • 品牌名称
  • └ approval_no
  • String
  • 国药准字HJ20181147(原进口药品注册证号H20181147)
  • 批准文号
  • └ error_msg
  • String
  • 开始时间日期不能为空
  • 错误描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthBrandLsPurchaseQueryRequest req = new AlibabaAlihealthBrandLsPurchaseQueryRequest();
AlibabaAlihealthBrandLsPurchaseQueryRequest.DdiQueryRequest obj1 = new AlibabaAlihealthBrandLsPurchaseQueryRequest.DdiQueryRequest();
obj1.setStartDate("20250801");
obj1.setEndDate("20250801");
obj1.setItemIds(""607650113288"");
obj1.setCompanyName("阿里健康医药(广东)有限公司金港中路分店");
obj1.setPageSize(20L);
obj1.setBrandIds(""3694391"");
obj1.setPageNum(1L);
req.setDdiQueryRequest(obj1);
AlibabaAlihealthBrandLsPurchaseQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_brand_ls_purchase_query_response>
    <result>
        <is_retry>false</is_retry>
        <page_index>1</page_index>
        <total_page>12</total_page>
        <success>true</success>
        <page_size>20</page_size>
        <error_code>PARAMS_INVALID</error_code>
        <total_count>115</total_count>
        <body>
            <purchase_inout_item>
                <biz_order_time>2025-08-01 10:29:26</biz_order_time>
                <inout_date_time>2025-08-01 10:29:26</inout_date_time>
                <inout_lbx_code>ALJK600219795749</inout_lbx_code>
                <store_code>KSYYWLZX001</store_code>
                <store_name>广交物流昆山医药物流中心</store_name>
                <company_name>阿里健康医药(广东)有限公司塘栖分店</company_name>
                <small_inout_type_name>采购入库</small_inout_type_name>
                <inout_company_code>800000000056742</inout_company_code>
                <inout_company_name>莲藕健康药业(广州)有限公司</inout_company_name>
                <sc_item_id>607650113288</sc_item_id>
                <bar_code>8710428006073</bar_code>
                <sc_item_name>安素 肠内营养粉剂(TP) 400g/罐 标准装</sc_item_name>
                <spec>400g/罐</spec>
                <basic_unit>盒</basic_unit>
                <inout_real_qty>30</inout_real_qty>
                <biz_order_price>8.45</biz_order_price>
                <biz_order_amt>253.50</biz_order_amt>
                <factory_name>ABBOTT LABORATORIES B.V.</factory_name>
                <brand_id>3694391</brand_id>
                <brand_name>安素</brand_name>
                <approval_no>国药准字HJ20181147(原进口药品注册证号H20181147)</approval_no>
            </purchase_inout_item>
        </body>
        <error_msg>开始时间日期不能为空</error_msg>
    </result>
</alibaba_alihealth_brand_ls_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

返回
顶部