团购绑定点单标品
接口说明
- 将点单标品与团购券进行绑定
- 绑定后,团购券自动开启在线点单功能
- 同步的group_list结构将基于点单标品数据覆盖团购券的菜品搭配属性
特别注意
- 若团购券也是使用开放接口同步商品信息,需要同步改造团购券商品入参
- attr_key_value_map.commodity结构对齐为该接口group_list字段对应结构
- 需要传入attr_key_value_map.fulfillment_method字段主动开启在线点单功能,value结构为
{ "fulfillment_type": [2] }
基本信息
名称 | 描述 |
---|---|
HTTP URL | https://open.douyin.com/goodlife/v1/goods/foodorder/couponproduct/bind/save/ |
HTTP Method | POST |
Scope | life.capacity.ordering.goods.found |
权限要求 | 点单相关商品发布 |
请求参数
请求头
access-token必填String
示例:clt.943da17996fb5cebfbc70c044c3fc25a57T54DcjT6HNKGqnUdxzy1KcxFnZ
content-type必填String
固定值"application/json"
Rpc-Transit-Life-AccountString
来客商户根账户ID
Body展开全部子属性
account_id必填Int64
来客商户根账户ID
group_list必填List
套餐分组列表
展开子属性
coupon_product_idInt64
抖音侧团购券id,和out_coupon_product_id 二选一
fulfillment_typeList
履约方式
展开子属性
out_coupon_product_idString
外部券商品id,如团购券,次卡等
请求示例
curl --location --request POST 'https://open.douyin.com/goodlife/v1/goods/foodorder/couponproduct/bind/save/' \ --header 'content-type: application/json' \ --header 'access-token: 0801121846735352506a356a6' \ --data '{"Base":{"Addr":"c1xyiDEHhn","Client":"pWxPScJqoe","TrafficEnv":{"Env":"nS3jyOkfGd","Open":false},"Extra":{"d0PxCFELXd":"gsgWOrJUOx"},"LogID":"3HEXNWAZoa","Caller":"Z5MWgpguc2"},"out_coupon_product_id":"IvqHjHlp3n","coupon_product_id":8511265316040522837,"group_list":[{"total_count":1597277707146893650,"option_count":5854839753057057359,"allow_repeated_item":false,"group_name":"4GxmudJlQc","item_list":[{"attr_list":[{"attr_value":"avd9YBQIRH","attr_key":"IZheXUumkK"}],"count":1059594265213604874,"spu_relation":{"spu_price_high":3394164462382114505,"spu_price_low":5481996431006328177,"c_spu_id":6264628418644440249,"spu_id":957820417066960172,"spec_list":[{"group_code":"7cwgEKtbKW","item_key":"2Cn9NyG9Y1"}],"out_spu_id":"Ly2U1wZYwT"},"price":3271175872094319924,"unit":"pqjWBFMmKG"}]}],"fulfillment_type":[1],"account_id":1667500212433769332}'
响应参数
Body展开全部子属性
BaseResp必填Struct
展开子属性
extra必填Struct
扩展信息
展开子属性
dataStruct
展开子属性
响应示例
正常响应示例异常响应示例
{ "data": { "coupon_product_id": 4947231956793215000, "error_code": 0, "description": "" }, "extra": { "error_code": 0, "description": "", "sub_error_code": 0, "sub_description": "", "logid": "20250825205354C8A4ABC1A5DB0359BBBD", "now": 1756126438 }, "BaseResp": { "StatusMessage": "8I5EZsULGE", "StatusCode": 5809476755319928000, "Extra": { "haHnny1XqY": "eFAZWQJiEx" } } }
错误码
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过期,请刷新或重新授权 |