日历票商品查询
收藏
我的收藏接口说明
- 接口查询范围:可用于查询商品状态查询(包括在线、下线、审核中)、商品详情信息查询(票种、商品相关信息查询)。(本期不支持查询日历库存及价格属性内容)
- 查询方式:支持按account_id查全量商品列表查询(需要传分页信息,接口也会分页信息),也支持指定商品id批量查询(若传了商品id,优先按指定id方式查询)。
- 查询功能:线上数据查询、审核数据查询。
基本信息
名称 | 描述 |
---|---|
HTTP URL | https://open.douyin.com/goodlife/v1/trip/ticket/query/ |
HTTP Method | GET |
Scope | life.capacity.trip_ticket_query |
权限要求 | 日历票商品查询 |
请求参数
请求头
access-token必填String
示例:clt.943da17996fb5cebfbc70c044c3fc25a57T54DcjT6HNKGqnUdxzy1KcxFnZ
content-type必填String
固定值"application/json"
Query展开全部子属性
account_id必填String
商家ID;传入时服务商须与该商家满足授权关系,在开平应用详情的授权管理界面可以查看
pageInt32
分页页码,从1开始
page_sizeInt32
分页数量,不传默认为5,最大上限50
product_idsList
抖音商品ID列表,多值使用逗号","拼接
展开子属性
product_out_idsList
服务商日历票ID列表,多值使用逗号","拼接
展开子属性
statusEnum
示例:0 下线, 1 已上线, 2 审核中, 3 审核失败
过滤状态,在线、下线、审核中、审核失败
展开子属性
请求示例
curl --location --request GET 'https:// open.douyin.com/goodlife/v1/trip/ticket/query/?product_ids=[sX2Ye69GDO]&status=1&page=6420260270837907128&page_size=1059991476328368885&base={"log_i_d":"8hwR5dYNn3","caller":"UDeDbBrU2i","addr":"iVDzMOu8N2","client":"hHMA9yLZAq","traffic_env":{"open":false,"env":"2kSulEFcOv"},"extra":{"o3l27fG5ec":"ndLS0SSw9O"}}&account_id=vstEOAgnJu&product_out_ids=[JxF4yjfy40]' \ --header 'content-type: application/json' \ --header 'access-token: 0801121846735352506a356a6' \
响应参数
Body展开全部子属性
dataStruct
商品列表
展开子属性
extraStruct
展开子属性
响应示例
正常响应示例异常响应示例
{ "base_resp": { "status_message": "MUrqFNh5aB", "status_code": 738174957186106000, "extra": { "v0PuzqOO5x": "gemDQFiaw5" } }, "data": { "tickets": [ { "region": { "restrict_districts": [ { "province_info_list": [ { "city_code_list": [ "h62go88PW9" ], "province_code": "Zh1vL1J04f" } ], "district_type": 1 } ], "restrict_flag": false }, "other_note": "bNaKUEzf0k", "ticket_type_id": "4dD5XwjEYC", "audit_result": { "ticket_type_audit_reason": "CpB1m0vjyG", "is_product_pass": false, "product_audit_reason": "doQau8fZWv", "is_ticket_type_pass": false }, "ticket_type_out_id": "xelI3yoWJZ", "is_test_data": false, "product_id": "1AUMY1qDRg", "is_test_product": false, "refund_rule": { "refund_details": [ { "refund_fee": 8008333414373116000, "refund_time": 5517666466491866000, "refund_fee_type": 1 } ], "auto_refund_time": 3922258001662313500, "refund_part": false, "auto_verify_time": 8012677284139191000, "refund_type": 1 }, "admission_time": 3072022474561976000, "fee_not_include": "eJtRz3OCBI", "buy_limit": 3737260482015388000, "img_urls": [ "5BpB7nhw5l" ], "need_ticket": false, "status": 1, "fee_include": "Dk1MAJRswd", "use_ticket_address": "gzuj65fpLj", "category_id": 4805468160160824000, "draft_status": 1, "use_times": 2395672323398581000, "ticket_period": 1592074640957501000, "opening_time": { "earliest_time": 9034447624696735000, "latest_time": 3155196401031339000 }, "ticket_rule": { "change_ticket_address": "xgkP6LuRgT", "code_extra_note": "ZU0QCEYSD9", "code_sending_info": [ 1 ], "code_type": 1, "code_note": "5BsGUBKRMF", "url_type": 1, "change_earliest_time": "WkEiu0exUc", "change_latest_time": "eXAcHZ7d8R" }, "pre_order_time": { "pre_time": 2505875620984452000, "enter_time": 4114266844873937400 }, "show_date": 3851671456319008300, "product_out_id": "uaRb5doRiI", "stock_sync_rule": { "sync_on": false }, "crowd_op_type": 1, "require_id_card": false, "crowds": [ { "crowd_type": 1, "crowd_num": 1942669215038693400, "crowd_condition": { "weight_condition": { "upper_bound": 7623245086326661000, "upper_bound_type": 1, "lower_bound": 7476996454177819000, "lower_bound_type": 1 }, "age_height_op_type": 1, "note": "dqw1tCLLeG", "scenic_default_crowd": false, "accompany_condition": 1, "certificate_condition": [ 1 ], "age_condition": { "lower_bound": 1375920968463267000, "lower_bound_type": 1, "upper_bound": 3554323315893848000, "upper_bound_type": 1 }, "height_condition": { "upper_bound_type": 1, "lower_bound": 8275572125837954000, "lower_bound_type": 1, "upper_bound": 5808907251376659000 } } } ], "product_name": "8ElsDFQpbH", "ticket_type_name": "q3Wr7gjRRE", "poi_ids": [ "4yPPEvj4I5" ], "mini_program": { "entry_type": 582000859306889600, "trade_url": "h42VxJR7gn", "app_id": "tcrntH4NXQ", "sale_unit_detail_path": "oIUtGU7HI5" }, "ticket_specifications": [ { "ticket_seat": "9GOBU5Vwkb", "ticket_area": "7O9E6i8rtK", "sku_id": "ZykoFRf8bg", "sku_out_id": "eChGEPWL5n", "sku_name": "ntgqqSA8V8", "settle_type": 1, "free_merchant": false, "ticket_session": { "ticket_session_name": "vJIcSuq1gB", "ticket_session_time": "EixxzhfOG0" } } ], "buy_limit_rule": [ { "time_period": [ "7FCgBFdl6u" ], "time_length": 1778226802204648000, "limit_subject": 1, "limit_num": 7678247872291128000, "limit_range": 1 } ], "customer_reserved_info": { "reserved_crowd_number": 1622314467546566400, "reserved_type": 1, "reserved_rules": [ 1 ] }, "show_channel": 8187225406459382000, "test_uid": [ "E5eGAvy6Gj" ] } ], "page_info": { "total_page": 2202874782326152700, "page": 6031145976844382000, "total_records": 1145867608972170900, "page_size": 7791272033840247000 }, "error_code": 0, "description": "" }, "extra": { "error_code": 0, "description": "", "sub_error_code": 0, "sub_description": "", "logid": "20241207195334DB2D0ADBFE2364DAA723", "now": 1733572414 } }
切换单列布局
错误码
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 | 以实际错误信息为准 |
点击纠错