「OpenAp」点单订单查询
接口说明
点单订单查询能力
基本信息
| 名称 | 描述 |
|---|---|
| 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=5MSN8RzdzL&order_id=pFVUOM1Yug' \ --header 'access-token: 0801121846735352506a356a6' \ --header 'content-type: application/json' \
响应参数
Body展开全部子属性
extra必填Struct
扩展信息
展开子属性
dataStruct
返回结构
展开子属性
响应示例
正常响应示例异常响应示例
{ "extra": { "error_code": 0, "description": "", "sub_error_code": 0, "sub_description": "", "logid": "20251009212701302A537D5F82229B2A1B", "now": 1760016422 }, "data": { "orders": [ { "retail_amount": { "deduct_amount": 4685438973767242000, "pay_amount": 6680438382770217000, "pay_discount_amount": 1534874918483191600, "platform_discount_amount": 5855360953850057000, "origin_amount": 6677093069808018000, "merchant_discount_amount": 6354536719022969000 }, "retail_order_base": { "account_id": "fK52cF4e0u", "poi_id": "zjpQDPz0dA", "retail_order_type": 1, "retail_order_status": 1, "order_id": "24Y2nLXLe0", "order_out_id": "dYiDjP9lSY", "open_id": "uoqpoTWDwb" }, "retail_sku_list": [ { "sku_id": "FXfD0VeOCp", "sku_attr": [ { "attr_value": "F42WZgGI9N", "attr_key": "HNA2sIVv7w" } ], "product_id": "TtHoTcUVQB", "item_list": [ { "merchant_discount_amount": 9004208722746112000, "commodity_weight": { "count": 7071480411069231000, "unit": "sEP3hqodkj" }, "item_order_id": "sK0DneeRGT", "affiliated_sku_list": [ { "product_out_id": "uZA4dgblzm", "product_name": "euFWYc0LBY", "count": 3517421082247007700, "total_amount": 5647273930137376000, "sku_id": "PxTMWxPAcS", "sku_out_id": "NufAFlfr5Z", "sku_name": "P014lEqwOx", "product_id": "XO60S75asd" } ], "deduct_info": { "source_product_out_id": "Ur0MjJ0962", "verify_id": 7920584065535292000, "source_merchant_discount_amount": 3597062065283653600, "source_sku_id": 7765179076268658000, "source_product_id": 2320196454338984400, "source_third_part_code": "U4T7tkqdYa", "serial_num": 8037587415656372000, "source_platform_discount_amount": 7323134614122238000, "deduct_amount": 5811233183658436000, "source_product_name": "qrs3NBMBxv", "source_sku_name": "twZcDbmQgc", "source_pay_amount": 6793706283244973000, "groupon_type": 1, "source_origin_amount": 1377964624444890000, "source_pay_discount_amount": 3487188895363781000, "source_sku_out_id": "e9bnycAyEg", "source_certificate_id": "fFMNBVlMH9" } } ], "sku_out_id": "aZVGMMGb6k", "count": 7084418257625267000, "merchant_discount_amount": 2283530130652063700, "sku_name": "ITDqa9N5Oy", "product_out_id": "FmNXiZJYva", "product_name": "Vid9wGAusW", "unit_amount": 6848093468359090000 } ] } ], "error_code": 0, "description": "" } }
错误码
| 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解决 |
