appid:wxea5e4593f5207646
请求地址:
POST https://api.weixin.qq.com/cgi-bin/express/local/business/order/pre_add?access_token=ACCESS_TOKEN
请求内容:
{
"shopid": "1563809533",
"shop_order_id": "SFTC_20200312113615648",
"shop_no": "3243279847393",
"delivery_sign": "db49ed0750086b86ed29877c20ccceb08d2b3579",
"delivery_id": "SCTC",
"openid": "o2dA-5Yl5PugxXUsHLKbrdRpQlpA",
"sender": {
"name": "刘一",
"city": "北京市",
"address": "xx大厦",
"address_detail": "1号楼101",
"phone": "13712345678",
"lng": "40.4486120000",
"lat": "116.3830750000",
"coordinate_type": 0
},
"receiver": {
"name": "老王",
"city": "北京市",
"address": "xxx地铁站",
"address_detail": "2号楼202",
"phone": "18512345678",
"lng": "40.1529600000",
"lat": "116.5060300000",
"coordinate_type": 0
},
"cargo": {
"goods_value": 5,
"goods_height": 1,
"goods_length": 3,
"goods_width": 2,
"goods_weight": 1,
"goods_detail": {
"goods": [{
"good_count": 1,
"good_name": "水果",
"good_price": 10,
"good_unit": "元"
}, {
"good_count": 2,
"good_name": "蔬菜",
"good_price": 20,
"good_unit": "元"
}]
},
"goods_pickup_info": "",
"goods_delivery_info": "",
"cargo_first_class": "美食夜宵",
"cargo_second_class": "零食小吃"
},
"order_info": {
"delivery_service_code": "",
"order_type": 0,
"expected_delivery_time": 0,
"expected_finish_time": 0,
"expected_pick_time": 0,
"poi_seq": "1111",
"note": "test_note",
"order_time": 1555220757,
"is_insured": 0,
"declared_value": 0,
"tips": 0,
"is_direct_delivery": 0,
"cash_on_delivery": 0,
"cash_on_pickup": 0,
"rider_pick_method": 1,
"is_finish_code_needed": 1,
"is_pickup_code_needed": 1
},
"shop": {
"wxa_path": "/page/index/index",
"img_url": "https://mmbiz.qpic.cn/mmbiz_png/xxxxxxxxx/0?wx_fmt=png",
"goods_name": "宝贝",
"goods_count": 2,
"wxa_appid": ""
},
"sub_biz_id": "sub_biz_id_1"
}
返回内容:
{
"fee": 0,
"deliverfee": 0,
"couponfee": 0,
"tips": 0,
"insurancefee": 0,
"distance": 0,
"waybill_id": null,
"order_status": 0,
"finish_code": 0,
"pickup_code": 0,
"dispatch_duration": 0,
"errcode": 930555,
"resultcode": null,
"resultmsg": null,
"ErrorCodeValue": 930555,
"errmsg": "sysem error hint: [jq2_Ra01908708]"
}
"delivery_id": "SCTC", 如果是顺丰同城,应该填SFTC