文档中心 > API类目 > 酒店商品API

taobao.xhotel.servicetime.update (飞猪酒店多维度服务时间维护接口)

飞猪酒店多维度服务时间维护,支持卖家维度,supplier维度,酒店维度

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param String 必须 [{"businessId":11925099374,"businessType":3,"displayItemInNonWorkingTime":1,"mondayConfirmLocalTime":"09:00-18:00","operator":"操作人","orderConfirmType":1,"saturdayConfirmLocalTime":"09:00-18:00","sellerId":2054718374,"sellerNick":"sandbox_b_27","sundayConfirmLocalTime":"09:00-18:00","supplier":"","thursdayConfirmLocalTime":"09:00-18:00","timeZoneName":"Asia/Shanghai","tuesdayConfirmLocalTime":"09:00-18:00","wednesdayConfirmLocalTime":"09:00-18:00","fridayConfirmLocalTime":"09:00-18:00"},{"businessId":11925099374,"businessType":3,"displayItemInNonWorkingTime":1,"mondayConfirmLocalTime":"09:00-18:00","operator":"操作人","orderConfirmType":2,"saturdayConfirmLocalTime":"09:00-18:00","sellerId":2054718374,"sellerNick":"sandbox_b_27","sundayConfirmLocalTime":"09:00-18:00","supplier":"","thursdayConfirmLocalTime":"09:00-18:00","timeZoneName":"Asia/Shanghai","tuesdayConfirmLocalTime":"09:00-18:00","wednesdayConfirmLocalTime":"09:00-18:00","fridayConfirmLocalTime":"09:00-18:00"}] 请按照示例值的格式来填写,涉及到是否当日订单,是否展示,周一到周日的服务时间,业务id,业务类型1为卖家,2为supplier ,3为酒店。[{"businessId":11925099374,"businessType":3,"displayItemInNonWorkingTime":1,"mondayConfirmLocalTime":"09:00-18:00","operator":"操作人","orderConfirmType":1,"saturdayConfirmLocalTime":"09:00-18:00","sellerId":2054718374,"sellerNick":"sandbox_b_27","sundayConfirmLocalTime":"09:00-18:00","supplier":"","thursdayConfirmLocalTime":"09:00-18:00","timeZoneName":"Asia/Shanghai","tuesdayConfirmLocalTime":"09:00-18:00","wednesdayConfirmLocalTime":"09:00-18:00","fridayConfirmLocalTime":"09:00-18:00"},{"businessId":11925099374,"businessType":3,"displayItemInNonWorkingTime":1,"mondayConfirmLocalTime":"09:00-18:00","operator":"操作人","orderConfirmType":2,"saturdayConfirmLocalTime":"09:00-18:00","sellerId":2054718374,"sellerNick":"sandbox_b_27","sundayConfirmLocalTime":"09:00-18:00","supplier":"","thursdayConfirmLocalTime":"09:00-18:00","timeZoneName":"Asia/Shanghai","tuesdayConfirmLocalTime":"09:00-18:00","wednesdayConfirmLocalTime":"09:00-18:00","fridayConfirmLocalTime":"09:00-18:00"}]

响应参数

名称 类型 示例值 描述
result ResultSet result
  • └ results
  • String []
  • results
  • └ total_results
  • Number
  • totalResults
  • └ has_next
  • Boolean
  • hasNext
  • └ exception
  • String
  • exception
  • exception
  • └ error_code
  • String
  • 0
  • errorCode
  • └ warn_message
  • String
  • warnMessage
  • └ error_msg
  • String
  • 0
  • errorMsg

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
XhotelServicetimeUpdateRequest req = new XhotelServicetimeUpdateRequest();
req.setParam("[{\"businessId\":11925099374,\"businessType\":3,\"displayItemInNonWorkingTime\":1,\"mondayConfirmLocalTime\":\"09:00-18:00\",\"operator\":\"操作人\",\"orderConfirmType\":1,\"saturdayConfirmLocalTime\":\"09:00-18:00\",\"sellerId\":2054718374,\"sellerNick\":\"sandbox_b_27\",\"sundayConfirmLocalTime\":\"09:00-18:00\",\"supplier\":\"\",\"thursdayConfirmLocalTime\":\"09:00-18:00\",\"timeZoneName\":\"Asia/Shanghai\",\"tuesdayConfirmLocalTime\":\"09:00-18:00\",\"wednesdayConfirmLocalTime\":\"09:00-18:00\",\"fridayConfirmLocalTime\":\"09:00-18:00\"},{\"businessId\":11925099374,\"businessType\":3,\"displayItemInNonWorkingTime\":1,\"mondayConfirmLocalTime\":\"09:00-18:00\",\"operator\":\"操作人\",\"orderConfirmType\":2,\"saturdayConfirmLocalTime\":\"09:00-18:00\",\"sellerId\":2054718374,\"sellerNick\":\"sandbox_b_27\",\"sundayConfirmLocalTime\":\"09:00-18:00\",\"supplier\":\"\",\"thursdayConfirmLocalTime\":\"09:00-18:00\",\"timeZoneName\":\"Asia/Shanghai\",\"tuesdayConfirmLocalTime\":\"09:00-18:00\",\"wednesdayConfirmLocalTime\":\"09:00-18:00\",\"fridayConfirmLocalTime\":\"09:00-18:00\"}]");
XhotelServicetimeUpdateResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<xhotel_servicetime_update_response>
    <result>
        <results>
            <string></string>
        </results>
        <total_results></total_results>
        <has_next></has_next>
        <exception>exception</exception>
        <error_code>0</error_code>
        <warn_message></warn_message>
        <error_msg>0</error_msg>
    </result>
</xhotel_servicetime_update_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

返回
顶部