On this page
订单列表
接口URL
请求方式
GET
Content-Type
application/x-www-form-urlencoded
请求Header参数
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
token | 2f...5e | String | 是 | 用户token |
请求Query参数
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
tab | all | String | 是 | 订单类型:all全部,nopay待支付,noship待发货,shiped待收货,received已收货,finish已完成,closed已关闭,refunding退款中 |
no | 订单号 | String | 否 | 订单号 |
starttime | 开始时间 | String | 否 | 开始时间,yyyy-mm-dd |
endtime | 结束时间 | String | 否 | 结束时间,yyyy-mm-dd |
name | 收货人 | String | 否 | 收货人 |
phone | 收货人手机号 | String | 否 | 收货人手机号 |
路径变量
参数名 | 示例值 | 参数描述 |
---|---|---|
page | 1 | 分页页码 |
成功响应示例
json5
{
"msg": "ok",
"data": {
"list": [
{
"id": 608,
"no": "202...92",
"user_id": 4,
"address": {
"id": 156,
"user_id": 4,
"province": "北京市",
"city": "市辖区",
"district": "西城区",
"address": "...",
"zip": 2123000,
"name": "aaa",
"phone": "13100010001",
"last_used_time": 1639064591,
"create_time": "2021-10-19 10:16:49",
"update_time": "2021-12-09 23:43:11"
},
"total_price": "0.10",
"remark": "",
"paid_time": 1639064591,
"payment_method": "alipay",
"payment_no": "2019122622001446221403706833",
"refund_status": "pending",
"refund_no": null,
"closed": 0,
"ship_status": "pending",
"ship_data": null,
"extra": null,
"create_time": "2021-12-09 23:43:11",
"update_time": "2021-12-09 23:43:11",
"reviewed": 0,
"coupon_user_id": 0,
"order_items": [
{
"id": 750,
"order_id": 608,
"shop_id": 71,
"goods_id": 25,
"num": 1,
"price": "0.10",
"skus_type": 1,
"goods_item": {
"id": 25,
"title": "小米...枕套",
"cover": "http://...png",
"sku_type": 1
},
"goods_skus": {
"id": 71,
"skus": {
"0": {
"id": 70,
"goods_skus_card_id": 36,
"name": "套餐",
"value": "标准套餐",
"order": 50,
"text": "标准套餐",
"color": "#FFFFFF",
"image": "/favicon.ico"
},
// ...
}
}
}
],
"user": {
"id": 4,
"nickname": "...",
"username": "user2",
"avatar": "http://...png",
}
},
// ...
],
"totalCount": 555
}
}