# 订单列表
>[danger]接口认证:**需要认证**
##### 响应说明
| 字段名 | 字段类型 | 字段说明 |
| --- | --- | --- |
| id | int | 订单id |
| order_sn | string | 订单单号 |
| goods_amount | int | 商品总数量 |
| pay_fee | string | 商品价格 |
| shipping_fee | string | 快递价格 |
| add_time | string | 下单时间 |
| pay_time | string | 付款时间 |
| shipping_time | string | 发货时间 |
| order_note | string | 订单备注 |
| order_status | int | 订单状态 |
| pay_status | int | 支付状态,见下面 |
| back_status | int | 退款状态,见下面 |
| consignee | string | 收货人 |
| full_address | string | 完整的收货地址 |
| mobile | string | 收货电话 |
| order_status_trans | string | 转化好的订单状态 |
| order_goods | array[object] | 订单里的商品 |
| order_goods.id | int | 订单商品的id |
| order_goods.order_id | int | 订单的id |
| order_goods.goods_id | int | 订单的商品id |
| order_goods.goods_sku_ref_id| int | 订单的商品的sku_id |
| order_goods.goods_name| string | 商品的名字 |
| order_goods.sku_name| string | 商品的规格 |
| order_goods.full_name| string | 商品的完整名字 |
| order_goods.goods_number| int | 商品的数量 |
| order_goods.goods_price_ori| string | 商品的原价 |
| order_goods.goods_price| string | 商品付款的真实价格 |
| order_goods.goods_image| string | 商品图片 |
| order_goods.shipping_price| string | 快递费用|
## 支付状态
~~~
public const PAY_STATUS_MAP_TRANS = [
0 => '待支付',
1 => '已支付',
2 => '已取消',
];
~~~
## 退款状态
~~~
public const STATUS_MAP_TRANS = [
0 => '无退款操作',
1 => '退款中',
2 => '退款成功',
3 => '退款失败',
];
~~~
## 订单状态
~~~
public const ORDER_STATUS_MAP_TRANS = [
0 => '待付款', // 代表买家下单了但是还没有付款。触发条件:下单
1 => '待发货', // 代表买家付款了卖家还没有发货。触发条件:付款
2 => '已发货', // 代表卖家已经发货并寄出商品了。触发条件:发货
3 => '已完成', // 代表买家已经确认收到货了。触发条件:确认收货
4 => '已关闭', // 代表订单过期了买家也没付款、或者卖家关闭了订单。触发条件:关闭订单
5 => '退款中', // 触发条件:申请退款
6 => '失败', // 触发条件:物理信息未签收
];
~~~
## 示例
~~~[api]
get:/order/list
page=1#页数
per_page=20#每页数量
status=0#订单状态,不传或传""为所有
kwd#搜索关键字,支持订单号完整搜索和商品名模糊搜索
<<<
success
{
"code": 200,
"msg": "成功",
"data": {
"has_more": false,
"list": [
{
"id": 28,
"order_sn": "20220214151636670",
"user_id": 20,
"goods_amount": 3,
"pay_fee": "160.00",
"shipping_fee": "0.00",
"add_time": "2022-02-14 15:16:36",
"pay_time": "",
"shipping_time": "",
"order_note": "",
"order_status": 3,
"total": "160.00",
"consignee": "收货人",
"full_address": "河北省 石家庄市 井陉矿区 我觉得剧情内一个小时换一个合集比较好,",
"mobile": "13888120000",
"pay_status": 0,
"pay_type": "",
"back_status": 0,
"order_goods": [
{
"id": 31,
"order_id": 28,
"goods_id": 28,
"goods_sku_ref_id": 38,
"goods_name": "批发-容声全自动黑茶普洱茶煮茶器-新",
"sku_name": "s 黑",
"full_name": "批发-容声全自动黑茶普洱茶煮茶器-新 s 黑",
"goods_number": 2,
"goods_price_ori": "50.00",
"goods_price": "50.00",
"goods_image": "http://noobcoder.oss-cn-hangzhou.aliyuncs.com/letao/20220110/goods_image-61dba2ad7b67f.jpg",
"shipping_price": "0.00",
"activity_type": 3
},
{
"id": 32,
"order_id": 28,
"goods_id": 28,
"goods_sku_ref_id": 39,
"goods_name": "批发-容声全自动黑茶普洱茶煮茶器-新",
"sku_name": "m 黑",
"full_name": "批发-容声全自动黑茶普洱茶煮茶器-新 m 黑",
"goods_number": 1,
"goods_price_ori": "60.00",
"goods_price": "60.00",
"goods_image": "http://noobcoder.oss-cn-hangzhou.aliyuncs.com/letao/20220110/goods_image-61dba2ad7b67f.jpg",
"shipping_price": "0.00",
"activity_type": 3
}
],
"order_status_trans": "已完成"
},
{
"id": 21,
"order_sn": "202201171155417004",
"user_id": 20,
"goods_amount": 5,
"pay_fee": "162.00",
"shipping_fee": "31.00",
"add_time": "2022-01-17 11:55:41",
"pay_time": "",
"shipping_time": "",
"order_note": "备注备注",
"order_status": 3,
"total": "193.00",
"consignee": "收货人",
"full_address": "河北省 石家庄市 井陉矿区 我觉得剧情内一个小时换一个合集比较好,",
"mobile": "13245124587",
"pay_status": 0,
"pay_type": "",
"back_status": 0,
"order_goods": [
{
"id": 19,
"order_id": 21,
"goods_id": 22,
"goods_sku_ref_id": 19,
"goods_name": "0元-爱啡仕蓝山三合一速溶咖啡粉",
"sku_name": "",
"full_name": "0元-爱啡仕蓝山三合一速溶咖啡粉",
"goods_number": 2,
"goods_price_ori": "0.00",
"goods_price": "0.00",
"goods_image": "http://noobcoder.oss-cn-hangzhou.aliyuncs.com/letao/20220110/goods_image-61db97c188010.jpg",
"shipping_price": "11.00"
},
{
"id": 20,
"order_id": 21,
"goods_id": 30,
"goods_sku_ref_id": 34,
"goods_name": "普通-衣服-规格",
"sku_name": "m 白",
"full_name": "普通-衣服-规格 m 白",
"goods_number": 3,
"goods_price_ori": "54.00",
"goods_price": "54.00",
"goods_image": "http://noobcoder.oss-cn-hangzhou.aliyuncs.com/letao/20220112/goods_image-61de4c71a8374.png",
"shipping_price": "20.00"
}
],
"order_status_trans": "已完成"
},
{
"id": 17,
"order_sn": "202201171110252565",
"user_id": 20,
"goods_amount": 5,
"pay_fee": "162.00",
"shipping_fee": "31.00",
"add_time": "2022-01-17 11:10:25",
"pay_time": "",
"shipping_time": "",
"order_note": "备注备注",
"order_status": 3,
"total": "193.00",
"consignee": "收货人",
"full_address": "河北省 石家庄市 井陉矿区 我觉得剧情内一个小时换一个合集比较好,",
"mobile": "13245124587",
"pay_status": 0,
"pay_type": "",
"back_status": 0,
"order_goods": [
{
"id": 13,
"order_id": 17,
"goods_id": 22,
"goods_sku_ref_id": 19,
"goods_name": "0元-爱啡仕蓝山三合一速溶咖啡粉",
"sku_name": "",
"full_name": "0元-爱啡仕蓝山三合一速溶咖啡粉",
"goods_number": 2,
"goods_price_ori": "0.00",
"goods_price": "0.00",
"goods_image": "http://noobcoder.oss-cn-hangzhou.aliyuncs.com/letao/20220110/goods_image-61db97c188010.jpg",
"shipping_price": "11.00"
},
{
"id": 14,
"order_id": 17,
"goods_id": 30,
"goods_sku_ref_id": 34,
"goods_name": "普通-衣服-规格",
"sku_name": "m 白",
"full_name": "普通-衣服-规格 m 白",
"goods_number": 3,
"goods_price_ori": "54.00",
"goods_price": "54.00",
"goods_image": "http://noobcoder.oss-cn-hangzhou.aliyuncs.com/letao/20220112/goods_image-61de4c71a8374.png",
"shipping_price": "20.00"
}
],
"order_status_trans": "已完成"
},
{
"id": 16,
"order_sn": "202201151506291342",
"user_id": 20,
"goods_amount": 2,
"pay_fee": "0.00",
"shipping_fee": "0.00",
"add_time": "2022-01-15 15:06:29",
"pay_time": "",
"shipping_time": "",
"order_note": "",
"order_status": 3,
"total": "0.00",
"consignee": "收货人",
"full_address": "河北省 石家庄市 井陉矿区 我觉得剧情内一个小时换一个合集比较好,",
"mobile": "13245124587",
"pay_status": 0,
"pay_type": "",
"back_status": 0,
"order_goods": [
{
"id": 12,
"order_id": 16,
"goods_id": 22,
"goods_sku_ref_id": 19,
"goods_name": "0元-爱啡仕蓝山三合一速溶咖啡粉",
"sku_name": "",
"full_name": "0元-爱啡仕蓝山三合一速溶咖啡粉",
"goods_number": 2,
"goods_price_ori": "0.00",
"goods_price": "0.00",
"goods_image": "http://noobcoder.oss-cn-hangzhou.aliyuncs.com/letao/20220110/goods_image-61db97c188010.jpg",
"shipping_price": "0.00"
}
],
"order_status_trans": "已完成"
},
{
"id": 15,
"order_sn": "202201151457004846",
"user_id": 20,
"goods_amount": 6,
"pay_fee": "15,047.00",
"shipping_fee": "0.00",
"add_time": "2022-01-15 14:57:00",
"pay_time": "",
"shipping_time": "",
"order_note": "",
"order_status": 3,
"total": "15,047.00",
"consignee": "收货人",
"full_address": "河北省 石家庄市 井陉矿区 我觉得剧情内一个小时换一个合集比较好,",
"mobile": "13245124587",
"pay_status": 0,
"pay_type": "",
"back_status": 0,
"order_goods": [
{
"id": 9,
"order_id": 15,
"goods_id": 28,
"goods_sku_ref_id": 38,
"goods_name": "批发-容声全自动黑茶普洱茶煮茶器-新",
"sku_name": "s 黑",
"full_name": "批发-容声全自动黑茶普洱茶煮茶器-新 s 黑",
"goods_number": 1,
"goods_price_ori": "50.00",
"goods_price": "50.00",
"goods_image": "http://noobcoder.oss-cn-hangzhou.aliyuncs.com/letao/20220110/goods_image-61dba2ad7b67f.jpg",
"shipping_price": "0.00"
},
{
"id": 10,
"order_id": 15,
"goods_id": 22,
"goods_sku_ref_id": 19,
"goods_name": "0元-爱啡仕蓝山三合一速溶咖啡粉",
"sku_name": "",
"full_name": "0元-爱啡仕蓝山三合一速溶咖啡粉",
"goods_number": 2,
"goods_price_ori": "0.00",
"goods_price": "0.00",
"goods_image": "http://noobcoder.oss-cn-hangzhou.aliyuncs.com/letao/20220110/goods_image-61db97c188010.jpg",
"shipping_price": "0.00"
},
{
"id": 11,
"order_id": 15,
"goods_id": 21,
"goods_sku_ref_id": 18,
"goods_name": "黄金-五谷丰登紫砂家用功夫茶具套装",
"sku_name": "",
"full_name": "黄金-五谷丰登紫砂家用功夫茶具套装",
"goods_number": 3,
"goods_price_ori": "4,999.00",
"goods_price": "4,999.00",
"goods_image": "http://noobcoder.oss-cn-hangzhou.aliyuncs.com/letao/20220110/goods_image-61db93bc60032.jpg",
"shipping_price": "0.00"
}
],
"order_status_trans": "已完成"
}
]
}
}
<<<
~~~
## 可能出现的错误码
> 不包含常见的请求方式错误,参数丢失,用户权限验证失败
- 乐淘呗呗
- 说明
- 服务器环境
- 接口响应格式规范
- 接口认证
- 刷新token
- 错误码
- 短信
- 发送短信验证码
- 验证短信验证码
- 注册/登录相关
- 注册
- 登录
- 登出
- 修改密码
- 商品列表
- 主页获取随机商品
- 商品分类商品列表
- 品质生活商品列表
- 限时秒杀(活动专区)
- 0元体验
- 团购商品列表
- 批发商品(幸运抢批)
- 搜索商品
- 商品通用
- 商品分类
- 商品详情
- 轮播图
- 用户
- 用户地址
- 用户地址列表
- 修改默认地址
- 保存地址
- 获取一个地址
- 获取默认地址
- 删除一个地址
- 设置
- 修改头像
- 修改手机号
- 实名认证
- 获取实名认证信息
- 保存实名认证信息
- 获取银行卡信息
- 保存银行卡信息
- 修改昵称
- 修改交易密码
- 修改密码
- 获取用户信息
- 获取邀请二维码
- 订单
- 检查订单是否可以下单
- 计算订单价格
- 创建订单
- 获取订单支付信息
- 普通订单列表
- 订单列表
- 取消订单
- 订单详情
- 物流信息
- 删除订单
- 确认收货
- 寄售订单列表
- 寄售订单列表
- 寄售订单状态列表
- 查询订单状态
- 用户前端取消支付组件通知服务端
- 微信支付创建预支付订单信息
- 其他
- 获取省市区数据
- 获取银行和代码信息
- 个人中心
- 账户余额
- 申请提现
- 批发额度
- 养老积分
- 养老积分释放(未完成)
- 养老积分转换提现配额
- 养老积分转移给其他用户
- 提现配额
- 我的邀请
- 社群流水
- 系统设置
- 获取全部系统设置(不推荐)
- 关于我们
- 注册协议
- 邀请海报设置
- 热门搜索
- 团购拼团信息
- demo