抖音开放平台Logo
开发者文档
控制台
  • 接入前准备
  • 通用能力
  • 餐饮
  • 大交通
  • 酒旅
  • 酒店行业新预售券解决方案
  • 酒店行业日历房解决方案
  • 度假行业解决方案
  • 景区行业解决方案
  • 景区创建订单
  • 景区订单状态查询
  • 景区回调审核退款
  • 景区履约验券
  • 景区确认订单
  • 景区取消订单通知
  • 景区退款结果通知
  • 景区退款审核
  • 景区支付通知
  • 景区预订信息校验
  • 日历票价格库存属性发布
  • 日历票商品查询
  • 三方码发布
  • 日历票商品发布
  • 日历票审核结果同步(webhook)
  • 日历票商品发布
  • 团购核销
  • 门店管理
  • 景区日历票商品类目
  • 通用错误码
  • 综合
  • 历史版本文档(不推荐)
  • 接口说明

    用于创建和更新日历票商品信息。

    接口说明

    • 此接口用于商品创建和更新使用。
    • 商品更新:商品信息更新时为覆盖逻辑,即以最新一次上传的商品信息数据为准,每次更新必须要所有字段全部请求,不可以只请求有变化的字段。
    • 商品创建和更新时抖音会进行商品审核,待商品审核通过后才商家才可以进行价格库存的上传动作,商品审核中时不支持针对同一个商品id做商品更新动作。审核中商品再次更新会返回错误码。
    • C端排序:暂不支持排序,以商家传入的票种先后顺序做展示
    • 商品规格:最多选择三个规格
    • 票种不需要单独创建,在本接口内创建&更新
    • 如需使用日历票多门店功能,必须在核销时回传核销门店poi

    基本信息

    名称描述
    HTTP URL
    https://open.douyin.com/goodlife/v1/trip/ticket/save/
    HTTP Method
    POST
    Scope
    life.capacity.trip_ticket_found
    权限要求
    日历票商品发布

    请求参数

    请求头
    access-token必填String
    示例:clt.943da17996fb5cebfbc70c044c3fc25a57T54DcjT6HNKGqnUdxzy1KcxFnZ
    content-type必填String
    固定值"application/json"
    Body展开全部子属性
    account_id必填String
    商家ID:传入时服务商须与该商家满足授权关系,在开平应用详情的授权管理界面可以查看
    ticket必填Struct

    日历票 

    展开子属性
    请求示例
    curl --location --request POST 'https:// open.douyin.com/goodlife/v1/trip/ticket/save/' \ --header 'content-type: application/json' \ --header 'access-token: 0801121846735352506a356a6' \ --data '{"base":{"traffic_env":{"env":"hMuNN5G4Nc","open":false},"extra":{"OwjYxWNxbJ":"L9g3ZknQdM"},"log_i_d":"cjlyxCIwLL","caller":"jEJRmurnV4","addr":"v57d1jVXgI","client":"TT141B0eQo"},"ticket":{"pre_order_time":{"pre_time":5049735938066712282,"enter_time":4766428423033370278},"opening_time":{"latest_time":2394759273893605802,"earliest_time":4400173367859827122},"crowd_op_type":1,"fee_not_include":"3dRMughzgF","ticket_period":5938779002949103910,"is_test_data":false,"show_date":630522608168647576,"refund_rule":{"auto_verify_time":8729578235521969236,"refund_type":1,"refund_details":[{"refund_time":2092914728531602806,"refund_fee_type":1,"refund_fee":3891393242314577978}],"auto_refund_time":6074505251553984430,"refund_part":false},"test_uid":["zuaJWjIrUY"],"admission_time":3724111458316972954,"customer_reserved_info":{"reserved_type":1,"reserved_rules":[1],"reserved_crowd_number":6590055585767387241},"need_ticket":false,"poi_ids":["04LL3x2qUX"],"ticket_type_id":"hZr1WKsfCh","draft_status":1,"require_id_card":false,"mini_program":{"entry_type":1447275073651003104,"trade_url":"rqABWeCAtm","app_id":"GU1FKJfKKV","sale_unit_detail_path":"eGzWfnYuel"},"buy_limit_rule":[{"time_length":6821212379433723547,"limit_subject":1,"limit_num":7812983139705494004,"limit_range":1,"time_period":["DMeqNEb5lq"]}],"is_test_product":false,"ticket_type_out_id":"YwYt677hdV","buy_limit":7799338521853915261,"crowds":[{"crowd_type":1,"crowd_num":7746103689874634930,"crowd_condition":{"weight_condition":{"upper_bound":535422667338615075,"upper_bound_type":1,"lower_bound":8928923320188162315,"lower_bound_type":1},"age_height_op_type":1,"note":"OEzK0WAib7","scenic_default_crowd":false,"accompany_condition":1,"certificate_condition":[1],"age_condition":{"lower_bound":4218514224312793536,"lower_bound_type":1,"upper_bound":4956170768980650081,"upper_bound_type":1},"height_condition":{"lower_bound_type":1,"upper_bound":4297256894960983458,"upper_bound_type":1,"lower_bound":8489440057018327237}}}],"ticket_rule":{"change_earliest_time":"Mmrjpgzrda","change_latest_time":"Qad1Fx71WX","change_ticket_address":"EOLb0O0oSP","code_extra_note":"aX2AC5EE4a","code_sending_info":[1],"code_type":1,"code_note":"cP4wHlcOED","url_type":1},"fee_include":"D4cXXEDogK","ticket_specifications":[{"free_merchant":false,"ticket_session":{"ticket_session_name":"z6nKRZJSVI","ticket_session_time":"dULisc0fDD"},"ticket_seat":"jNRybPF7Vw","ticket_area":"kEOELm9ocJ","sku_id":"g0Dq0o3rOT","sku_out_id":"0E2RnHrx9l","sku_name":"bedXp7q9ML","settle_type":1}],"region":{"restrict_flag":false,"restrict_districts":[{"district_type":1,"province_info_list":[{"city_code_list":["DySuVr6eUA"],"province_code":"QSWfPBnBtf"}]}]},"use_ticket_address":"5yfv6lfOxZ","category_id":9209811204589866827,"show_channel":5056193916644827092,"product_name":"dSGwQnW8Nz","product_id":"l1TcbgcssV","use_times":8212497587807152827,"other_note":"7dQz9EXnOT","audit_result":{"product_audit_reason":"FBVtaaSxQ2","is_ticket_type_pass":false,"ticket_type_audit_reason":"jgmjqbhP09","is_product_pass":false},"ticket_type_name":"nzbw9Pp1SI","stock_sync_rule":{"sync_on":false},"product_out_id":"nY4hFN97zQ","img_urls":["EYEHfSMy1w"],"status":1},"account_id":"qUPMwTOC9t"}'

    响应参数

    Body展开全部子属性
    dataStruct
    数据
    展开子属性
    extraStruct
    响应额外信息
    展开子属性
    响应示例
    正常响应示例异常响应示例
    { "data": { "ticket_type_id": "E9hTQeUvVS", "product_id": "IXgzWZuMh9", "error_code": 0, "description": "" }, "extra": { "error_code": 0, "description": "", "sub_error_code": 0, "sub_description": "", "logid": "2024120721445624603C78D2B0913FBBA3", "now": 1733579097 }, "base_resp": { "status_code": 9003769765981507000, "extra": { "AhGcQYHvJt": "PB33Hyrzxb" }, "status_message": "O4yPIz0wOs" } }
    切换单列布局

    错误码

    HTTP 状态码错误码错误码描述排查建议
    2002100001
    未知错误
    重试接口,重试3次仍报错联系抖音生活服务技术支持
    2002100004
    系统繁忙,此时请开发者稍候再试
    重试接口,重试3次仍报错联系抖音生活服务技术支持
    2002100005
    参数不合法
    更换参数
    2002190002
    access_token无效
    调用接口重新生成access_token
    2002190004
    应用未获得该能力, 请去https://open.douyin.com/申请
    应用申请接口权限
    2002190008
    access_token过期,请刷新或重新授权
    规范token刷新机制,检查是否有测试环境在同步刷新token
    2002119001
    参数不合法
    更换参数
    2002119002
    系统繁忙,请稍候再试
    重试
    2002119003
    请求太过频繁,请稍后再试
    重试
    2002119005
    应用未获商家授权
    联系合作商家在商家后台发起授权,并在服务商后台同意授权
    2003000001
    根据实际业务错误返回
    对照接口文档规范参数并重试
    2004000001
    根据实际业务错误返回
    补充参数
    2004000002
    根据实际业务错误返回
    对照接口文档规范参数并重试
    2005000001
    根据实际业务错误返回
    联系抖音处理
    2005000001
    服务器打瞌睡了,请稍后再试。
    2003000001
    以实际错误信息为准