配送信息保存接口
接口说明
配送范围设置有限制,以门店地址为中心,不能超过骑行20km
使用限制
SLA:支持的最大QPS:5;
基本信息
| 名称 | 描述 |
|---|---|
| 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 'content-type: application/json' \ --header 'access-token: 0801121846735352506a356a6' \ --data '{"delivery_info":{"rule_detail":{"holiday_limits":[{"date":"nbmlXZvpRg","markup_price":2063707573267422870}],"weight_prices":[{"weight_unit":6737097290784804537,"markup_price":7422438756996436513,"weight_start":5573771077367605888,"weight_end":6279136242983089877}],"start_price":{"start_price":3200813988304243228,"start_mileage":5808493721387208821},"distance_prices":[{"distance_start":4691954362109781332,"contain_distance_start":false,"distance_end":6327625713683153867,"contain_distance_end":false,"distance_unit":883190640494632036,"markup_price":7744272251714688300}],"time_prices":[{"contain_time_start":false,"end_time_is_next_day":false,"markup_price":5160180679700032439,"contain_time_end":false,"time_start":"tlFif61Y5G","time_end":"rcvBq93hjD"}]},"order_accept_limit":2748221424004792744,"estimated_delivery_time_data":{"type_2_estimated_delivery_time":{"1":{"basic_time":1500434989621474269,"delta_time":4126447814766876288}}},"estimated_cooking_time":4083254723766654161,"order_modify_status":1,"effective_scope_type":1,"delivery_scope_infos":[{"point_list":[{"latitude":0.7356193443165955,"longitude":0.7089376710048264}],"scope_type":1}],"booking_order_info":{"booking_order_sold_time_type":1,"booking_order_status":1,"accepted_booking_order_date":2408103311646306830},"order_accept_phone":{"phones":[{"phone_num":"B0qXbzMN9S","area_code":"5THozYcf3B","phone_type":1}]},"delivery_min_price":"A1amoYJ1KT","point_list":[{"longitude":0.03734238936271199,"latitude":0.47247768778274246}],"order_accept_time":{"order_accept_time_list":[{"time_end":"tGNFFdtpLd","week_day_list":[1],"time_start":"I67F5nry8G"}]}},"poi_id":1236779537893554344}'
响应参数
Body展开全部子属性
data必填Struct
展开子属性
extra必填Struct
扩展信息
展开子属性
Extra必填Struct
展开子属性
响应示例
正常响应示例异常响应示例
{ "Extra": { "Description": "dJEmouk6Ve", "ErrorCode": 9084764809838319000, "Logid": "202008121419360101980821035705926A", "Now": 9071399318793291000, "SubDescription": "l1TEJ1Vwyj", "SubErrorCode": 213631871238621950 }, "data": { "booking_order_info": { "accepted_booking_order_date": 3449857161965617000, "booking_order_sold_time_type": 1, "booking_order_status": 1 }, "delivery_min_price": "Q1O3OaxUks", "delivery_scope_infos": [ { "point_list": [ { "latitude": 0.42503961926438105, "longitude": 0.6275997688812527 } ], "scope_type": 1 } ], "effective_scope_type": 1, "estimated_cooking_time": 1644347905544264700, "estimated_delivery_time_data": { "type_2_estimated_delivery_time": { "1": { "basic_time": 2878770668681855500, "delta_time": 5032209650752614000 } } }, "order_accept_limit": 3214789150160168400, "order_accept_phone": { "phones": [ { "area_code": "2rxMiHNdGO", "phone_num": "JNaHKjFKrb", "phone_type": 1 } ] }, "order_accept_time": { "order_accept_time_list": [ { "time_end": "YvfBu27kOL", "time_start": "SibRgxnqnl", "week_day_list": [ 1 ] } ] }, "order_modify_status": 1, "point_list": [ { "latitude": 0.8989933899152625, "longitude": 0.006601732380987598 } ], "rule_detail": { "distance_prices": [ { "contain_distance_end": false, "contain_distance_start": false, "distance_end": 3043352510008526300, "distance_start": 245579696189124480, "distance_unit": 1227443851548685000, "markup_price": 6698076243664435000 } ], "holiday_limits": [ { "date": "BhsBRhjj8B", "markup_price": 5203871528307916000 } ], "start_price": { "start_mileage": 3755648699031665700, "start_price": 1034105177532946300 }, "time_prices": [ { "contain_time_end": false, "contain_time_start": false, "end_time_is_next_day": false, "markup_price": 2556340806575640600, "time_end": "wA33i04aAR", "time_start": "xUnSbyGlM4" } ], "weight_prices": [ { "markup_price": 4572088035818327000, "weight_end": 2244110100806535700, "weight_start": 4738137205150369000, "weight_unit": 7852849092312007000 } ] } }, "extra": { "description": "93xpJKBlwt", "error_code": 3315046003492503600, "logid": "fLYQ60paBc", "now": 8386075416555070000, "sub_description": "Ruem76M9ur", "sub_error_code": 9192482808590535000 } }
错误码
| 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 | 以实际错误信息为准 |
