文档中心 > API类目 > 阿里健康-本地医疗-通用渠道

alibaba.alihealth.medical.channel.inventory.timeslice.query (日历库存分时明细)

日历库存分时明细

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
jk_item_id String 必须 1234 健康商品id
jk_store_id String 必须 2345 门店id
inventory_date String 必须 2021-12-17 库存日期
source String 必须 ITEM 请求来源

响应参数

名称 类型 示例值 描述
data InventoryTimesliceVO 结果
  • └ inventory_date
  • String
  • 2021-12-17
  • 库存日期
  • time_slice_inventory_info_list
  • TimeSliceInventoryInfo []
  • 库存信息
  • └ time_slice_start
  • String
  • 10:00:00
  • 开始时间
  • └ time_slice_end
  • String
  • 10:30:00
  • 结束时间
  • └ total_amount
  • Number
  • 20
  • 库存总量
  • └ used_amount
  • Number
  • 12
  • 已使用量
msg_info String 请求成功 错误信息
msg_code String SUCCESS 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
1
2
3
4
5
6
7
8
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthMedicalChannelInventoryTimesliceQueryRequest req = new AlibabaAlihealthMedicalChannelInventoryTimesliceQueryRequest();
req.setJkItemId("1234");
req.setJkStoreId("2345");
req.setInventoryDate("2021-12-17");
req.setSource("ITEM");
AlibabaAlihealthMedicalChannelInventoryTimesliceQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<alibaba_alihealth_medical_channel_inventory_timeslice_query_response>
    <data>
        <inventory_date>2021-12-17</inventory_date>
        <time_slice_inventory_info_list>
            <time_slice_inventory_info>
                <time_slice_start>10:00:00</time_slice_start>
                <time_slice_end>10:30:00</time_slice_end>
                <total_amount>20</total_amount>
                <used_amount>12</used_amount>
            </time_slice_inventory_info>
        </time_slice_inventory_info_list>
    </data>
    <msg_info>请求成功</msg_info>
    <msg_code>SUCCESS</msg_code>
</alibaba_alihealth_medical_channel_inventory_timeslice_query_response>

异常示例

  • XML示例
  • JSON示例
1
2
3
4
5
6
<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

返回
顶部