注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > 阿里健康-本地医疗-通用预约服务

alibaba.alihealth.reserve.service.item.sync (服务商将加项套餐同步给阿里健康)

服务商将加项套餐同步给阿里健康

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param0 SyncServiceItemTopRequest 必须 同步套餐请求
  • └ tmall_item_id
  • Number
  • 必须
  • 901801800075
  • 天猫商品id
  • └ package_code
  • String
  • 必须
  • 727335
  • 天猫商品对应的套餐编码
  • service_items
  • ServiceItemTopModel []
  • 必须
  • []
  • 加项套餐列表
  • └ service_item_code
  • String
  • 必须
  • JX_001
  • 加项套餐编码
  • └ service_item_name
  • String
  • 必须
  • 血清蛋白四项
  • 加项套餐名称
  • └ sales_price
  • BigDecimal
  • 必须
  • 19.9
  • 售价
  • └ settlement_price
  • BigDecimal
  • 可选
  • 20
  • 结算价(可空)
  • └ market_price
  • BigDecimal
  • 可选
  • 21
  • 原价(可空)
  • └ description
  • String
  • 可选
  • 血清蛋白四项
  • 加项套餐描述
  • └ suitable_gender
  • String
  • 可选
  • MALE
  • MALE 男, FEMALE 女, GENERAL 通用
  • └ suitable_marital_status
  • String
  • 可选
  • GENERAL
  • MARRIED 已婚,UNMARRIED 未婚,GENERAL 通用
  • └ type_labels
  • String []
  • 可选
  • 肝功能检查
  • 类型标签
  • └ main_image
  • String []
  • 可选
  • http://123123.jpg
  • 主图 尺寸4:3
  • └ detail_image
  • String
  • 可选
  • http://123123.jpg
  • 详情图
  • └ additional_service_desc
  • String
  • 可选
  • 附加服务描述信息
  • 附加服务描述信息
  • └ attention_note
  • String
  • 可选
  • 注意事项
  • 注意事项
  • └ standard_group_name
  • String
  • 必须
  • 标准分组名称
  • 标准分组名称

响应参数

名称 类型 示例值 描述
result_status String SUCCESS SUCCESS:成功; FAIL:失败; UNKNOWN:未知; ACCEPT 待审核
result_code String SUCCESS resultCode
result_msg String success. resultMsg

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthReserveServiceItemSyncRequest req = new AlibabaAlihealthReserveServiceItemSyncRequest();
AlibabaAlihealthReserveServiceItemSyncRequest.SyncServiceItemTopRequest obj1 = new AlibabaAlihealthReserveServiceItemSyncRequest.SyncServiceItemTopRequest();
obj1.setTmallItemId(901801800075L);
obj1.setPackageCode("727335");
List<AlibabaAlihealthReserveServiceItemSyncRequest.ServiceItemTopModel> list3 = new ArrayList<AlibabaAlihealthReserveServiceItemSyncRequest.ServiceItemTopModel>();
AlibabaAlihealthReserveServiceItemSyncRequest.ServiceItemTopModel obj4 = new AlibabaAlihealthReserveServiceItemSyncRequest.ServiceItemTopModel();
list3.add(obj4);
obj4.setServiceItemCode("JX_001");
obj4.setServiceItemName("血清蛋白四项");
obj4.setSalesPrice("19.9");
obj4.setSettlementPrice("20");
obj4.setMarketPrice("21");
obj4.setDescription("血清蛋白四项");
obj4.setSuitableGender("MALE");
obj4.setSuitableMaritalStatus("GENERAL");
obj4.setTypeLabels("肝功能检查");
obj4.setMainImage("http://123123.jpg");
obj4.setDetailImage("http://123123.jpg");
obj4.setAdditionalServiceDesc("附加服务描述信息");
obj4.setAttentionNote("注意事项");
obj4.setStandardGroupName("标准分组名称");
obj1.setServiceItems(list3);
req.setParam0(obj1);
AlibabaAlihealthReserveServiceItemSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_reserve_service_item_sync_response>
    <result_status>SUCCESS</result_status>
    <result_code>SUCCESS</result_code>
    <result_msg>success.</result_msg>
</alibaba_alihealth_reserve_service_item_sync_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

返回
顶部