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

alibaba.alihealth.cep.brand.inventory.inout.list (DDI厂商查询已授权品牌的出入库明细)

DDI厂商查询已授权品牌的出入库明细

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
inventory_in_out_request BrandInventoryInOutRequest 可选 请求参数
  • └ busi_date
  • String
  • 必须
  • 2022-02-14
  • 日期,yyyy-MM-dd
  • └ page_num
  • Number
  • 可选
  • 1
  • 页码
  • └ item_ids
  • Number []
  • 可选
  • 商品IDs
  • └ bill_type
  • Number
  • 可选
  • 1
  • 出入库类型。1:入库;2:出库
  • └ page_size
  • Number
  • 可选
  • 20
  • 每页记录数
  • └ brand_ids
  • Number []
  • 可选
  • 品牌IDs
  • └ source_type
  • String
  • 可选
  • 101
  • 业务类型。101:采购入库,102:调拨入库,103:盘盈,104:销售退货,105:其它入库 201:采购退货,202:调拨出库,203:盘亏,204:销售出库,205:其它出库,206:报损

响应参数

名称 类型 示例值 描述
result ResponseResult 返回数据
  • result
  • PageResponse
  • 品牌出入库明细分页信息
  • result
  • BrandInventoryInOutDTO []
  • 品牌出入库明细列表
  • └ brand_id
  • Number
  • 10000
  • 品牌ID
  • └ brand_name
  • String
  • Test品牌1
  • 品牌名
  • └ busi_date
  • String
  • 2022-02-14
  • 日期
  • └ seller_id
  • Number
  • 1
  • 公司ID
  • └ seller_name
  • String
  • Test公司
  • 公司名称
  • └ dept_id
  • Number
  • 1
  • 门店ID
  • └ dept_name
  • String
  • Test公司门店1
  • 门店名称
  • └ item_id
  • Number
  • 1
  • 商品ID
  • └ item_name
  • String
  • Test胶囊1
  • 商品名
  • └ item_commodity_name
  • String
  • Test胶囊
  • 通用名
  • └ item_spec
  • String
  • 0.25g*50s
  • 规格
  • └ item_unit
  • String
  • 商品单位
  • └ item_qty
  • Number
  • 99
  • 数量
  • └ item_lot
  • String
  • 1
  • 批号
  • └ item_batch
  • String
  • BN22012182
  • 批次
  • └ prod_date
  • Date
  • 2020-08-26 00:00:00
  • 生产日期
  • └ invalid_date
  • Date
  • 2024-07-31 00:00:00
  • 有效期
  • └ supp_id
  • Number
  • 1
  • 供应商ID
  • └ supp_name
  • String
  • Test供应商1
  • 供应商名称
  • └ bill_no
  • String
  • 12
  • 单号
  • └ bill_type
  • Number
  • 1
  • 出入库类型。1:入库;2:出库
  • └ source_type
  • Number
  • 1
  • 业务类型。101:采购入库,102:调拨入库,103:盘盈,104:销售退货,105:其它入库 201:采购退货,202:调拨出库,203:盘亏,204:销售出库,205:其它出库,206:报损
  • └ channel
  • Number
  • 1
  • 渠道。 1孔雀翎,2雨诺
  • └ total_count
  • Number
  • 100
  • 总数量
  • └ page_size
  • Number
  • 20
  • 每页大小
  • └ total_page
  • Number
  • 5
  • 总页码
  • └ page_num
  • 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);
AlibabaAlihealthCepBrandInventoryInoutListRequest req = new AlibabaAlihealthCepBrandInventoryInoutListRequest();
AlibabaAlihealthCepBrandInventoryInoutListRequest.BrandInventoryInOutRequest obj1 = new AlibabaAlihealthCepBrandInventoryInoutListRequest.BrandInventoryInOutRequest();
obj1.setBusiDate("2022-02-14");
obj1.setPageNum(1L);
obj1.setItemIds(new Long[] {  };
);
obj1.setBillType(1L);
obj1.setPageSize(20L);
obj1.setBrandIds(new Long[] {  };
);
obj1.setSourceType("101");
req.setInventoryInOutRequest(obj1);
AlibabaAlihealthCepBrandInventoryInoutListResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_cep_brand_inventory_inout_list_response>
    <result>
        <result>
            <result>
                <brand_inventory_in_out_d_t_o>
                    <brand_id>10000</brand_id>
                    <brand_name>Test品牌1</brand_name>
                    <busi_date>2022-02-14</busi_date>
                    <seller_id>1</seller_id>
                    <seller_name>Test公司</seller_name>
                    <dept_id>1</dept_id>
                    <dept_name>Test公司门店1</dept_name>
                    <item_id>1</item_id>
                    <item_name>Test胶囊1</item_name>
                    <item_commodity_name>Test胶囊</item_commodity_name>
                    <item_spec>0.25g*50s</item_spec>
                    <item_unit>瓶</item_unit>
                    <item_qty>99</item_qty>
                    <item_lot>1</item_lot>
                    <item_batch>BN22012182</item_batch>
                    <prod_date>2020-08-26 00:00:00</prod_date>
                    <invalid_date>2024-07-31 00:00:00</invalid_date>
                    <supp_id>1</supp_id>
                    <supp_name>Test供应商1</supp_name>
                    <bill_no>12</bill_no>
                    <bill_type>1</bill_type>
                    <source_type>1</source_type>
                    <channel>1</channel>
                </brand_inventory_in_out_d_t_o>
            </result>
            <total_count>100</total_count>
            <page_size>20</page_size>
            <total_page>5</total_page>
            <page_num>1</page_num>
        </result>
        <success>true</success>
        <error_code>11</error_code>
        <error_msg>参数有误</error_msg>
    </result>
</alibaba_alihealth_cep_brand_inventory_inout_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

返回
顶部