点单标品查询
接口说明
- 查询点单标品
基本信息
名称 | 描述 |
---|---|
HTTP URL | https://open.douyin.com/goodlife/v1/goods/foodorder/spu/detail/ |
HTTP Method | GET |
Scope | life.capacity.ordering.goods.query |
权限要求 | 点单相关商品查询 |
请求参数
请求头
access-token必填String
示例:clt.943da17996fb5cebfbc70c044c3fc25a57T54DcjT6HNKGqnUdxzy1KcxFnZ
content-type必填String
固定值"application/json"
Query展开全部子属性
account_id必填Int64
来客商户根账户ID
BaseStruct
展开子属性
out_spu_idString
外部 spu id
spu_idInt64
抖音 spu id
请求示例
curl --location --request GET 'https://open.douyin.com/goodlife/v1/goods/foodorder/spu/detail/?account_id=6996321318808570902&out_spu_id=QgD50HNf0w&spu_id=2802896672038864081\ --header 'content-type: application/json' \ --header 'access-token: 0801121846735352506a356a6' \
响应参数
Body展开全部子属性
BaseResp必填Struct
展开子属性
dataStruct
响应数据
展开子属性
extraStruct
展开子属性
响应示例
正常响应示例异常响应示例
{ "BaseResp": { "StatusMessage": "", "StatusCode": 0 }, "data": { "description": "", "error_code": 0, "spu_online": { "spu": { "account_id": 7267130009242847000, "biz_line": 1, "description": "", "images": { "head_image": { "uri": "tos-cn-i-hf2m9xxmck/daeefc0a9bdf48b39571598f9504be2c" } }, "sale_attr_groups": [ { "group_code": "cup", "group_name": "杯型", "item_list": [ { "item_key": "small_cup", "item_name": "小杯" }, { "item_key": "mid_cup", "item_name": "中杯" }, { "item_key": "big_cup", "item_name": "大杯" } ], "template_key": "cup_type", "weight": 0 }, { "group_code": "sugar", "group_name": "糖", "item_list": [ { "item_key": "zero", "item_name": "0卡糖" }, { "item_key": "seven", "item_name": "七分糖" } ], "weight": 0 }, { "group_code": "temperature", "group_name": "温度", "item_list": [ { "item_key": "cold", "item_name": "冷" }, { "item_key": "warm", "item_name": "温" }, { "item_key": "hot", "item_name": "热" } ], "weight": 0 } ], "spu_id": 7391430754955397000, "category_id": 1015003, "out_spu_id": "zhizhiputao", "spu_name": "芝芝葡萄" }, "status": 1 } }, "extra": { "error_code": 0, "description": "", "sub_error_code": 0, "sub_description": "", "logid": "20241130020735C1CE2328CF057BC10B56", "now": 1732903655 } }
错误码
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过期,请刷新或重新授权 |