简要描述:
- 订单详情
请求URL:
POST:一级域名/wapapi/addons/execute/addons/channel/controller/channel/action/getPurchaseOrderDetail
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
order_id | 是 | int | 订单id |
order_type | 是 | string | 订单类型:采购(需要支付):purchase 出货:output 自提(需要支付):pickupgoods 零售:retail |
返回示例:
正确时返回: 采购/出货
{
"code": 0,
"message": "获取成功",
"data": {
"shop_name": "tim",//店铺名称
"order_no": "20181207160416909622",//订单号
"order_status": 0,//订单状态
"pay_status": 2,//支付状态 0-未支付 2-已支付
"order_money": "5.10",//订单金额
"payment_name": "微信支付",//支付方式
"who_purchase": "15768882033",//出货详情 谁采购我的
"who_purchase_grade": "总店",//出货详情 谁采购我 的上级
"create_time":1574058661,//订单创建时间
"order_goods": [//订单商品
{
"purchase_to": "15768882033",//采购于谁
"goods_name": "test222",
"sku_name": "蓝色 pic222 ",
"num": "6",
"price": "0.50",
"pic_cover": "http://www.nshop.com/upload/26/common/1536304382.png"
},
{
"goods_name": "哈哈哈啊哈哈啊哈哈哈哈哈ababababbc你好啊啊啊",
"sku_name": "",
"num": "6",
"price": "0.10",
"pic_cover": "http://www.nshop.com/upload/26/common/1536304382.png"
},
{
"goods_name": "test222",
"sku_name": "蓝色 pic222 ",
"num": "3",
"price": "0.50",
"pic_cover": "http://www.nshop.com/upload/26/common/1536304382.png"
}
],
"member_operation": [//会员操作标签
{
"no": "pay",
"name": "立即支付",
"color": "#F15050"
},
{
"no": "close",
"name": "取消订单",
"color": "#999999"
}
]
}
}
自提/零售
{
"code": 1,
"message": "获取成功",
"data": {
"order_id": 39,
"order_no": "20181012111219498609",//订单号
"shop_name": "tim",//店铺名称
"shop_id": 0,//店铺id
"order_status": 2,//订单状态
"payment_type_name": "微信支付",
"promotion_status": false,//没有享受优惠
"is_evaluate": 0,//是否评价 0-未评价 1-已评价 2-已追评
"order_money": "6.00",//订单金额
"goods_money": "0.00",//商品金额
"shipping_fee": 6,//运费
"promotion_money": 0,//优惠金额
"receiver_name": "guankaixuan",//收货人
"receiver_mobile": "15624043246",//收货电话
"receiver_province": "广东省",//收货地址 省市区
"receiver_city": "广州市",
"receiver_district": "天河区",
"receiver_address": "远洋创意园318-318-318318",//详细地址
"buyer_message": "",//留言
"create_time":1574058661,//订单创建时间
"member_operation": [//用户操作标签
{
"no": "getdelivery",
"name": "确认收货",
"color": "#FF6600"
},
{
"no": "logistics",
"color": "#ccc",
"name": "查看物流"
}
],
"no_delivery_id_array": [],
"goods_packet_list": [//物流信息
{
"packet_name": "包裹1",
"shipping_info": {
"expTextName": "圆通速递",
"mailNo": "810606570230",
"dataSize": 11,
"data": [
{
"time": "2017-06-22 21:18:29",
"context": "快件已签收 签收人:本人 感谢使用圆通速递,期待再次为您服务"
},
{
"time": "2017-06-22 15:27:10",
"context": "陕西省西安市太华三部公司派件人 :杨斌(18192152494) 正在派件"
},
{
"time": "2017-06-22 14:13:29",
"context": "快件已到达 陕西省西安市太华三部公司"
},
{
"time": "2017-06-22 14:01:13",
"context": "快件已到达 陕西省西安市太华公司"
},
{
"time": "2017-06-22 03:56:18",
"context": "快件已到达 陕西省西安市未央经济开发区公司"
},
{
"time": "2017-06-22 02:01:01",
"context": "快件已发往 陕西省西安市未央经济开发区公司"
},
{
"time": "2017-06-21 21:10:48",
"context": "快件已到达 西安转运中心"
},
{
"time": "2017-06-20 22:57:33",
"context": "快件已发往 西安转运中心"
},
{
"time": "2017-06-20 21:34:03",
"context": "快件已到达 北京转运中心"
},
{
"time": "2017-06-20 21:07:35",
"context": "快件已发往 北京转运中心"
},
{
"time": "2017-06-20 21:07:21",
"context": "北京市顺义区顺义机场公司取件人 :童灿春(17701248200) 已收件"
}
],
"ret_code": 0,
"expSpellName": "yuantong",
"msg": "查询成功",
"updateStr": "2018-10-15 16:03:10",
"possibleExpList": [],
"flag": true,
"status": 4,
"tel": "021-69777888/95554",
"update": 1539590590255
},
"order_goods_id_array": [
63
]
}
],
"order_goods": [//订单商品
{
"order_goods_id": 63,
"goods_id": 61,
"goods_name": "多规格测试商品",
"sku_id": 75,
"sku_name": "黑色 S ",
"price": "100.00",
"num": "1",
"refund_status": 3,
"spec": [
{
"spec_value_name": "黑色",
"spec_name": "颜色"
},
{
"spec_value_name": "S",
"spec_name": "尺码"
}
],
"pic_cover": "http://sit.vslai.com/upload/26/52/common/1536136534.jpg"
}
]
}
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
order_detail | array | 订单详情 |
order_id | int | 订单id |
order_no | string | 订单序号 |
shop_name | string | 店铺名 |
shop_id | int | 店铺id |
order_status | int | 订单状态 |
payment_type_name | string | 支付方式名称 |
promotion_status | bool | 优惠状态 true:享受了优惠(在售后的时候必须整单退货/退款,不能单个商品) false:没有 |
is_evaluate | int | 0:没有评价 1:已经评价 2:已经追评 |
order_money | string | 订单金额 |
goods_money | string | 商品原金额 |
shipping_fee | string | 订单应付邮费(已经算在order_money里面了) |
promotion_money | float | 所有优惠总额 |
receiver_name | string | 收货人名称 |
receiver_mobile | string | 收货人手机 |
receiver_province | string | 收货省份 |
receiver_city | string | 收货城市 |
receiver_district | string | 收货地区 |
receiver_address | string | 收货详细地址 |
buyer_message | string | 买家留言 |
member_operation | array | 卖家操作列表 |
no | string | 操作no |
name | string | 操作名称 |
no_delivery_id_array | array | 未发货order_goods_id |
goods_packet_list | array | 已发货内容 |
packet_name | string | 包裹名称 |
express_company_logo | string | 物流公司logo |
expTextName | string | 物流公司名称申通快递 |
mailNo | string | 物流编号 |
dataSize | int | 物流内容大小 |
data | array | 物流数据 |
time | string | 事件时间 |
context | string | 事件内容 |
order_goods | array | 订单商品列表 |
order_goods_id | int | 主键id |
goods_id | int | 商品id |
goods_name | string | 商品名称 |
sku_id | int | sku_id |
sku_name | string | sku名称 |
price | string | 商品价格 |
create_time | int | 订单创建时间 |
num | int | 购买数目 |
refund_status | int | 售后属性 1:买家申请退款 2:等待买家退货 3:等待卖家确认收货 4:等待卖家确认退款 5:退款已成功 -1:退款已拒绝 0:退款已关闭 -3:退款申请不通过 |
status_name | string | 售后属性名称 |
spec | array | 商品规格内容 |
order_refund_status | int | 值的意义和refund_status一样,只是将里面的数据提取出来,仅作用于promotion_status = true 时,显示订单需要对应的售后操作 |
备注:
- 更多返回错误代码请看首页的错误代码描述