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

alibaba.alihealth.examination.stock.query (体检机构对接_体检套餐库存查询)

体检机构对接_体检套餐库存查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
merchant_code String 可选 aikang 商户唯一码
hospital_id String 可选 001 分院ID
package_id String 可选 11 套餐id
time_from String 可选 2017-02-33 开始日期
time_to String 可选 2019-01-30 结束日期

响应参数

名称 类型 示例值 描述
message String 正确 返回结果描述
storage_list Storage [] storage_list 门店库存列表
  • └ used_num
  • String
  • 0
  • 已经使用的数量
  • └ str_regdate
  • String
  • 2013-10-12
  • 日期
  • └ max_num
  • String
  • 10
  • 可使用的最大数
  • └ status
  • String
  • 00
  • 状态,目前仅瑞慈使用,瑞慈状态:00:正常 01:已满 02:机构休息 03: 预约截止
response_code String 200 返回结果编码
time_sharing_enable Boolean false 是否支持分时能力
reservation_min_ahead_hours String 2 预约至少提前多少小时

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthExaminationStockQueryRequest req = new AlibabaAlihealthExaminationStockQueryRequest();
req.setMerchantCode("aikang");
req.setHospitalId("001");
req.setPackageId("11");
req.setTimeFrom("2017-02-33");
req.setTimeTo("2019-01-30");
AlibabaAlihealthExaminationStockQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_examination_stock_query_response>
    <message>正确</message>
    <storage_list>
        <storage>
            <used_num>0</used_num>
            <str_regdate>2013-10-12</str_regdate>
            <max_num>10</max_num>
            <status>00</status>
        </storage>
    </storage_list>
    <response_code>200</response_code>
    <time_sharing_enable>false</time_sharing_enable>
    <reservation_min_ahead_hours>2</reservation_min_ahead_hours>
</alibaba_alihealth_examination_stock_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>

错误码解释

错误码 错误描述 解决方案
isv.illegal_args 参数异常 附带异常参数返回
isv.access_deny 权限异常 直接返回
isv.error 未知错误 直接返回
isp.http-connection-timeout
isp.http-read-timeout
isp.http-connection-refuse
http-service-status-error

API工具

如何获得此API

FAQ

返回
顶部