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

alibaba.alihealth.nr.spu.query (获取标品库标品信息)

提供给ERP使用的,获取健康标品库信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
query TopAlihealthSpuQuery 可选 标品查询条件
  • └ barcode
  • String
  • 可选
  • 6940577300315
  • 69码
  • └ approval_number
  • String
  • 可选
  • 国药准字H20044865
  • 批准文号
  • └ title
  • String
  • 可选
  • 头孢拉定胶囊
  • 通用名称
  • └ specification
  • String
  • 可选
  • 250mg*20粒
  • 规格
  • └ manufacturer
  • String
  • 可选
  • 江苏亚邦强生药业有限公司
  • 生产厂商
  • └ brand_name
  • String
  • 可选
  • 亚邦
  • 品牌名称
  • └ only_drug
  • Boolean
  • 可选
  • true
  • 是否只搜索药品
  • └ open_id
  • Number
  • 可选
  • 111111
  • 开放id
  • └ offset
  • Number
  • 可选
  • 1
  • 偏移量
  • └ page_no
  • Number
  • 可选
  • 1
  • 当前页码
  • └ page_size
  • Number
  • 可选
  • 20
  • 每页条数,0不分页,返回全部
  • └ spu_id
  • Number
  • 可选
  • 236757657
  • 药品SPUID
options TopAlihealthSpuQueryOptions 可选 查询选择器
  • └ include_instruction
  • Boolean
  • 可选
  • true
  • 查询选择器,是否查询说明书信息

响应参数

名称 类型 示例值 描述
result ResponseResult 结果
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ error_code
  • String
  • 1
  • 错误码
  • └ error_msg
  • String
  • 访问异常
  • 错误信息
  • result
  • PageResponse
  • 结果
  • └ current_page
  • Number
  • 1
  • 当前页码
  • └ total_page
  • Number
  • 20
  • 总页数
  • └ total_count
  • Number
  • 20
  • 总条数
  • spus
  • TopAlihealthSpuQuery []
  • TopAlihealthSpuQuery
  • 结果列表
  • └ open_id
  • Number
  • 111111
  • 开放id
  • └ barcode
  • String
  • 6940577300315
  • 69码
  • └ approval_number
  • String
  • 国药准字H20044865
  • 国药准字
  • └ title
  • String
  • 头孢拉定胶囊
  • 通用名称
  • └ product_title
  • String
  • 111111
  • spu标题
  • └ title_alias
  • String
  • 头孢拉定胶囊
  • 别名,也就是商品名称
  • └ specification
  • String
  • 250mg*20粒
  • 规格
  • └ brand_name
  • String
  • 安邦
  • 品牌名称
  • └ manufacturer
  • String
  • 广州安邦
  • 生产厂商
  • alihealth_drug_instruction_d_t_o
  • TopAlihealthDrugInstructionDto
  • 111111
  • 药物说明书信息
  • └ purpose
  • String
  • 111111
  • 功能主治
  • └ taboo
  • String
  • 111111
  • 禁忌
  • └ notes
  • String
  • 111111
  • 注意事项
  • └ child_reminder
  • String
  • 111111
  • 儿童提醒
  • └ gravida_reminder
  • String
  • 111111
  • 孕妇提醒
  • └ old_man_reminder
  • String
  • 111111
  • 老人提醒
  • └ adr
  • String
  • 111111
  • 不良反应
  • └ ingredient
  • String
  • 111111
  • 药物成分
  • └ traits
  • String
  • 111111
  • 药品性状
  • └ interaction
  • String
  • 111111
  • 药物相互作用
  • └ pharmacological_effects
  • String
  • 111111
  • 药理作用
  • └ dosage
  • String
  • 111111
  • 用法用量
  • └ spu_id
  • Number
  • 236757657
  • 药品SPUid

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthNrSpuQueryRequest req = new AlibabaAlihealthNrSpuQueryRequest();
AlibabaAlihealthNrSpuQueryRequest.TopAlihealthSpuQuery obj1 = new AlibabaAlihealthNrSpuQueryRequest.TopAlihealthSpuQuery();
obj1.setBarcode("6940577300315");
obj1.setApprovalNumber("国药准字H20044865");
obj1.setTitle("头孢拉定胶囊");
obj1.setSpecification("250mg*20粒");
obj1.setManufacturer("江苏亚邦强生药业有限公司");
obj1.setBrandName("亚邦");
obj1.setOnlyDrug(true);
obj1.setOpenId(111111L);
obj1.setOffset(1L);
obj1.setPageNo(1L);
obj1.setPageSize(20L);
obj1.setSpuId(236757657L);
req.setQuery(obj1);
AlibabaAlihealthNrSpuQueryRequest.TopAlihealthSpuQueryOptions obj2 = new AlibabaAlihealthNrSpuQueryRequest.TopAlihealthSpuQueryOptions();
obj2.setIncludeInstruction(true);
req.setOptions(obj2);
AlibabaAlihealthNrSpuQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_nr_spu_query_response>
    <result>
        <success>true</success>
        <error_code>1</error_code>
        <error_msg>访问异常</error_msg>
        <result>
            <current_page>1</current_page>
            <total_page>20</total_page>
            <total_count>20</total_count>
            <spus>
                <top_alihealth_spu_query>
                    <open_id>111111</open_id>
                    <barcode>6940577300315</barcode>
                    <approval_number>国药准字H20044865</approval_number>
                    <title>头孢拉定胶囊</title>
                    <product_title>111111</product_title>
                    <title_alias>头孢拉定胶囊</title_alias>
                    <specification>250mg*20粒</specification>
                    <brand_name>安邦</brand_name>
                    <manufacturer>广州安邦</manufacturer>
                    <alihealth_drug_instruction_d_t_o>
                        <purpose>111111</purpose>
                        <taboo>111111</taboo>
                        <notes>111111</notes>
                        <child_reminder>111111</child_reminder>
                        <gravida_reminder>111111</gravida_reminder>
                        <old_man_reminder>111111</old_man_reminder>
                        <adr>111111</adr>
                        <ingredient>111111</ingredient>
                        <traits>111111</traits>
                        <interaction>111111</interaction>
                        <pharmacological_effects>111111</pharmacological_effects>
                        <dosage>111111</dosage>
                    </alihealth_drug_instruction_d_t_o>
                    <spu_id>236757657</spu_id>
                </top_alihealth_spu_query>
            </spus>
        </result>
    </result>
</alibaba_alihealth_nr_spu_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

返回
顶部