营销查询接口
收藏
我的收藏接口说明
营销信息查询,只返回生效的活动数据
基本信息
名称 | 描述 |
---|---|
HTTP URL | https://open.douyin.com/goodlife/v1/trip/promotion_info/query/ |
HTTP Method | POST |
Scope | life.capacity.trip_hotel_promotion_query |
权限要求 | 酒店行业日历房解决方案-营销查询接口 |
请求参数
请求头
access-token必填String
示例:clt.943da17996fb5cebfbc70c044c3fc25a57T54DcjT6HNKGqnUdxzy1KcxFnZ
content-type必填String
固定值"application/json"
Body展开全部子属性
account_id必填String
商户 account_id
hotel_idList
抖音酒店ID,最多10个(和营销id二选 一)
展开子属性
pageInt32
默认1(条件为营销ID时候,无需关注分页信息)
page_sizeInt32
默认10(最大50)
promotion_idList
营销ID,最多10个(和酒店id二选一)
展开子属性
请求示例
curl --location --request POST 'https:// open.douyin.com/goodlife/v1/trip/promotion_info/query/' \ --header 'content-type: application/json' \ --header 'access-token: 0801121846735352506a356a6' \ --data '{"page":194993321944587028,"page_size":7144238906994941099,"base":{"extra":{"5jpxhmYLgp":"BVmjAt5OJp"},"log_i_d":"cR53WBazTN","caller":"omseLnOmCw","addr":"gJuBt0yaQt","client":"YfClQWerpo","traffic_env":{"open":false,"env":"154EOICmWI"}},"promotion_id":["EWIgQPBTVA"],"hotel_id":["md9YYNbYko"],"account_id":"Kw2GJQ0yud"}'
响应参数
Body展开全部子属性
dataStruct
必填
展开子属性
extraStruct
展开子属性
响应示例
正常响应示例异常响应示例
{ "extra": { "error_code": 0, "description": "", "sub_error_code": 0, "sub_description": "", "logid": "2024120501133933279DAF026C6B74AE8D", "now": 1733332419 }, "base_resp": { "extra": { "ayaYcp7sae": "00gt5PrzR5" }, "status_message": "KbQUcrvJKa", "status_code": 57424200385937816 }, "data": { "pagination": { "total_count": 1208042993181157400, "page_count": 2363088775073984500, "has_more": false, "page_index": 8330457355440492000, "page_size": 7051787418797187000 }, "promotions": [ { "flash_sale_promotion": { "flash_sale_detail": [ { "discount_value": 4307483993394605600, "start_hour": 4867935622129654000, "end_hour": 7547498394863279000 } ], "discount_type": 1 }, "hotel_new_customer_promotion": { "hotel_new_customer_promotion_detail": { "discount_type": 1, "discount_value": 5696307784355940000 } }, "early_bird_promotion": { "discount_type": 1, "early_bird_promotion_detail": [ { "advance_day": 6635990399253719000, "discount_value": 2135520764718939400 } ] }, "applicable_date": { "start_days": "Gi6ztHegtR", "end_days": "ITyDda4589", "days_of_week": [ 9140753144572482000 ] }, "promotion_basic_info": { "sub_type_code": "GSjjYLBpAM", "sub_type_code_name": "p33Vdw41Tq", "out_type": "pbHgtnf3vU", "type_code": "N4nWs813A7", "type_name": "2CaeveyySl" }, "applicable_resource": { "resources": [ { "rate_plan_id": "TGv2KrCewu", "rate_plan_status": 7898564160197649000 } ] }, "promotion_id": "wO3UVajPRJ", "night_sale_promotion": { "night_saleDetail": [ { "start_hour": 265354210378431600, "end_hour": 6804838324554361000, "discount_value": 4300511520209470000 } ], "discount_type": 1 }, "full_pattern_promotion": { "full_pattern_promotion_detail": { "discount_type": 1, "member_promotion": [ 103560679611229090 ], "consecutive_days": 4709630954098868000, "advance_days": 8121574764530158000, "start_hour": 6739206633069513000, "end_hour": 5908870129509745000, "is_hotel_new_customer": false } }, "un_applicable_date": { "unapplicable_date_range": [ { "end_days": "wsKWCVNQsR", "start_days": "mi74Z7U9gU" } ] }, "succession_promotion": { "discount_type": 1, "succession_promotion_detail": [ { "stay_length": 7668240150041255000, "discount_value": 1629238676726836000 } ] }, "is_auto_extension": false, "daily_sale_promotion": { "daily_sale_promotion_detail": { "discount_value": 8376303401021160000, "discount_type": 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 | 以实际错误信息为准 |
点击纠错