房价推送接口
收藏
我的收藏接口说明
保存价量态价格,该接口最多支持单次传递50组房价
同一个rateplan不同日期建议合并推送,单商家每秒推送总量控制在1000组以内, 有特殊需求可联系抖音研发
基本信息
名称 | 描述 |
---|---|
HTTP URL | https://open.douyin.com/goodlife/v1/trip/hotel/price/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/price/save/' \ --header 'content-type: application/json' \ --header 'access-token: 0801121846735352506a356a6' \ --data '{"base":{"traffic_env":{"env":"QPeyGZcVnN","open":false},"extra":{"BK876ykrKT":"TNC7BRK0QJ"},"log_i_d":"MVIfOkry2F","caller":"lw7pC3ymDO","addr":"4tI0XrDva6","client":"xmZdQXCJfY"},"hotel_id":"EWG2Td7WUV","aris":[{"retail_amount":1592003671277925453,"fplos":"HDRFqIATHG","price_member_levels":[{"bind_member_level":4917870489754474171,"price":8785149495563026067}],"meals":[{"type":1,"num":7414626315846659481}],"promotion_inventory":6113998773806171913,"promotion_id":"jhdu4XVqzZ","timerange":{"start":"vV5CjrrBBY","end":"W8BjgaYLl8"},"cancel_rules":[{"cancel_offset_time":{"minute":2729126390236678823,"second":107301210902345598,"day":3317221778661358319,"hour":2624215560124089231},"cut_type":1,"cut_value":7179285338857273055,"cancel_type":1,"cancel_time_type":1}],"amount_before_tax":4369893852977599523,"days_of_week":[1],"rate_plan_id":"fpxpvzs7JQ","los_rate_break_down":[{"day_original_amount":1846852032882643128,"day_amount_before_tax":2597824085763571529,"day_retail_amount":8004355139188449925}],"currency":"HbXMAfXFqj","stay_rules":{"min_los":5785496320876016892,"max_los":3783804817475090848},"original_amount":7189020516663441783,"available":false,"book_time_rules":{"is_time_nextday":false,"time_span":{"from":"F6tnH3v7px","to":"KKqRMT9Lxs"}},"inventory":5028219966375219740,"room_id":"BpuEM6rkk3","book_rules":{"min_los_days":8764905777352538337,"max_quantity_limt":7576543911207016396,"midnight_room":{"is_midnight_room":false,"latest_booking_time":5953397526186887934},"applicable_people":[1],"max_los_days":8778866095305327609,"check_in_to":"mUmNNyR9MM","min_advance_time":{"day":9190530168054630484,"hour":7719788101812362406,"minute":8126200112983599003,"second":1734701885029640123},"check_out_to":"C40hYqVCTm","max_advance_time":{"minute":3448082116187271371,"second":3677133702014923778,"day":3450436750367807690,"hour":173046093735777175},"check_in_from":"dMYKWYqbys"},"length_of_stay":1059142308933643935}],"account_id":"axHt71PXlk"}'
响应参数
Body展开全部子属性
data必填Struct
返回信息
展开子属性
extraStruct
展开子属性
响应示例
正常响应示例异常响应示例
{ "data": { "save_result": [ { "rate_plan_id": "zYOU9zkRaf", "code": 8224391506182280000, "message": "EDTsKxnj01" } ], "error_code": 0, "description": "" }, "extra": { "error_code": 0, "description": "", "sub_error_code": 0, "sub_description": "", "logid": "202412050046283200A8A11F5F7C80C319", "now": 1733330789 }, "base_resp": { "status_message": "vGhnQNUfpJ", "status_code": 3451060341154867700, "extra": { "qOKMRnou5K": "xNqM4ZumBZ" } } }
切换单列布局
错误码
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 | 以实际错误信息为准 |
点击纠错