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

alibaba.alihealth.medical.channel.item.info.query (商品信息查询)

商品信息查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
jk_item_id String 必须 1234 健康商品id

响应参数

名称 类型 示例值 描述
data ChannelItemVO 数据
  • └ jk_item_id
  • String
  • 1234
  • 健康商品id
  • └ name
  • String
  • 测试商品
  • 商品名称
  • └ sales_price
  • Number
  • 100
  • 销售价(分)
  • └ original_price
  • Number
  • 100
  • 划线价(分)
  • └ status
  • String
  • ONLINE
  • 状态:ONLINE 已上线;OFFLINE 已下线
  • └ backend_category_id
  • String
  • 1231
  • 后台类目id
  • list_image_infos
  • ItemImageVO []
  • 列表展示富媒体信息
  • └ media_type
  • String
  • IMAGE
  • 媒体类型:图片IMAGE、视频VIDEO
  • └ media_value
  • String
  • xxxx
  • 多媒体值, url
  • └ media_name
  • String
  • xxxx
  • 多媒体名称
  • └ description
  • String
  • xxxx
  • 描述
  • detail_head_infos
  • ItemImageVO []
  • 头部展示富媒体信息
  • └ media_type
  • String
  • IMAGE
  • 媒体类型:图片IMAGE、视频VIDEO
  • └ media_value
  • String
  • xxxx
  • 多媒体值, url
  • └ media_name
  • String
  • xxxx
  • 多媒体名称
  • └ description
  • String
  • xxxx
  • 描述
  • detail_info_infos
  • ItemImageVO []
  • 详情展示富媒体信息
  • └ media_type
  • String
  • IMAGE
  • 媒体类型:图片IMAGE、视频VIDEO
  • └ media_value
  • String
  • xxxx
  • 多媒体值, url
  • └ media_name
  • String
  • xxxx
  • 多媒体名称
  • └ description
  • String
  • xxxx
  • 描述
  • service_items
  • ServiceItemVO []
  • 服务项目信息
  • └ name
  • String
  • xxx
  • 名称
  • └ description
  • String
  • xxxx
  • 描述
  • └ service_site_type
  • String
  • TO_STORE
  • 服务地点类型:TO_DOOR 上门; TO_STORE 到店; ONLINE 在线
  • └ report_generation_max_duration
  • Number
  • 24
  • 报告生成时效(小时)
msg_info String 请求成功 错误信息
msg_code String SUCCESS 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthMedicalChannelItemInfoQueryRequest req = new AlibabaAlihealthMedicalChannelItemInfoQueryRequest();
req.setJkItemId("1234");
AlibabaAlihealthMedicalChannelItemInfoQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_medical_channel_item_info_query_response>
    <data>
        <jk_item_id>1234</jk_item_id>
        <name>测试商品</name>
        <sales_price>100</sales_price>
        <original_price>100</original_price>
        <status>ONLINE</status>
        <backend_category_id>1231</backend_category_id>
        <list_image_infos>
            <item_image_v_o>
                <media_type>IMAGE</media_type>
                <media_value>xxxx</media_value>
                <media_name>xxxx</media_name>
                <description>xxxx</description>
            </item_image_v_o>
        </list_image_infos>
        <detail_head_infos>
            <item_image_v_o>
                <media_type>IMAGE</media_type>
                <media_value>xxxx</media_value>
                <media_name>xxxx</media_name>
                <description>xxxx</description>
            </item_image_v_o>
        </detail_head_infos>
        <detail_info_infos>
            <item_image_v_o>
                <media_type>IMAGE</media_type>
                <media_value>xxxx</media_value>
                <media_name>xxxx</media_name>
                <description>xxxx</description>
            </item_image_v_o>
        </detail_info_infos>
        <service_items>
            <service_item_v_o>
                <name>xxx</name>
                <description>xxxx</description>
            </service_item_v_o>
        </service_items>
        <service_site_type>TO_STORE</service_site_type>
        <report_generation_max_duration>24</report_generation_max_duration>
    </data>
    <msg_info>请求成功</msg_info>
    <msg_code>SUCCESS</msg_code>
</alibaba_alihealth_medical_channel_item_info_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>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部