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

文档中心 > API类目 > 阿里健康处方药平台

alibaba.alihealth.rx.gsk.spustat.query (GSK处方药销量查询)

查询GSK关联处方药最近一段时间年的销量统计

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
date_range_begin String 可选 2019-09-03 开始时间(包含)
date_range_end String 可选 2019-09-03 结束时间(包含)
page_size Number 可选 100 每页包含的数据条数
page_num Number 可选 1 请求页码,如第几页
spu_id String 可选 1 商品编码, 多个以逗号分隔

响应参数

名称 类型 示例值 描述
total_results Number 100 结果总条数
data_list RxGskDataStatisticsDto [] 结果集合列表
  • └ platform_name
  • String
  • 平台名称
  • └ spu_id
  • Number
  • 药品编码
  • └ hospital_city_name
  • String
  • 医院所在城市
  • └ seller_prov_name
  • String
  • 线下门店省份
  • └ biz_channel
  • Number
  • 业务渠道(线上1, 线上2)
  • └ hospital_prov_name
  • String
  • 医院所在省份
  • └ seller_code
  • String
  • 线下门店编号
  • └ total_amount
  • Number
  • 总销量
  • └ spu_spec
  • String
  • 商品规格
  • └ hospital_code
  • String
  • 医院编码
  • └ hospital_name
  • String
  • 医院名称
  • └ measure_unit
  • String
  • 计量单位
  • └ main_seller_name
  • String
  • 总店名称
  • └ seller_name
  • String
  • 线下名称名称
  • └ seller_city_name
  • String
  • 线下门店城市
  • └ spu_name
  • String
  • 商品名称
  • └ stat_date
  • String
  • 统计日期
  • └ main_seller_code
  • String
  • 总店编码
page_size Number 100 分页大小
page_num Number 1 请求页码
has_next Boolean false 是否存在下一页
total_page Number 1 总页数

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthRxGskSpustatQueryRequest req = new AlibabaAlihealthRxGskSpustatQueryRequest();
req.setDateRangeBegin("2019-09-03");
req.setDateRangeEnd("2019-09-03");
req.setPageSize(100L);
req.setPageNum(1L);
req.setSpuId("1");
AlibabaAlihealthRxGskSpustatQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_rx_gsk_spustat_query_response>
    <total_results>100</total_results>
    <data_list>
        <rx_gsk_data_statistics_dto>
            <platform_name></platform_name>
            <spu_id></spu_id>
            <hospital_city_name></hospital_city_name>
            <seller_prov_name></seller_prov_name>
            <biz_channel></biz_channel>
            <hospital_prov_name></hospital_prov_name>
            <seller_code></seller_code>
            <total_amount></total_amount>
            <spu_spec></spu_spec>
            <hospital_code></hospital_code>
            <hospital_name></hospital_name>
            <measure_unit></measure_unit>
            <main_seller_name></main_seller_name>
            <seller_name></seller_name>
            <seller_city_name></seller_city_name>
            <spu_name></spu_name>
            <stat_date></stat_date>
            <main_seller_code></main_seller_code>
        </rx_gsk_data_statistics_dto>
    </data_list>
    <page_size>100</page_size>
    <page_num>1</page_num>
    <has_next>false</has_next>
    <total_page>1</total_page>
</alibaba_alihealth_rx_gsk_spustat_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

返回
顶部