https://api.weixin.qq.com/cgi-bin/express/local/business/order/pre_add
预下单参数:
{"cargo":{"cargo_first_class":"电商","cargo_second_class":"线上商城","goods_detail":null,"goods_height":0,"goods_length":0,"goods_pickup_info":"","goods_value":63.84,"goods_weight":500,"goods_width":0},"delivery_id":"UU","delivery_sign":"","delivery_token":"","openid":"","order_info":{"cash_on_delivery":0,"cash_on_pickup":0,"declared_value":0,"delivery_service_code":"","expected_delivery_time":0,"expected_finish_time":0,"expected_pick_time":0,"is_direct_delivery":0,"is_finish_code_needed":0,"is_insured":0,"is_pickup_code_needed":0,"note":"","order_time":0,"order_type":0,"poi_seq":"","rider_pick_method":0,"tips":0},"order_sequence":"","order_source":"","receiver":{"address":"东营区","address_detail":"鑫都国子甲第2栋2单元","city":"东营市","coordinate_type":0,"lat":37.476467,"lng":118.58419,"name":"李","phone":""},"sender":{"address":"东营区","address_detail":"西城万达广场二楼","city":"东营市","coordinate_type":0,"lat":37.46375,"lng":118.54867,"name":"庞然","phone":""},"shop":{"detail_list":[],"goods_count":1,"goods_name":"维克多新高中英语同步词汇笔记(新)","img_url":"http://localhost:8084//blobdata/20240918/F536588E53E94915B51528AFDA1A5C86.jpg","wxa_appid":"","wxa_path":""},"shop_no":"WY07","shop_order_id":"WY07LS000571525","shopid":"0a9d0cdd11c7417687f7c0d2076deaeb","sub_biz_id":""}
预下单响应数据:
{"resultcode":0,"resultmsg":"success","fee":16,"deliverfee":16,"tips":0,"insurancefee":0,"distance":6725,"delivery_token":"","dispatch_duration":0}
https://api.weixin.qq.com/cgi-bin/express/local/business/order/add
添加配送单参数:
{"cargo":{"cargo_first_class":"电商","cargo_second_class":"线上商城","goods_detail":null,"goods_height":0,"goods_length":0,"goods_pickup_info":"","goods_value":63.84,"goods_weight":500,"goods_width":0},"delivery_id":"UU","delivery_sign":"","delivery_token":"","openid":"","order_info":{"cash_on_delivery":0,"cash_on_pickup":0,"declared_value":0,"delivery_service_code":"","expected_delivery_time":0,"expected_finish_time":0,"expected_pick_time":0,"is_direct_delivery":0,"is_finish_code_needed":0,"is_insured":0,"is_pickup_code_needed":0,"note":"","order_time":0,"order_type":0,"poi_seq":"","rider_pick_method":0,"tips":0},"order_sequence":"","order_source":"","receiver":{"address":"东营区","address_detail":"鑫都国子甲第2栋2单元","city":"东营市","coordinate_type":0,"lat":37.476467,"lng":118.58419,"name":"李","phone":""},"sender":{"address":"东营区","address_detail":"西城万达广场二楼","city":"东营市","coordinate_type":0,"lat":37.46375,"lng":118.54867,"name":"庞然","phone":""},"shop":{"detail_list":[],"goods_count":1,"goods_name":"维克多新高中英语同步词汇笔记(新)","img_url":"http://localhost:8084//blobdata/20240918/F536588E53E94915B51528AFDA1A5C86.jpg","wxa_appid":"","wxa_path":""},"shop_no":"WY07","shop_order_id":"WY07LS000571525","shopid":"0a9d0cdd11c7417687f7c0d2076deaeb","sub_biz_id":""}
响应数据:
{"resultcode":-10010004,"resultmsg":"支付信息失效,请重新下单","fee":0,"deliverfee":0,"couponfee":0,"tips":0,"distance":0,"waybill_id":"","order_status":0,"finish_code":0,"pickup_code":0,"dispatch_duration":0,"sender_lng":0,"sender_lat":0}