+++
post:app/index.php?i=1&c=entry&ctrl=plateform&ac=order&op=takeout&ta=detail&do=api&m=we7_wmall
*token=IBB844RyBXqssxeQrTEbMY4BCr7r8Yb4#身份密钥
*id=125#订单id
<<<
success
{
"message": {
"resultCode": 0,
"resultMessage": "调用成功",
"data": {
"id": "1427",
"uniacid": "1",
"acid": "1",
"sid": "1",
"uid": "1727",
"groupid": "1",
"order_type": "1",
"is_pay": "0",
"ordersn": "1427000000000" ,//系统订单号(详情页面显示)
"serial_sn": "1" ,//商户订单号,在订单列表页面只显示该字段(详情页面显示)
"code": "9544",
"openid": "o3nuitws-cow0IwCBnALUQChYEZc",
"username": "灯火阑珊的", //下单人
"sex": "先生", //下单人性别
"mobile": "13453222285", //下单人手机号
"address": "康乐宝宝幼儿园西南231米002", //下单人收货地址
"number": "",
"location_x": "37.78611901980707",
"location_y": "112.55380399999993",
"note": "",
"price": "56.00", //商品金额
"num": "2", //商品总份数
"delivery_day": "2016-08-02",
"delivery_time": "16:30~17:00", //配送时间
"pay_type": "credit",
"addtime": "1470125990", //下单时间
"paytime": "0", //用户支付时间
"deliveryingtime": "0", //配送员抢单时间
"deliveryedtime": "0", //配送员送达时间
"status": "3",
"delivery_status": "3", // 3:待抢单, 4:配送中, 5:配送完成, 7:已到店(已取货)
"delivery_type": "2",
"is_comment": "0",
"print_nums": "0",
"delivery_fee": "10.00", //配送费
"pack_fee": "0.00", //打包费
"discount_fee": "13", //优惠金额
"total_fee": "66", //总金额 (总金额 = 商品金额(price) + 配送费(delivery_fee) + pack_fee(打包费))
"final_fee": "53", //用户最终支付金额(用户最终支付金额 = 总金额(total_fee) - 优惠金额 (discount_fee))
"vip_free_delivery_fee": "0",
"invoice": "", //发票信息
"data": "a:1:{i:4;a:1:{i:0;a:3:{s:5:\"title\";s:15:\"酸菜炖排骨\";s:3:\"num\";i:2;s:5:\"price\";s:2:\"28\";}}}",
"is_remind": "0",
"deliveryer_id": "0", //配送员id
"is_refund": "0",
"person_num": "1",
"table_id": "0",
"table_cid": "0",
"reserve_type": "",
"reserve_time": "",
"order_type_cn": "外卖", //订单类型
"status_cn": "待配送", //订单状态
"pay_type_cn": "未支付" //订单支付方式(is_pay为是否支付),
"addtime_cn": "2016-08-02 16:19", //下单时间
"paytime_cn": "1970-01-01 08:00", //支付时间
"deliveryingtime_cn": "2016-08-02 19:14", //配送员抢单时间
"deliveryinstoretime_cn": "1970-01-01 08:00", //配送员到店时间
"deliveryedtime_cn": "2016-08-03 11:11", //配送员送达时间
"delivery_takegoods_time_cn": { //取货时间
"day": "05-16", // 取货日期 取货日期不存在时返回 "未知",
"time": "19:31" // 取货时间 取货时间不存在时返回 "未知",
},
"delivery_success_time_cn": { //送达时间
"day": "05-16",
"time": "19:31"
},
"delivery_instore_time_cn": { //到店时间
"day": "未知",
"time": "未知"
},
"delivery_assign_time_cn": { //接单时间
"day": "05-16",
"time": "19:31"
},
"store": {
"title": "祥云餐馆", //门店名称
"address": "山西省太原市小店区", //门店地址
"telephone": "13453222285", //门店电话
"location_x": "37.753365",
"location_y": "112.576638"
},
"deliveryer": {
"title": "杨慧锋", //配送员姓名
"mobile": "13453222285", //配送员手机号
"age": "20",
"sex": "男",
"location_x": "37.791523", //配送员维度(实时位置)
"location_y": "112.57591" //配送员经度(实时位置)
"order_takeout_num": "3", //配送员当前手中外卖单未送达的数量
"order_errander_num": "1" //配送员当前手中跑腿单未送达的数量
},
"goods": [
{
"id": "2537",
"oid": "1427",
"uniacid": "1",
"sid": "1",
"goods_id": "4",
"goods_cid": "2",
"goods_num": "2", //商品份数
"goods_title": "酸菜炖排骨", //商品名称
"goods_unit_price": "28", //商品单价
"goods_price": "56.00", //商品总价格
"status": "1",
"addtime": "1470125990"
}
],
"activityed": [
{
"id": "1350",
"uniacid": "1",
"sid": "1",
"oid": "1427",
"type": "discount",
"name": "满减优惠", //优惠类型
"icon": "jian_b.png",
"note": "-¥8", //优惠金额
"fee": "8"
},
{
"id": "1351",
"uniacid": "1",
"sid": "1",
"oid": "1427",
"type": "grant",
"name": "满赠优惠",
"icon": "zeng_b.png",
"note": "西瓜一个",
"fee": "0"
},
{
"id": "1352",
"uniacid": "1",
"sid": "1",
"oid": "1427",
"type": "amount",
"name": "数量满减",
"icon": "shu_b.png",
"note": "-¥5",
"fee": "5"
}
]
}
}
}
<<<
error
{
"message": {
"resultCode": -1,
"resultMessage": "订单不存在或已删除",
"data": {
"resultCode" => ''
}
}
}
+++