点单订单查询
接口说明
点单订单查询能力
基本信息
名称 | 描述 |
---|---|
HTTP URL | https://open.douyin.com/goodlife/v1/retail/order/query/ |
HTTP Method | GET |
Scope | life.capacity.retail.order.query |
权限要求 | 点单订单查询能力 |
请求参数
请求头
access-token必填String
示例:clt.943da17996fb5cebfbc70c044c3fc25a57T54DcjT6HNKGqnUdxzy1KcxFnZ
content-type必填String
固定值"application/json"
Rpc-Transit-Life-AccountString
来客商户根账户ID
Query
account_id必填String
账户id
order_idString
订单id
请求示例
curl --location --request GET 'https://open.douyin.com/goodlife/v1/retail/order/query/?account_id=wGEjP87QoP&order_id=Ptz3Xtz7VX' \ --header 'content-type: application/json' \ --header 'access-token: 0801121846735352506a356a6' \
响应参数
Body展开全部子属性
extra必填Struct
扩展信息
展开子属性
dataStruct
返回结构
展开子属性
响应示例
正常响应示例异常响应示例
{ "data": { "orders": [ { "retail_order_base": { "open_id": "rlerNX5IzZ", "account_id": "2xGtLyGdTW", "poi_id": "Cv2NCqEacS", "retail_order_type": 1, "retail_order_status": 1, "order_id": "t0zEOXDzHV", "order_out_id": "qzaBuLLkff" }, "retail_sku_list": [ { "merchant_discount_amount": 5703797433700792000, "sku_attr": [ { "attr_value": "74LwU3irlF", "attr_key": "k9yrZmhDVQ" } ], "product_name": "V2Ip6MJ99B", "product_id": "c1h0FFMw6v", "product_out_id": "83yxqAmDus", "item_list": [ { "merchant_discount_amount": 2197030264607568000, "item_order_id": "9jJrRYQep2", "affiliated_sku_list": [ { "product_out_id": "o2M1dBRjRp", "product_name": "WAVPWgDAd9", "count": 158356710627547330, "total_amount": 4994055976075134000, "sku_id": "xZsmxHIYh3", "sku_out_id": "C756Rsv4jo", "sku_name": "w66TG51Rys", "product_id": "eGyHRyclFc" } ], "deduct_info": { "deduct_amount": 6030839425104520000, "serial_num": 8914959660296953000, "source_origin_amount": 4961604427912616000, "source_merchant_discount_amount": 5488986868505547000, "source_certificate_id": "1KaN9heGLe", "groupon_type": 1 } } ], "unit_amount": 424956094557016960, "count": 6106095918180047000, "sku_id": "J9osHGlpm6", "sku_out_id": "WTvXs5lnB0", "sku_name": "05Vb7medop" } ], "retail_amount": { "pay_amount": 1026298991419339300, "origin_amount": 5597526499929708000, "merchant_discount_amount": 141037933432316510, "deduct_amount": 5172336250965055000 } } ], "error_code": 0, "description": "" }, "extra": { "error_code": 0, "description": "", "sub_error_code": 0, "sub_description": "", "logid": "202503041528091B1DCBBC043DF10FB6BB", "now": 1741073290 } }
错误码
HTTP 状态码 | 错误码 | 错误码描述 | 排查建议 |
---|---|---|---|
200 | 2100001 | 未知错误 | 重试接口,重试3次仍报错联系抖音生活服务技术支持 |
200 | 2100004 | 系统繁忙,此时请开发者稍候再试 | 重试接口,重试3次仍报错联系抖音生活服务技术支持 |
200 | 2100005 | 参数不合法 | 更换参数 |
200 | 2119001 | 参数不合法 | 更换参数 |
200 | 2119002 | 系统繁忙,请稍候再试 | 重试 |
200 | 2119003 | 请求太过频繁,请稍后再试 | 重试 |
200 | 2119005 | 应用未获商家授权 | 联系合作商家在商家后台发起授权,并在服务商后台同意授权 |
200 | 2190002 | access_token无效 | 调用接口重新生成access_token |
200 | 2190004 | 应用未获得该能力, 请 去https://open.douyin.com/申请 | 应用申请接口权限 |
200 | 2190008 | access_token过期,请刷新或重新授权 | 规范token刷新机制,检查是否有测试环境在同步刷新token |
200 | 3000001 | 根据实际业务错误返回 | 对照接口文档规范参数并重试 |
200 | 5000001 | 根据实际业务错误返回 | 联系抖音处理 |
200 | 5000001 | 服务器打瞌睡了,请稍后再试。 | 联系ts解决 |