配送信息保存接口
接口说明
暂无
基本信息
名称 | 描述 |
---|---|
HTTP URL | https://open.douyin.com/goodlife/v1/hermes/delivery/delivery_info/save/ |
HTTP Method | POST |
Scope | life.capacity.poi.deliver_config |
权限要求 | 配送信息保存 |
请求参数
请求头
access-token必填String
示例:clt.943da17996fb5cebfbc70c044c3fc25a57T54DcjT6HNKGqnUdxzy1KcxFnZ
content-type必填String
固定值"application/json"
Rpc-Transit-Life-AccountString
来客商户根账户ID
Body展开全部子属性
delivery_info必填Struct
展开子属性
poi_id必填Int64
门店id
请求示例
curl --location --request POST 'https://open.douyin.com/goodlife/v1/hermes/delivery/delivery_info/save/' \ --header 'access-token: 0801121846735352506a356a6' \ --header 'content-type: application/json' \ --data '{"delivery_info":{"delivery_min_price":"3lrrlvKmR2","order_accept_time":{"order_accept_time_list":[{"time_end":"ehpqgSoYlN","week_day_list":[1],"time_start":"S2yi0u1OlD"}]},"delivery_scope_infos":[{"point_list":[{"longitude":0.5688239436153111,"latitude":0.6884189820807857}],"scope_type":1}],"order_accept_phone":{"phones":[{"phone_num":"GNoSXWbcK7","area_code":"Q3DVd5JOZ8","phone_type":1}]},"estimated_cooking_time":8629512912125800913,"estimated_delivery_time_data":{"type_2_estimated_delivery_time":{"1":{"delta_time":3464988666224846839,"basic_time":1866418791733774533}}},"booking_order_info":{"booking_order_status":1,"accepted_booking_order_date":3500351474004301638,"booking_order_sold_time_type":1},"order_accept_limit":4523628730771208213,"rule_detail":{"distance_prices":[{"distance_start":1474268414083085668,"contain_distance_start":false,"distance_end":6092150401866408904,"contain_distance_end":false,"distance_unit":7033055822420972873,"markup_price":56877191209281399}],"time_prices":[{"end_time_is_next_day":false,"markup_price":472610863839082471,"contain_time_end":false,"time_start":"epiVPPA3VT","time_end":"NoL1MVMUQ7","contain_time_start":false}],"holiday_limits":[{"markup_price":1958383933233759864,"date":"1snTc13hRw"}],"start_price":{"start_mileage":8047387584528763553,"start_price":881307709111333571}},"point_list":[{"longitude":0.11083192914143074,"latitude":0.06472880711219986}],"effective_scope_type":1,"order_modify_status":1},"poi_id":4357505509903455993}'
响应参数
Body展开全部子属性
data必填Struct
展开子属性
extra必填Struct
扩展信息
展开子属性
Extra必填Struct
展开子属性
响应示例
正常响应示例异常响应示例
{ "data": { "booking_order_info": { "booking_order_status": 1, "accepted_booking_order_date": 4081604970523265000, "booking_order_sold_time_type": 1 }, "point_list": [ { "longitude": 0.3382224426359027, "latitude": 0.8502859310537051 } ], "order_accept_time": { "order_accept_time_list": [ { "week_day_list": [ 1 ], "time_start": "VPMqu4KPVq", "time_end": "PTF8VzPgrG" } ] }, "order_accept_phone": { "phones": [ { "area_code": "xkFYWyJG50", "phone_type": 1, "phone_num": "bD9zdCFd6W" } ] }, "estimated_delivery_time_data": { "type_2_estimated_delivery_time": { "1": { "basic_time": 3025360924674456600, "delta_time": 5894915967301078000 } } }, "rule_detail": { "time_prices": [ { "time_end": "I2WA4EX6Br", "contain_time_start": false, "end_time_is_next_day": false, "markup_price": 183120246357804900, "contain_time_end": false, "time_start": "uuE63GmrW4" } ], "holiday_limits": [ { "date": "YrCFW4Ewic", "markup_price": 2160040157535503600 } ], "start_price": { "start_mileage": 3020307197101740000, "start_price": 8927599106128598000 }, "distance_prices": [ { "contain_distance_end": false, "distance_unit": 1839943943504860700, "markup_price": 2589851336636694000, "distance_start": 8166286727970218000, "contain_distance_start": false, "distance_end": 6323459540434654000 } ] }, "order_accept_limit": 8222208687665078000, "effective_scope_type": 1, "estimated_cooking_time": 3102104552041788400, "delivery_scope_infos": [ { "scope_type": 1, "point_list": [ { "longitude": 0.6463797438990598, "latitude": 0.7290003389735745 } ] } ], "delivery_min_price": "cqsMPyJokl", "order_modify_status": 1, "error_code": 0, "description": "" }, "Extra": { "SubErrorCode": 7360454505001753000, "SubDescription": "yjf219RDZq", "Logid": "202008121419360101980821035705926A", "Now": 5802130625776722000, "ErrorCode": 6522570097080415000, "Description": "TDaGhU6bOA" }, "extra": { "error_code": 0, "description": "", "sub_error_code": 0, "sub_description": "", "logid": "2025072914030313FAC3C3F7389A093C61", "now": 1753768988 } }
错误码
HTTP 状态码 | 错误码 | 错误码描述 | 排查建议 |
---|---|---|---|
200 | 3110601 | 接单状态只能为0或者1 | |
200 | 3110602 | 未设置过配送信息 | |
200 | 3110603 | 门店未签署外卖协议 | |
200 | 3110604 | 门店无配送合作方案 | |
200 | 3110605 | 门店未选择生效的合作方案 | |
200 | 3010601 | 门店认领关系异常 | |
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 | 4000001 | 根据实际业务错误返回 | 补充参数 |
200 | 4000002 | 根据实际业务错误返回 | 对照接口文档规范参数并重试 |
200 | 5000001 | 根据实际业务错误返回 | 联系抖音处理 |
200 | 3000001 | 以实际错误信息为准 | |
200 | 5000001 | 服务器打瞌睡了,请稍后再试。 |