酒店静态信息接口
收藏
我的收藏接口说明
- 将外部酒店静态信息与抖音侧酒店信息进行匹配,返回匹配状态
- 匹配成功后可使用抖音酒店ID更新酒店静态信息
基本信息
名称 | 描述 |
---|---|
HTTP URL | https://open.douyin.com/goodlife/v1/trip/hotel/info/match/ |
HTTP Method | POST |
Scope | life.capacity.trip_hotel_push |
权限要求 | 酒店静态信息匹配/创建/更新能力 |
请求参数
请求头
access-token必填String
示例:clt.943da17996fb5cebfbc70c044c3fc25a57T54DcjT6HNKGqnUdxzy1KcxFnZ
content-type必填String
固定值"application/json"
Rpc-Transit-Life-AccountString
来客商户根账户ID
Body展开全部子属性
account_id必填String
商户account_id
out_hotel_id必填String
合作方酒店ID
activeBool
合作方酒店状态
hotel_base_infoStruct
酒店基本信息
展开子属性
hotel_facilitiesList
酒店设施
展开子属性
hotel_idString
抖音酒店ID
hotel_imagesList
酒店图片
展开子属性
hotel_policyStruct
酒店政策
展开子属性
请求示例
curl --location --request POST 'https:// open.douyin.com/goodlife/v1/trip/hotel/info/match/' \ --header 'content-type: application/json' \ --header 'access-token: 0801121846735352506a356a6' \ --data '{"hotel_id":"gS2A4mAuI1","active":false,"hotel_facilities":[{"facility_category":1,"facility_id":6801665113041826028}],"hotel_policy":{"child_use_exist_bed_policy":{"charges":[{"charge_price":2027357463598695077,"currency":"07x8RcuoRV","charge_percent":3918622337102221480,"charge_frequency":"cgoAJ4l4Fv","chargeable":false,"start":2481229642452989604,"end":9107638194687412842}],"allow_child_num":4192328313347724839},"extra_bed_policy":{"extra_baby_bed_charges":[{"start":8281876100262703264,"end":9122846226194748636,"charge_price":4114747717044036520,"currency":"54SjJLTgHp","charge_percent":1682503537424180384,"charge_frequency":"Oh2rYjeg4m","chargeable":false}],"support_extra_bed":false,"adult_extra_bed_price":7598271505396203,"currency":"WU3Yje0Z57","extra_child_bed_charges":[{"charge_price":3363696278716710452,"currency":"3ICvS8RnP7","charge_percent":5444418979486402904,"charge_frequency":"6aRzhwuBgq","chargeable":false,"start":744998157068308441,"end":4225575095675737122}]},"child_breakfast_policy":{"child_breakfast_age":[{"end":3817262494265248542,"charge_price":965831333581105720,"currency":"sEcDC6SNCp","charge_percent":2626043205344050887,"charge_frequency":"JJlqlKZu0B","chargeable":false,"start":1424036634509831174}],"child_breakfast_height":[{"charge_frequency":"l256ASMyc9","chargeable":false,"start":1841626376788308375,"end":3470915756073619996,"charge_price":4038896116574460978,"currency":"6ybFkUAVym","charge_percent":5608891509102438094}],"age_or_height":1},"breakfast_policy":{"breakfast_form":[1],"breakfast_type":[1],"breakfast_category":[1],"open_time":{"every_day_time":{"start_time":{"time_limited":false,"hour":1960452012373032640,"mintue":6468272216214745313,"second":5998951550117655187},"end_time":{"time_limited":false,"hour":8784102109895303627,"mintue":8047323810743151418,"second":7191146952229652713}},"week_day_times":{"week_days":[1],"time_periods":[{"end_time":{"mintue":4434802252493517370,"second":5687888840439522030,"time_limited":false,"hour":6870794734641916707},"start_time":{"second":8818360594468978001,"time_limited":false,"hour":5727257665538548877,"mintue":2336105209091860910}}]},"open_time_type":1},"support_breakfast":false},"check_in_policy":{"check_in_to":"JeyzRT3E1i","check_out_from":"l5wyQG6L5n","check_out_to":"OKOHagOHdr","is_limit_arrival":false,"check_in_from":"1JxdYzWH2d"},"parking_policy":{"parking_details":{"amount":0.45454537331701855,"currency":"bWbWVO5z8d","reserve_required":false,"location":1,"type":1,"chargeable":false},"charge_point_detail":{"location":1,"type":1},"parking_provided":false,"charging_point_provided":false},"children_policy":{"is_allow_children":false,"min_children_age":5663412707894980359,"max_children_age":1352248827141243535,"is_allow_sharing_bed":false},"pet_policy":{"is_allow_pet":false}},"account_id":"GIkSvqUrEG","base":{"addr":"K79H6Xi3fh","client":"GYozT7lIAo","traffic_env":{"open":false,"env":"Z1VoStPlv7"},"extra":{"iwenXrl2bN":"Uen39w6BW8"},"log_i_d":"beMnyiHHfm","caller":"5HBPUGYruG"},"hotel_base_info":{"last_renovation":"fYq1HAU94D","hotel_name":"W7Nx18asro","hotel_en_name":"cvuDdw0TQu","longitude":0.6776756075214978,"build_time":"xgQ1Bnbn28","star_rating":1,"hotel_building_area":0.15714276947599773,"hotel_en_brief":"jZEBAfYpEp","currency":"YYDYKEY1uY","latitude":0.5496581204396214,"important_information":[{"effect_start_time":"eeNdMmZ2CW","effect_end_time":"6iLaitkaU0","content":"btQHKEOhBh"}],"address":{"province":"d152yPrUUP","city":"RUFzZzhdXO","district":"Fkv4Fi3LCT","detail_address":"2DltDyBtym","country":"WdlcBxD2uE"},"recieve_foreign_guest":1,"total_room_quantity":4299473235071717153,"hotel_brief":"Z9PiXPH6HF","phone":{"area_code":"tFlaE3T3gp","main_code":"bTSzXvqJey","ext_code":"PYtS7IAvb0","phone_type":1,"country_code":"ZP3UwQHF8X"}},"out_hotel_id":"ObTPwFxNLx","hotel_images":[{"image_type":1,"image_url":"3oAGfg636o"}]}'
响应参数
Body展开全部子属性
dataStruct
展开子属性
extraStruct
展开子属性
响应示例
正常响应示例异常响应示例
{ "extra": { "error_code": 0, "description": "", "sub_error_code": 0, "sub_description": "", "logid": "2024120400163913ED90D480C60A35C9D3", "now": 1733242599 }, "base_resp": { "status_message": "9SCA95Uzq1", "status_code": 5731749873062733000, "extra": { "uUz6DJhsz6": "BEqfs4uKzm" } }, "data": { "message": "Y4zZL1IufK", "category_id": 8399084101033699000, "out_hotel_id": "gZmfKs7PN1", "hotel_id": "jiVXWuVpVE", "status": 1, "error_code": 0, "description": "" } }
切换单列布局
错误码
HTTP 状态码 | 错误码 | 错误码描述 | 排查建议 |
---|---|---|---|
200 | 2100001 | 未知错误 | 重试接口,重试3次仍报错联系抖音生活服务技术支持 |
200 | 2100004 | 系统繁忙,此时请开发者稍候再试 | 重试接口,重试3次仍报错联系抖音生活服务技术支持 |
200 | 2100005 | 参数不合法 | 更换参数 |
200 | 2190002 | access_token无效 | 调用接口重新生成access_token |
200 | 2190004 | 应用未获得该能力, 请去https://open.douyin.com/申请 | 应用申请接口权限 |
200 | 2190008 | access_token过期,请刷新或重新授权 | 规范token刷新机制,检查是否有测试环境在同步刷新token |
200 | 2119001 | 参数不合法 | 更换参数 |
200 | 2119002 | 系统繁忙,请稍候再试 | 重试 |
200 | 2119003 | 请求太过频繁,请稍后再试 | 重试 |
200 | 2119005 | 应用未获商家授权 | 联系合作商家在商家后台发起授权,并在服务商后台同意授权 |
200 | 3000001 | 根据实际业务错误返回 | 对照接口文档规范参数并重试 |
200 | 4000001 | 根据实际业务错误返回 | 补充参数 |
200 | 4000002 | 根据实际业务错误返回 | 对照接口文档规范参数并重试 |
200 | 5000001 | 根据实际业务错误返回 | 联系抖音处理 |
200 | 5000001 | 服务器打瞌睡了,请稍后再试。 | |
200 | 3000001 | 以实际错误信息为准 |
点击纠错