房量房态推送接口
收藏
我的收藏接口说明
保存价量态房量,该接口最多支持单次传递50组房量房态
同一个rateplan不同日期建议合并推送,单商家每秒推送总量控制在1000组以内, 有特殊需求可联系抖音研发
基本信息
名称 | 描述 |
---|---|
HTTP URL | https://open.douyin.com/goodlife/v1/trip/hotel/stock/save/ |
HTTP Method | POST |
Scope | life.capacity.trip_hotel_ari_pull |
权限要求 | 酒店行业日历房解决方案-房价/房态/房量更新 |
请求参数
请求头
access-token必填String
示例:clt.943da17996fb5cebfbc70c044c3fc25a57T54DcjT6HNKGqnUdxzy1KcxFnZ
content-type必填String
固定值"application/json"
Body展开全部子属性
account_id必填String
商户 account_id
aris必填List
价量计划
展开子属性
hotel_idString
抖音酒店ID
请求示例
curl --location --request POST 'https:// open.douyin.com/goodlife/v1/trip/hotel/stock/save/' \ --header 'content-type: application/json' \ --header 'access-token: 0801121846735352506a356a6' \ --data '{"aris":[{"length_of_stay":5758045216417913933,"rate_plan_id":"0EDCarBC9p","available":false,"book_time_rules":{"is_time_nextday":false,"time_span":{"to":"puxE5Of5Ad","from":"WDxbrpbnRS"}},"book_rules":{"applicable_people":[1],"midnight_room":{"latest_booking_time":3722119086083788658,"is_midnight_room":false},"check_in_from":"eY4tXRDlhs","check_in_to":"0bmPp9C7Va","check_out_to":"Y4RvQyPGdH","max_advance_time":{"second":9205484968636242687,"day":4421297027001951972,"hour":5421592133506696303,"minute":8529565547944542943},"min_los_days":1778133441884131499,"max_los_days":9197050661125232418,"max_quantity_limt":4317769215512164266,"min_advance_time":{"second":5138741163909431479,"day":4674879755728598895,"hour":6491504643950860353,"minute":2769688621019046475}},"days_of_week":[1],"inventory":2798231286587957811,"currency":"SI2hpBcsEx","price_member_levels":[{"bind_member_level":1064715537327327572,"price":3554202064439601273}],"promotion_id":"CPloWxCFcy","cancel_rules":[{"cancel_offset_time":{"minute":1413338349956499159,"second":5054838286762673740,"day":2088644282845656176,"hour":6037886768721223118},"cut_type":1,"cut_value":8735266087416116,"cancel_type":1,"cancel_time_type":1}],"amount_before_tax":2582630599376026063,"los_rate_break_down":[{"day_retail_amount":506863651335465835,"day_original_amount":407771125542420813,"day_amount_before_tax":4491271602720621205}],"retail_amount":7477459933042087195,"timerange":{"start":"poYDn47POv","end":"bMDZplAasj"},"promotion_inventory":7540629309888628379,"original_amount":4479912747609802245,"room_id":"V52Zjn5Qz4","meals":[{"type":1,"num":7005342671321121279}],"stay_rules":{"min_los":6974386289146560928,"max_los":1854969888698917852},"fplos":"3jTKlki4f4"}],"account_id":"PY5T2ODgLm","base":{"client":"chWkL6GBTk","traffic_env":{"open":false,"env":"cIlzEpFUU0"},"extra":{"LpCQNXQ5ti":"PZByC7Xjbd"},"log_i_d":"2YEVtZrlvm","caller":"dL3ig3UU6h","addr":"wklOjEL72V"},"hotel_id":"TprLhI3Llw"}'
响应参数
Body展开全部子属性
data必填Struct
返回信息
展开子属性
extraStruct
展开子属性
响应示例
正常响应示例异常响应示例
{ "base_resp": { "status_message": "8KiiUB6FpP", "status_code": 3160500400371924500, "extra": { "DYYOM3rRnD": "jNiCNMxe0Y" } }, "data": { "save_result": [ { "rate_plan_id": "G3gM5l8dIj", "code": 4657072492357620000, "message": "6lMgj9yFFa" } ], "error_code": 0, "description": "" }, "extra": { "error_code": 0, "description": "", "sub_error_code": 0, "sub_description": "", "logid": "20241205003741CAE55CFAFA57A771D6A0", "now": 1733330262 } }
切换单列布局
错误码
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 | 以实际错误信息为准 |
点击纠错