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

alibaba.alihealth.cep.brand.item.list (DDI厂商查询已授权品牌下商品信息)

DDI厂商查询已授权品牌下商品信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
item_request BrandItemRequest 必须 请求对象
  • └ brand_ids
  • Number []
  • 可选
  • 品牌id集合
  • └ item_ids
  • Number []
  • 可选
  • 商品id集合
  • └ page_size
  • Number
  • 可选
  • 20
  • 每页记录数
  • └ page_no
  • Number
  • 可选
  • 1
  • 页码

响应参数

名称 类型 示例值 描述
result ResponseResult 返回数据
  • result
  • PageResponse
  • 商品数据分页信息
  • result
  • BrandItemDTO []
  • 商品数据列表
  • └ id
  • Number
  • 111
  • 商品id
  • └ name
  • String
  • 测试药品1
  • 商品名称
  • └ brand_id
  • Number
  • 111
  • 品牌id
  • └ brand_name
  • String
  • 拜耳
  • 品牌名称
  • └ commodity_name
  • String
  • 测试药品通用名1
  • 商品通用名
  • └ spec
  • String
  • 规格1
  • 规格
  • └ class_name
  • String
  • 分类1
  • 分类
  • └ company_id
  • Number
  • 123123
  • 经营主体id
  • └ company_name
  • String
  • 测试大药房
  • 经营主体名称
  • └ total_count
  • Number
  • 11
  • 总数量
  • └ page_size
  • Number
  • 20
  • 每页大小
  • └ total_page
  • Number
  • 1
  • 总页码
  • └ current_page
  • Number
  • 1
  • 当前页码
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ error_code
  • String
  • 11
  • 错误码
  • └ error_msg
  • String
  • 参数错误
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthCepBrandItemListRequest req = new AlibabaAlihealthCepBrandItemListRequest();
AlibabaAlihealthCepBrandItemListRequest.BrandItemRequest obj1 = new AlibabaAlihealthCepBrandItemListRequest.BrandItemRequest();
obj1.setBrandIds(new Long[] {  };
);
obj1.setItemIds(new Long[] {  };
);
obj1.setPageSize(20L);
obj1.setPageNo(1L);
req.setItemRequest(obj1);
AlibabaAlihealthCepBrandItemListResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_cep_brand_item_list_response>
    <result>
        <result>
            <result>
                <brand_item_d_t_o>
                    <id>111</id>
                    <name>测试药品1</name>
                    <brand_id>111</brand_id>
                    <brand_name>拜耳</brand_name>
                    <commodity_name>测试药品通用名1</commodity_name>
                    <spec>规格1</spec>
                    <class_name>分类1</class_name>
                    <company_id>123123</company_id>
                    <company_name>测试大药房</company_name>
                </brand_item_d_t_o>
            </result>
            <total_count>11</total_count>
            <page_size>20</page_size>
            <total_page>1</total_page>
            <current_page>1</current_page>
        </result>
        <success>true</success>
        <error_code>11</error_code>
        <error_msg>参数错误</error_msg>
    </result>
</alibaba_alihealth_cep_brand_item_list_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

返回
顶部