+++
post:app/index.php?i=1&c=entry&ctrl=plateform&ac=order&op=takeout&ta=analyse&do=api&m=we7_wmall
*token=IBB844RyBXqssxeQrTEbMY4BCr7r8Yb4#身份密钥
*id=269#订单id (此接口注意看返回信息中的deliveryers字段)
<<<
success
{
"message": {
"resultCode": 0,
"resultMessage": "",
"data": {
"id": "269",
"uniacid": "1",
"acid": "1",
"agentid": "0",
"spread1": "0",
"spread2": "0",
"spreadbalance": "1",
"sid": "3",
"uid": "10158",
"mall_first_order": "0",
"order_type": "1",
"is_pay": "1",
"ordersn": "20180531115452838581",
"order_channel": "wap",
"serial_sn": "2",
"code": "8108",
"openid": "ol-ZvxGL9coHHQbdix-3Ld0wA67k",
"username": "样",
"sex": "先生",
"mobile": "13453222285",
"address": "菜鸟驿站(唐久便利1896许坦西街蓝海市场店)001000",
"number": "",
"location_x": "37.80081", //收货人所在维度
"location_y": "112.57543",//收货人所在经度
"note": "",
"price": "114.00",
"box_price": "2",
"num": "11",
"delivery_day": "2018-05-31",
"delivery_time": "尽快送达",
"pay_type": "delivery",
"addtime": "1527738892",
"paytime": "1527738892",
"delivery_handle_type": "wechat",
"delivery_success_location_x": "",
"delivery_success_location_y": "",
"delivery_assign_time": "0",
"delivery_instore_time": "0",
"delivery_takegoods_time": "0",
"delivery_success_time": "0",
"handletime": "1527841664",
"clerk_notify_collect_time": "0",
"endtime": "0",
"is_timeout": "0",
"status": "2",
"refund_status": "0",
"delivery_status": "0",
"delivery_type": "2",
"is_comment": "0",
"print_nums": "0",
"distance": "",
"delivery_fee": "5.00",
"pack_fee": "1.00",
"serve_fee": "0.00",
"extra_fee": "0",
"discount_fee": "5",
"total_fee": "122",
"final_fee": "117.00",
"vip_free_delivery_fee": "0",
"store_final_fee": "117",
"store_discount_fee": "0",
"plateform_discount_fee": "5",
"plateform_serve": {
"fee_type": 1,
"fee_rate": 100,
"fee": 0,
"note": "() x 100%"
},
"plateform_serve_rate": "100",
"plateform_serve_fee": "0",
"plateform_delivery_fee": "5.00",
"plateform_deliveryer_fee": "0",
"agent_serve": {
"final": "(代理商抽取佣金 ¥0 - 平台服务佣金 ¥ - 代理商补贴 ¥0 + 代理商配送费 ¥5.00 - 代理商支付给配送员配送费 ¥0)"
},
"agent_final_fee": "5",
"agent_serve_fee": "",
"agent_discount_fee": "0",
"refund_fee": "0",
"invoice": "",
"data": {
"extra_fee": [],
"cart": {
"9768": {
"goods_id": "9768",
"title": "葱肉馅饺子",
"options": [
{
"option_id": "0",
"name": "",
"num": 2,
"price_num": 1,
"discount_num": 1,
"bargain_id": "2",
"price_total": "24.00"
}
]
},
"11731": {
"goods_id": "11731",
"title": "测试商品",
"options": [
{
"option_id": "0",
"name": "",
"num": 3,
"price_num": 3,
"discount_num": 0,
"bargain_id": 0,
"price_total": "30.00"
}
]
},
"11732": {
"goods_id": "11732",
"title": "ceshi",
"options": [
{
"option_id": "0",
"name": "",
"num": 6,
"price_num": 6,
"discount_num": 0,
"bargain_id": 0,
"price_total": "60.00"
}
]
},
"88888": {
"title": "餐盒费",
"goods_id": 0,
"options": [
{
"num": 2,
"name": "",
"discount_num": 0,
"price_num": 0,
"price_total": "2.00"
}
]
}
},
"commission": {
"spread1_rate": "0%",
"spread1": 0,
"spread2_rate": "0%",
"spread2": 0
}
},
"is_remind": "0",
"deliveryer_id": "0",
"person_num": "1",
"table_id": "0",
"table_cid": "0",
"reserve_type": "",
"reserve_time": "",
"transaction_id": "",
"out_trade_no": "",
"print_sn": "0",
"stat_year": "2018",
"stat_month": "201805",
"stat_day": "20180531",
"stat_week": "4",
"meals_cn": "lunch",
"last_notify_deliveryer_time": "0",
"last_notify_clerk_time": "1527738892",
"notify_deliveryer_total": "0",
"notify_clerk_total": "1",
"elemeOrderId": "",
"elemeDowngraded": "0",
"eleme_store_final_fee": "0.00",
"meituanOrderId": "0",
"meituan_store_final_fee": "0.00",
"order_plateform": "we7_wmall",
"is_delete": "0",
"delivery_collect_type": "0",
"transfer_deliveryer_id": "0",
"transfer_delivery_status": "0",
"delivery_title": "啦啦专送.0",
"order_type_cn": "外卖",
"status_cn": "处理中",
"pay_type_cn": "货到付款",
"pay_type_class": "delivery-pay",
"store": {
"location_x": "37.791069",
"location_y": "112.609959"
},
"deliveryers": [
{
"id": "16",
"uniacid": "1",
"agentid": "0",
"title": "杨", //配送员姓名
"nickname": "灯火阑珊的",
"groupid": "5",
"openid": "ol-ZvxGL9coHHQbdix-3Ld0wA67k",
"openid_wxapp": "",
"avatar": "http://wx.qlogo.cn/mmopen/6Fz3aS6k35YD7gaLqD42qJ5xND4VAqGXUFu9oL80IselYY9oRJ1EvVWfNQlHhgJAyylZ2uWqIWPRjXvTtibPIp4vNGfE4mqoC/0",
"mobile": "13453222285", //配送员手机号
"password": "6e11b03eb3ecd07577c4af6ec151398e",
"salt": "kiObNY",
"token": "",
"sex": "男",
"age": "20",
"addtime": "1463989773",
"credit1": "0.00",
"credit2": "-5325.85",
"work_status": "1",
"is_takeout": "1",
"is_errander": "1",
"auth_info": "",
"location_x": "37.791069", //配送员当前所在的维度
"location_y": "112.609959", //配送员当前所在的经度
"order_takeout_num": "3", //配送员当前有几单外卖单在配送中
"order_errander_num": "3", //配送员当前有几单跑腿单在配送中
"collect_max_takeout": "30",
"collect_max_errander": "50",
"perm_transfer": "a:4:{s:14:\"status_takeout\";s:1:\"1\";s:15:\"status_errander\";s:1:\"1\";s:11:\"max_takeout\";s:2:\"10\";s:12:\"max_errander\";s:2:\"20\";}",
"perm_cancel": "N;",
"fee_delivery": "a:2:{s:7:\"takeout\";a:2:{s:19:\"deliveryer_fee_type\";i:2;s:14:\"deliveryer_fee\";d:50;}s:8:\"errander\";a:2:{s:19:\"deliveryer_fee_type\";i:1;s:14:\"deliveryer_fee\";d:5;}}",
"fee_getcash": "a:5:{s:18:\"get_cash_fee_limit\";s:1:\"0\";s:17:\"get_cash_fee_rate\";s:2:\"10\";s:16:\"get_cash_fee_min\";s:1:\"1\";s:16:\"get_cash_fee_max\";s:3:\"100\";s:15:\"get_cash_period\";s:1:\"1\";}",
"extra": {
"accept_wechat_notice": 1,
"accept_voice_notice": 1
},
"registration_id": null,
"order_id": 269,
"store2user_distance": "3.23km", //配送员当前距离收货人的距离
"store2deliveryer_distance": "0km" //配送员当前距离取货门店的距离
},
{
"id": "22",
"uniacid": "1",
"agentid": "0",
"title": "陈颖",
"nickname": "c。y",
"groupid": "0",
"openid": "ol-ZvxJHJVIMkPDGxymeTaiK2eok",
"openid_wxapp": "",
"avatar": "http://wx.qlogo.cn/mmopen/k8mFfEmdQe2PI0IEDkyicA4lRk7iaw5jtmNhVf0rDMvg1v3acicoPnNA4rA7xLO7RpDibsA9yxAKYU6NX2XOphIPFg/0",
"mobile": "18468094078",
"password": "f722d3a28570e9b5bbab0b759a267dd5",
"salt": "pVTe3d",
"token": "plOE6Wz39YDDW37kWoEZ39dDw2Vdv2et",
"sex": "女",
"age": "20",
"addtime": "1519438093",
"credit1": "0.00",
"credit2": "-58.00",
"work_status": "1",
"is_takeout": "1",
"is_errander": "1",
"auth_info": "",
"location_x": "",
"location_y": "",
"order_takeout_num": "1",
"order_errander_num": "0",
"collect_max_takeout": "3",
"collect_max_errander": "3",
"perm_transfer": "a:3:{s:6:\"status\";s:1:\"1\";s:11:\"max_takeout\";s:1:\"1\";s:12:\"max_errander\";s:1:\"2\";}",
"perm_cancel": "a:2:{s:7:\"takeout\";s:1:\"1\";s:8:\"errander\";s:1:\"1\";}",
"fee_delivery": "a:2:{s:7:\"takeout\";a:2:{s:19:\"deliveryer_fee_type\";i:1;s:14:\"deliveryer_fee\";d:5;}s:8:\"errander\";a:2:{s:19:\"deliveryer_fee_type\";i:1;s:14:\"deliveryer_fee\";d:5;}}",
"fee_getcash": "a:5:{s:18:\"get_cash_fee_limit\";s:1:\"0\";s:17:\"get_cash_fee_rate\";s:1:\"0\";s:16:\"get_cash_fee_min\";s:1:\"0\";s:16:\"get_cash_fee_max\";s:1:\"0\";s:15:\"get_cash_period\";s:1:\"0\";}",
"extra": {
"accept_wechat_notice": 0,
"accept_voice_notice": 1
},
"registration_id": null,
"order_id": 269,
"store2deliveryer_distance": "未知",
"store2user_distance": "未知"
}
]
}
},
"redirect": "",
"type": "ajax"
}
<<<
error
{
"message": {
"resultCode": -1,
"resultMessage": "",//操作失败提示语
"data": {
"resultCode" => ''
}
}
}
+++