配送信息保存接口
收藏
我的收藏接口说明
暂无
基本信息
名称 | 描述 |
---|---|
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"
Body展开全部子属性
delivery_info必填Struct
展开子属性
poi_id必填Int64
门店id
请求示例
curl --location --request POST '/goodlife/v1/hermes/delivery/delivery_info/save/' \ --header 'content-type: application/json' \ --header 'access-token: 0801121846735352506a356a6' \ --data '{"delivery_info":{"booking_order_info":{"booking_order_status":1,"accepted_booking_order_date":6359030403086753297,"booking_order_sold_time_type":1},"rule_detail":{"start_price":{"start_price":7647537350777541888,"start_mileage":6494824685147528422},"distance_prices":[{"distance_unit":7368406318657253465,"markup_price":1055990971248894354,"distance_start":6646886311725577221,"contain_distance_start":false,"distance_end":8889064939512507293,"contain_distance_end":false}],"time_prices":[{"contain_time_end":false,"time_start":"WWa5ENUknT","time_end":"Gaa02IKrK9","contain_time_start":false,"end_time_is_next_day":false,"markup_price":4499575811671602246}],"holiday_limits":[{"markup_price":5483990902443165574,"date":"Goa7RbqOL0"}]},"point_list":[{"longitude":0.8253701865793236,"latitude":0.35903793802070677}],"order_accept_time":{"order_accept_time_list":[{"time_end":"4AhrR3eMcT","week_day_list":[1],"time_start":"Riq40wItB8"}]},"order_accept_phone":{"phones":[{"phone_type":1,"phone_num":"mwMlvBtTb1","area_code":"wfuKaLgjCR"}]},"order_accept_limit":73141749037219618,"estimated_cooking_time":5772121962794904201,"estimated_delivery_time_data":{"type_2_estimated_delivery_time":{"1":{"basic_time":4006956301311434162,"delta_time":9021091570743798695}}}},"poi_id":3269374979190449784}'
响应参数
Body展开全部子属性
data必填Struct
展开子属性
extra必填Struct
展开子属性
Extra必填Struct
展开子属性
响应示例
正常响应示例异常响应示例
{ "extra": { "Logid": "202008121419360101980821035705926A", "Now": 5462083448809961000, "ErrorCode": 0, "Description": "", "SubErrorCode": 0, "SubDescription": "" }, "data": { "booking_order_info": { "accepted_booking_order_date": 7809430093873242000, "booking_order_sold_time_type": 1, "booking_order_status": 1 }, "rule_detail": { "start_price": { "start_price": 605159285971594900, "start_mileage": 5881321490317093000 }, "distance_prices": [ { "markup_price": 4809181093567987000, "distance_start": 3868233044422982000, "contain_distance_start": false, "distance_end": 7497590786254038000, "contain_distance_end": false, "distance_unit": 1338716471253781500 } ], "time_prices": [ { "end_time_is_next_day": false, "markup_price": 623620971128755700, "contain_time_end": false, "time_start": "oKrsbx9gaj", "time_end": "9p2tGmF9mB", "contain_time_start": false } ], "holiday_limits": [ { "markup_price": 4079566400591738400, "date": "IIhCzKjiPE" } ] }, "point_list": [ { "longitude": 0.8600674317647619, "latitude": 0.8297540237558507 } ], "order_accept_time": { "order_accept_time_list": [ { "week_day_list": [ 1 ], "time_start": "5WpCVbLRNr", "time_end": "4qqFFdjlEj" } ] }, "order_accept_phone": { "phones": [ { "phone_type": 1, "phone_num": "womhH2FtSo", "area_code": "qS8Zn0V5FP" } ] }, "order_accept_limit": 4122351158837398500, "estimated_cooking_time": 5072607146541064000, "estimated_delivery_time_data": { "type_2_estimated_delivery_time": { "1": { "basic_time": 6344917063670478000, "delta_time": 8832434058595501000 } } }, "error_code": 0, "description": "" } }
切换单列布局
错误码
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 | 5000001 | 服务器打瞌睡了,请稍后再试。 | |
200 | 3000001 | 以实际错误信息为准 |
点击纠错