文档中心 > API类目 > 体检机构API

alibaba.alihealth.examination.goods.onoffline (上线/下线 体检产品)

商品上线、下线接口(天猫商品只处理上下架状态,暂不支持处理商品门店关系)

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
group_id String 必须 1
  • 最大长度:100
  • 商品组code,机构保证唯一
    hospital_codes String 可选 1,2,3 门店code列表
    type String 必须 online
  • 最大长度:10
  • 操作类型: online=上线,offline=下线

    响应参数

    名称 类型 示例值 描述
    result ServiceResult json对象 调用结果
    • └ err_message
    • String
    • 查询结果为空
    • 错误信息
    • └ data
    • String
    • 返回数据,一般为空
    • └ err_code
    • String
    • 501
    • 错误码
    • └ success
    • Boolean
    • true
    • 执行是否成功

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    AlibabaAlihealthExaminationGoodsOnofflineRequest req = new AlibabaAlihealthExaminationGoodsOnofflineRequest();
    req.setGroupId("1");
    req.setHospitalCodes("1,2,3");
    req.setType("online");
    AlibabaAlihealthExaminationGoodsOnofflineResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <alibaba_alihealth_examination_goods_onoffline_response>
        <result>
            <err_message>查询结果为空</err_message>
            <data></data>
            <err_code>501</err_code>
            <success>true</success>
        </result>
    </alibaba_alihealth_examination_goods_onoffline_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

    返回
    顶部