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

alibaba.alihealth.brand.ls.sale.query (零售DDI_销售出入库查询)

零售DDI_销售出入库查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
ddi_query_request DdiQueryRequest 必须 请求体
  • └ 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
  • 页号
  • └ start_date
  • String
  • 必须
  • 20250801
  • 查询开始日期

响应参数

名称 类型 示例值 描述
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
  • SaleInoutItem []
  • 数据列表
  • └ biz_order_time
  • String
  • 2025-08-01 13:11:59
  • 业务创单时间
  • └ inout_date_time
  • String
  • 2025-08-01 22:35:15
  • 出入库时间(销售出库、调拨出库为仓库出库时间;销退入退库为仓库入库时间 时间准确到时分秒)
  • └ inout_lbx_code
  • String
  • ALJK600221687085
  • 业务单号
  • └ store_code
  • String
  • STORE_12093254
  • 仓库编码
  • └ store_name
  • String
  • 广交物流昆山医药物流中心
  • 仓库名称
  • └ company_name
  • String
  • 阿里健康大药房医药连锁有限公司
  • 公司主体
  • └ small_inout_type_name
  • String
  • 销售出库
  • 销售类型(销售出库;调拨出库;销退入库)
  • └ seller_nick
  • String
  • 阿里健康大药房
  • 销售店铺
  • └ inout_company_code
  • String
  • PHZ001
  • 往来单位ID
  • └ inout_company_name
  • String
  • 阿里健康医药(广东)有限公司
  • 往来单位名称
  • └ inout_company_addr
  • String
  • 福建省厦门市
  • 收货地区
  • └ sc_item_id
  • String
  • 612284885084
  • 货品ID
  • └ bar_code
  • String
  • 80021120105008
  • 货品条码
  • └ sc_item_name
  • String
  • 曲莱 曲莱/Trileptal 奥卡西平片 0.15g*50片/盒 标准装
  • 货品名称
  • └ spec
  • String
  • 0.15g*50片/盒
  • 货品规格
  • └ basic_unit
  • String
  • 基本单位
  • └ inout_real_qty
  • Number
  • 5
  • 销售数量
  • └ biz_order_amt
  • String
  • 70.00
  • 销售金额(单位:元)
  • └ factory_name
  • String
  • Novartis Farma S.p.A/北京诺华制药有限公司分装
  • 生产厂家
  • └ brand_id
  • String
  • 6709552
  • 品牌ID
  • └ brand_name
  • String
  • 曲莱
  • 品牌名称
  • └ approval_no
  • String
  • 国药准字HJ20171030(原国药准字J20171081)
  • 批准文号
  • └ hosp_name
  • String
  • 贵州医科大学附属医院
  • 医院名称
  • └ hosp_id
  • String
  • 152880025
  • 医院id
  • └ hosp_province
  • String
  • 贵州
  • 医院所在省份
  • └ hosp_city
  • String
  • 贵阳
  • 医院所在城市
  • └ error_msg
  • String
  • 开始时间日期不能为空
  • 错误描述

请求示例

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

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_brand_ls_sale_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>
            <sale_inout_item>
                <biz_order_time>2025-08-01 13:11:59</biz_order_time>
                <inout_date_time>2025-08-01 22:35:15</inout_date_time>
                <inout_lbx_code>ALJK600221687085</inout_lbx_code>
                <store_code>STORE_12093254</store_code>
                <store_name>广交物流昆山医药物流中心</store_name>
                <company_name>阿里健康大药房医药连锁有限公司</company_name>
                <small_inout_type_name>销售出库</small_inout_type_name>
                <seller_nick>阿里健康大药房</seller_nick>
                <inout_company_code>PHZ001</inout_company_code>
                <inout_company_name>阿里健康医药(广东)有限公司</inout_company_name>
                <inout_company_addr>福建省厦门市</inout_company_addr>
                <sc_item_id>612284885084</sc_item_id>
                <bar_code>80021120105008</bar_code>
                <sc_item_name>曲莱 曲莱/Trileptal 奥卡西平片 0.15g*50片/盒 标准装</sc_item_name>
                <spec>0.15g*50片/盒</spec>
                <basic_unit>盒</basic_unit>
                <inout_real_qty>5</inout_real_qty>
                <biz_order_amt>70.00</biz_order_amt>
                <factory_name>Novartis Farma S.p.A/北京诺华制药有限公司分装</factory_name>
                <brand_id>6709552</brand_id>
                <brand_name>曲莱</brand_name>
                <approval_no>国药准字HJ20171030(原国药准字J20171081)</approval_no>
                <hosp_name>贵州医科大学附属医院</hosp_name>
                <hosp_id>152880025</hosp_id>
                <hosp_province>贵州</hosp_province>
                <hosp_city>贵阳</hosp_city>
            </sale_inout_item>
        </body>
        <error_msg>开始时间日期不能为空</error_msg>
    </result>
</alibaba_alihealth_brand_ls_sale_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

返回
顶部