我们同城配送的充值/扣费主体是小程序,同时前段时间使用的是顺丰同城,但是因为顺丰的预下单和实际金额相差太大,所以节后回来就将充值在顺丰同城的运费退掉了,并重新充值了达达。但是发现此前已经使用过顺丰同城配送的门店现在发货达达就会报错,而其他未使用过的门店则是顺丰或者达达都能正常发货。我们的流程是,首先请求预下单接口(查询运费接口),然后在用户支付再请求同城配送下单接口。对于会报错的门店,预下单接口响应的运力一直都是顺丰,而其他正常门店预下单响应则是达达。这是为什么呢?
发货达达失败的同城配送下单接口请求参数:
{
"order_detail_path": "xxxx",
"user_openid": "xxxx",
"store_order_id": "xxxx",
"verify_code_type": 0,
"user_name": "xxxx",
"user_address": "xxxx",
"user_lat": 222222,
"wx_store_id": "xxxx",
"_n": "bgKttYUIdMUTfKMT6VMU8w",
"callback_url": "https://xxxx/api/notice/intracity",
"user_lng": 111111,
"user_phone": "xxxx",
"_appid": "xxxx",
"cargo": {
"cargo_weight": 500,
"cargo_price": 268,
"item_list": [
{
"count": 1,
"item_name": "小象米塔Bb-12益生菌滴液 10ml/瓶",
"item_pic_url": "https://xxxx/1678761751213627.jpeg"
}
],
"cargo_num": 1,
"cargo_name": "小象米塔Bb-12益生菌滴液 10ml/瓶",
"cargo_type": 1
},
"_timestamp": 1708224995
}
失败响应:
(errcode=934005, errmsg=preadd order fail detail: [DADA Errmsg: |SFTC Errmsg: use SFTC this order need to pay: 3084] rid: 65d171e4-349374f7-03faee66, wx_store_id=null, trans_order_id=null, waybill_id=null, wx_order_id=null, distance=0, fee=0, fetch_code=null, order_seq=null, service_trans_id=null)
station_address":"贵阳市南明区市西河街道瑞金南路63号",
"lng":106.703692,
"lat":26.575631
resp status: "fail"
code: 2453
msg: "地址、经纬度归属区域不一致,请核实"