配送信息查询
收藏
我的收藏接口说明
1. 查询商家的配送信息
2. 如果该商家还未配置配送信息返回空值
基本信息
名称 | 描述 |
---|---|
HTTP URL | https://open.douyin.com/goodlife/v1/hermes/delivery/delivery_info/get/ |
HTTP Method | GET |
Scope | life.capacity.poi.deliver_config |
权限要求 | 门店配送设置 |
请求参数
请求头
access-token必填String
示例:clt.943da17996fb5cebfbc70c044c3fc25a57T54DcjT6HNKGqnUdxzy1KcxFnZ
content-type必填String
固定值"application/json"
Query
poi_id必填Int64
抖音门店 id
请求示例
curl --location --request GET 'http://open-boe.douyin.com/goodlife/v1/hermes/delivery/delivery_info/get/?poi_id=6733497880704747528' \ --header 'access-token: clt.e51928f86e655b7c457a66efe6c11aa2nsVToESMgxjourH9JWy3upQDnzN8' \ --header 'Cookie: passport_csrf_token_default=da01964a4a24244c5cff287b3fbefd93' \ --data-raw ''
响应参数
Body展开全部子属性
data必填Struct
门店配送信息
展开子属性
extra必填Struct
展开子属性
Extra必填Struct
展开子属性
响应示例
正常响应示例异常响应示例
{ "Extra": { "Now": 0, "SubDescription": "", "SubErrorCode": 0, "Description": "", "ErrorCode": 0, "Logid": "" }, "data": { "Description": "", "ErrorCode": 0, "data": { "delivery_scope_infos": [ { "ScopeSource": 1, "ScopeType": 1, "AccountId": "7196233589783005228", "DrawType": 3, "PointList": [ { "latitude": 39.91572966891608, "longitude": 116.41724506090961 }, { "latitude": 39.915261674440174, "longitude": 116.4176287926532 }, { "latitude": 39.915370421942654, "longitude": 116.41834518224009 }, { "latitude": 39.91594715954734, "longitude": 116.41867785515782 }, { "latitude": 39.91572966891608, "longitude": 116.41724506090961 } ], "ScopeAcreage": 0, "ScopeOperateSource": 2, "DeliveryDistance": 0, "DeliveryScopeId": "7199848260785143852", "FenceId": "63ee0e8830c8d04f1dff4fb7", "PoiId": "6733497880704747528", "ScopeStatus": 2 }, { "DeliveryScopeId": "7199848260785209388", "DrawType": 1, "FenceId": "63ee0e888b2122b0880f0e5a", "PoiId": "6733497880704747528", "ScopeOperateSource": 1, "ScopeSource": 1, "ScopeType": 2, "AccountId": "7196233589783005228", "ScopeAcreage": 0, "ScopeStatus": 1, "DeliveryDistance": 1000 } ], "estimated_cooking_time": 10, "estimated_delivery_time_data": { "type_2_estimated_delivery_time": { "1": { "basic_time": 15, "delta_time": 10 }, "2": { "basic_time": 15, "delta_time": 10 } } }, "order_accept_phone": { "phones": [ { "area_code": "", "phone_num": "13378786782", "phone_type": 2 } ] }, "owner_user_id": 0, "poi_id": 6733497880704748000, "takeout_delivery_info_id": 1044, "charge_rule": { "business_mode": 2, "charge_rule_desc": "艾力羊蝎子火锅门店配送费规则-商家自定义", "charge_rule_id": "7197761685371863084", "charge_rule_name": "艾力羊蝎子火锅门店配送费规则-商家自定义", "rule_detail": { "time_prices": [ { "contain_time_end": true, "contain_time_start": true, "end_time_is_next_day": false, "markup_price": 10, "time_end": "06:00", "time_start": "02:10" }, { "markup_price": 60, "time_end": "01:44", "time_start": "12:12", "contain_time_end": true, "contain_time_start": true, "end_time_is_next_day": true } ], "start_price": { "start_mileage": -1, "start_price": 30 } }, "status": 0 }, "delivery_bussiness_modes": [ 1, 2 ], "modify_user_id": -10001, "order_accept_limit": 991, "order_accept_methods": [ 1, 2 ], "booking_order_info": { "accepted_booking_order_date": 0, "booking_order_status": 0 }, "create_time": 1676527544, "modify_time": 1676532178, "order_accept_status_data": { "off_reason": 1, "status": 0 }, "order_accept_time": { "order_accept_time_list": null }, "version": 19 }, "error_code": 0, "description": "" }, "extra": { "error_code": 0, "description": "", "sub_error_code": 0, "sub_description": "", "logid": "2024120400041713ED90D480C60A352C34", "now": 1733241857 } }
切换单列布局
错误码
HTTP 状态码 | 错误码 | 错误码描述 | 排查建议 |
---|---|---|---|
200 | 4000001 | 缺少必填参数 | |
200 | 2100001 | 未知错误 | 重试接口,重试3次仍报错联系抖音生活服务技术支持 |
200 | 2100004 | 系统繁忙,此时请开发者稍候再试 | 重试接口,重试3次仍报错联系抖音生活服务技术支持 |
200 | 2100005 | 参数不合法 | 更换参数 |
200 | 2190002 | access_token无效 | 调用接口重新生成access_token |
200 | 2190004 | 应用未获得该能力, 请去https://open.douyin.com/申请 | 应用申请接口权限 |
200 | 2190008 | access_token过期,请刷新或重新授权 | 规范token刷新机制,检查是否有测试环境在同步刷新token |
200 | 2119001 | 参数不合法 | 更换参数 |
200 | 2119002 | 系统繁忙,请稍候再试 | 重试 |
200 | 2119003 | 请求太过频繁,请稍后再试 | 重试 |
200 | 2119005 | 应用未获商家授权 | 联系合作商家在商家后台发起授权,并在服务商后台同意授权 |
200 | 3000001 | 根据实际业务错误返回 | 对照接口文档规范参数并重试 |
200 | 4000002 | 根据实际业务错误返回 | 对照接口文档规范参数并重试 |
200 | 5000001 | 根据实际业务错误返回 | 联系抖音处理 |
200 | 5000001 | 服务器打瞌睡了,请稍后再试。 | |
200 | 3000001 | 以实际错误信息为准 |
点击纠错