简要描述:
- 订单列表接口
请求URL:
POST/wapapi/order/orderlist
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
page_index | 是 | int | 页码 |
page_size | 否 | int | 每页数目 |
order_status | 否 | int | 订单状态 |
search_text | 否 | string | 搜索关键字 |
返回示例:
正确时返回:
{
"code": 1,
"message": "获取成功",
"data": {
"order_list": [
{
"order_real_money": "0.008749ETH + ¥ 90.00"
"order_id": 9,// 订单id
"order_no": "201809100000005",// 订单编号
"out_order_no": "153656897595111000",// 外部交易号
"shop_id": 0,// 店铺id
"shop_name": "",//店铺名称
"order_money": "76.81",
"order_point": 0,//订单所需积分
"order_status": 0,
"order_type": 7,//订单类型 1为普通2成为微店店主3为微店店主续费4为微店店主升级,5拼团订单,6秒杀订单,7预售订单,8砍价订单,9奖品订单,10兑换订单,11微店订单
"already_money": 20,//已付金额
"final_money": 80,//尾款金额
"first_money":20,//定金
"presell_status":0-未付定金 1-已付定金 2-已付尾款
"can_presell_pay": 0,//是否可以付尾款
"can_presell_pay_reason": "预售订单付尾款时间:1970-01-01 08:00:00-1970-01-01 08:00:00",
"pay_start_time": "1544457600", //尾款支付开始时间
"pay_end_time": "1545407999", //尾款支付结束时间
"status_name": "待付款",
"pay_type_name": "在线支付",
"is_evaluate": 0,
"promotion_status":true
"order_refund_status":1,
"unrefund":1,//是否能退款
"timelimit":'25分钟',//距离拼团结束还有多久
"verification_code": 19208296,
"verification_qrcode": "upload/54/0/verification_code/verification_code_19208296.png",
"store_id": 26,
"card_store_id":0,
"member_operation": [ // 订单会员操作
{
"no": "pay",
"name": "去支付",
"color": "#F15050"
},
{
"no": "close",
"name": "关闭订单",
"color": "#999999"
},
{
"no": "detail",
"name": "订单详情"
},
{
"no": "refund_detail",
"name": "售后情况"
},
{
"no": "refund",
"name": "退款"
},
{
"no": "return",
"name": "退货/退款"
}
{
"no": "last_money",
"name": "去付尾款"
}
],
"order_item_list": [
{
"order_goods_id": 18,
"sku_id": 64,
"goods_id":60,
"goods_name": "多个sku的商品",
"price": "100.00", //商品单价
"goods_point" : 0,//积分兑换商品所需积分
"num": "1",
"pic_cover": "/upload/26/common/1535960291.jpg",
"spec": [
{
"spec_value_name": "白色",
"spec_name": "颜色"
},
{
"spec_value_name": "L",
"spec_name": "尺码"
}
],
"refund_operation": "",
"status_name": "",
"member_operation": [ // 订单商品会员操作
{
"no": "detail",
"name": "售后情况"
},
{
"no": "refund",
"name": "退款"
},
{
"no": "return",
"name": "退货/退款"
}
]
},
{
"order_goods_id": 19,
}
],
"pay_money": 100, //尾款支付金额,
"presell_id": 10 //预售ID,退款时需要带上
},
{
"order_id": 8,
"order_status": 4,
"status_name": "已完成",
"pay_type_name": "在线支付",
"member_operation": [
{
"no": "logistics",
"color": "#ccc",
"name": "查看物流"
},
{
"no": "detail",
"name": "订单详情"
}
]
},
{
"order_id": 5,
"order_status": 3,
"status_name": "已收货",
"pay_type_name": "在线支付",
"member_operation": [
{
"no": "logistics",
"color": "#ccc",
"name": "查看物流"
},
{
"no": "detail",
"name": "订单详情"
}
{
"no": "evaluation",
"name": "评价"
}
{
"no": "buy_again",
"name": "再次购买"
}
]
},
{
"order_id": 4,
"order_status": 2,
"status_name": "已发货",
"pay_type_name": "在线支付",
"member_operation": [
{
"no": "getdelivery",
"name": "确认收货",
"color": "#FF6600"
},
{
"no": "logistics",
"color": "#ccc",
"name": "查看物流"
},
{
"no": "detail",
"name": "订单详情"
}
]
},
{
"order_id": 3,
"order_status": 1,
"status_name": "待发货",
"pay_type_name": "在线支付",
"member_operation": [
{
"no": "detail",
"name": "订单详情"
}
]
},
{
"order_id": 2,
"order_status": 5,
"status_name": "已关闭",
"pay_type_name": "在线支付",
"member_operation": [
{
"no": "delete_order",
"color": "#ff0000",
"name": "删除订单"
},
{
"no": "detail",
"name": "订单详情"
}
]
"order_item_list": [
{
"order_goods_id": 65,
"sku_id": 75,
"goods_name": "多规格测试商品",
"price": "100.00",
"goods_point" : 0,
"num": "1",
"pic_cover": "upload/26/52/common/1536136534.jpg",
"spec": [
{
"spec_value_name": "黑色",
"spec_name": "颜色"
},
{
"spec_value_name": "S",
"spec_name": "尺码"
}
],
"status_name": "等待卖家确认退款",
"refund_status": 4
}
]
}
],
"page_count": 1,
"total_count": 7
}
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
order_list | array | 订单列表 |
order_id | int | 订单id |
order_no | string | 订单序列号 |
out_order_no | string | 交易单号 |
shop_id | int | 店铺id |
shop_name | string | 店铺名称 |
order_status | int | 订单状态 0:待付款(没有售后操作) 1:待发货(申请退款) 2:已发货(申请退货退款) 3:已收货(申请退货退款) 4:已完成 5:已关闭 -1:售后中 |
status_name | string | 订单状态说明 |
order_money | string | 订单金额 |
pay_type_name | string | 支付类型名称 |
is_evaluate | int | 是否评价 0:否 1:已评价 2:已追评(已经不能再评价了) |
promotion_status | bool | 优惠状态 true:享受了优惠(在售后的时候必须整单退货/退款,不能单个商品) false:没有,售后针对单个商品 |
member_operation | array | 订单操作 |
no | string | 操作no |
name | string | 操作名称 |
order_item_list | array | 订单商品列表 |
order_goods_id | int | 订单商品id |
sku_id | int | 商品sku_id |
goods_name | string | 商品名称 |
price | string | 商品原价 |
num | string | 购买数目 |
pic_cover | string | 商品图片 |
spec | array | 商品规格 |
spec_value_name | string | 规格值 |
spec_name | string | 规格属性 |
refund_status | int | 售后属性 1:买家申请退款 2:等待买家退货 3:等待卖家确认收货 4:等待卖家确认退款 5:退款已成功 -1:退款已拒绝 0:退款已关闭(其余状态的显示售后情况) -3:退款申请不通过 |
status_name | string | 售后属性名称 |
order_refund_status | int | 值的意义和refund_status一样,只是将里面的数据提取出来,仅作用于promotion_status = true 时,显示订单需要对应的售后操作 |
unrefund | int | 是否能够退款,为1不能退款 |
timelimit | string | 距离拼团结束还有多久 |
store_id | int | 门店id |
verification_code | string | 核销码 |
verification_qrcode | string | 核销二维码 |
card_store_id | int | 消费卡使用门店id |
order_type | int | 订单类型 1为普通2成为微店店主3为微店店主续费4为微店店主升级,5拼团订单,6秒杀订单,7预售订单,8砍价订单,9奖品订单,10兑换订单,11微店订单 |
presell_status | int | 0-未付定金 1-已付定金 2-已付尾款 |
can_presell_pay | int | 是否可以付尾款 0-不可以 1-可以 |
can_presell_pay_reason | str | 预售订单付尾款时间:1970-01-01 08:00:00-1970-01-01 08:00:00", |
pay_start_time | int | 尾款支付开始时间 |
pay_end_time | int | 尾款支付结束时间 |
order_real_money | int | 订单金额 |