订单列表
GET
/user/orders
请求参数
Query 参数
page
integer
页码
per_page
integer
每页展示数量
q
string
筛选关键字
Header 参数
Accept
string
可选
默认值:
application/json
Authorization
string
可选
默认值:
Bearer {{token}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:8000/api/v2/user/orders?page&per_page&q' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{token}}'
返回响应
🟢200成功
application/json
Body
status
string
必需
message
string
必需
data
object
必需
data
array [object {10}]
必需
links
object
必需
meta
object
必需
time
integer
必需
示例
{
"status": "success",
"message": "successful",
"data": {
"data": [
{
"trade_no": "2024101416111591729_002",
"amount": 0.01,
"snapshot": {
"name": "测试套餐",
"intro": "test",
"features": [
"不限上传次数",
"无限空间",
"每月100G流量",
"全IPLC专线,不限速",
"原生IP解锁流媒体"
],
"badge": "促销"
},
"product": {
"name": "月卡",
"duration": 1,
"price": 0.01
},
"pay_method": "",
"status": "unpaid",
"paid_at": null,
"canceled_at": null,
"created_at": "2024-10-14T08:11:15.000000Z",
"coupon": null
},
{
"trade_no": "2024101416131041093_002",
"amount": 0.01,
"snapshot": {
"name": "测试套餐",
"intro": "test",
"features": [
"不限上传次数",
"无限空间",
"每月100G流量",
"全IPLC专线,不限速",
"原生IP解锁流媒体"
],
"badge": "促销"
},
"product": {
"name": "月卡",
"duration": 1,
"price": 0.01
},
"pay_method": "",
"status": "unpaid",
"paid_at": null,
"canceled_at": null,
"created_at": "2024-10-14T08:13:10.000000Z",
"coupon": null
},
{
"trade_no": "2024101416134855719_002",
"amount": 0.01,
"snapshot": {
"name": "测试套餐",
"intro": "test",
"features": [
"不限上传次数",
"无限空间",
"每月100G流量",
"全IPLC专线,不限速",
"原生IP解锁流媒体"
],
"badge": "促销"
},
"product": {
"name": "月卡",
"duration": 1,
"price": 0.01
},
"pay_method": "",
"status": "unpaid",
"paid_at": null,
"canceled_at": null,
"created_at": "2024-10-14T08:13:48.000000Z",
"coupon": null
},
{
"trade_no": "2024101416392510913_002",
"amount": 0.01,
"snapshot": {
"name": "测试套餐",
"intro": "test",
"features": [
"不限上传次数",
"无限空间",
"每月100G流量",
"全IPLC专线,不限速",
"原生IP解锁流媒体"
],
"badge": "促销"
},
"product": {
"name": "月卡",
"duration": 1,
"price": 0.01
},
"pay_method": "",
"status": "unpaid",
"paid_at": null,
"canceled_at": null,
"created_at": "2024-10-14T08:39:25.000000Z",
"coupon": null
},
{
"trade_no": "2024101416403328604_002",
"amount": 0.01,
"snapshot": {
"name": "测试套餐",
"intro": "test",
"features": [
"不限上传次数",
"无限空间",
"每月100G流量",
"全IPLC专线,不限速",
"原生IP解锁流媒体"
],
"badge": "促销"
},
"product": {
"name": "月卡",
"duration": 1,
"price": 0.01
},
"pay_method": "",
"status": "unpaid",
"paid_at": null,
"canceled_at": null,
"created_at": "2024-10-14T08:40:33.000000Z",
"coupon": null
},
{
"trade_no": "2024101416420302064_002",
"amount": 0.01,
"snapshot": {
"name": "测试套餐",
"intro": "test",
"features": [
"不限上传次数",
"无限空间",
"每月100G流量",
"全IPLC专线,不限速",
"原生IP解锁流媒体"
],
"badge": "促销"
},
"product": {
"name": "月卡",
"duration": 1,
"price": 0.01
},
"pay_method": "",
"status": "unpaid",
"paid_at": null,
"canceled_at": null,
"created_at": "2024-10-14T08:42:03.000000Z",
"coupon": null
},
{
"trade_no": "2024101416422817810_002",
"amount": 0.01,
"snapshot": {
"name": "测试套餐",
"intro": "test",
"features": [
"不限上传次数",
"无限空间",
"每月100G流量",
"全IPLC专线,不限速",
"原生IP解锁流媒体"
],
"badge": "促销"
},
"product": {
"name": "月卡",
"duration": 1,
"price": 0.01
},
"pay_method": "",
"status": "unpaid",
"paid_at": null,
"canceled_at": null,
"created_at": "2024-10-14T08:42:28.000000Z",
"coupon": null
},
{
"trade_no": "2024101416424962155_002",
"amount": 0.01,
"snapshot": {
"name": "测试套餐",
"intro": "test",
"features": [
"不限上传次数",
"无限空间",
"每月100G流量",
"全IPLC专线,不限速",
"原生IP解锁流媒体"
],
"badge": "促销"
},
"product": {
"name": "月卡",
"duration": 1,
"price": 0.01
},
"pay_method": "",
"status": "unpaid",
"paid_at": null,
"canceled_at": null,
"created_at": "2024-10-14T08:42:49.000000Z",
"coupon": null
},
{
"trade_no": "2024101510523786297_002",
"amount": 0.01,
"snapshot": {
"name": "测试套餐",
"intro": "test",
"features": [
"不限上传次数",
"无限空间",
"每月100G流量",
"全IPLC专线,不限速",
"原生IP解锁流媒体"
],
"badge": "促销"
},
"product": {
"name": "月卡",
"duration": 1,
"price": 0.01
},
"pay_method": "",
"status": "unpaid",
"paid_at": null,
"canceled_at": null,
"created_at": "2024-10-15T02:52:37.000000Z",
"coupon": null
},
{
"trade_no": "2024101510585067862_002",
"amount": 0.01,
"snapshot": {
"name": "测试套餐",
"intro": "test",
"features": [
"不限上传次数",
"无限空间",
"每月100G流量",
"全IPLC专线,不限速",
"原生IP解锁流媒体"
],
"badge": "促销"
},
"product": {
"name": "月卡",
"duration": 1,
"price": 0.01
},
"pay_method": "",
"status": "unpaid",
"paid_at": null,
"canceled_at": null,
"created_at": "2024-10-15T02:58:50.000000Z",
"coupon": null
},
{
"trade_no": "2024101511001280950_002",
"amount": 0.01,
"snapshot": {
"name": "测试套餐",
"intro": "test",
"features": [
"不限上传次数",
"无限空间",
"每月100G流量",
"全IPLC专线,不限速",
"原生IP解锁流媒体"
],
"badge": "促销"
},
"product": {
"name": "月卡",
"duration": 1,
"price": 0.01
},
"pay_method": "",
"status": "cancelled",
"paid_at": null,
"canceled_at": "2024-10-17T02:34:15.000000Z",
"created_at": "2024-10-15T03:00:12.000000Z",
"coupon": null
},
{
"trade_no": "2024101511005972243_002",
"amount": 0.01,
"snapshot": {
"name": "测试套餐",
"intro": "test",
"features": [
"不限上传次数",
"无限空间",
"每月100G流量",
"全IPLC专线,不限速",
"原生IP解锁流媒体"
],
"badge": "促销"
},
"product": {
"name": "月卡",
"duration": 1,
"price": 0.01
},
"pay_method": "",
"status": "cancelled",
"paid_at": null,
"canceled_at": "2024-10-17T02:34:12.000000Z",
"created_at": "2024-10-15T03:00:59.000000Z",
"coupon": null
},
{
"trade_no": "2024101513033419533_002",
"amount": 0.01,
"snapshot": {
"name": "测试套餐",
"intro": "test",
"features": [
"不限上传次数",
"无限空间",
"每月100G流量",
"全IPLC专线,不限速",
"原生IP解锁流媒体"
],
"badge": "促销"
},
"product": {
"name": "月卡",
"duration": 1,
"price": 0.01
},
"pay_method": "",
"status": "paid",
"paid_at": null,
"canceled_at": "2024-10-15T09:15:15.000000Z",
"created_at": "2024-10-15T05:03:34.000000Z",
"coupon": null
},
{
"trade_no": "2024101709465316239_002",
"amount": 0.01,
"snapshot": {
"name": "测试套餐",
"intro": "test",
"features": [
"不限上传次数",
"无限空间",
"每月100G流量",
"全IPLC专线,不限速",
"原生IP解锁流媒体"
],
"badge": "促销"
},
"product": {
"name": "月卡",
"duration": 1,
"price": 0.01
},
"pay_method": "",
"status": "cancelled",
"paid_at": null,
"canceled_at": "2024-10-17T02:32:05.000000Z",
"created_at": "2024-10-17T01:46:53.000000Z",
"coupon": null
},
{
"trade_no": "2024101709550281532_002",
"amount": 0.01,
"snapshot": {
"name": "测试套餐",
"intro": "test",
"features": [
"不限上传次数",
"无限空间",
"每月100G流量",
"全IPLC专线,不限速",
"原生IP解锁流媒体"
],
"badge": "促销"
},
"product": {
"name": "月卡",
"duration": 1,
"price": 0.01
},
"pay_method": "",
"status": "cancelled",
"paid_at": null,
"canceled_at": "2024-10-17T02:31:05.000000Z",
"created_at": "2024-10-17T01:55:02.000000Z",
"coupon": null
}
],
"links": {
"first": "http://127.0.0.1:8000/api/v2/user/orders?page=1",
"last": "http://127.0.0.1:8000/api/v2/user/orders?page=2",
"prev": null,
"next": "http://127.0.0.1:8000/api/v2/user/orders?page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 2,
"links": [
{
"url": null,
"label": "« 上一页",
"active": false
},
{
"url": "http://127.0.0.1:8000/api/v2/user/orders?page=1",
"label": "1",
"active": true
},
{
"url": "http://127.0.0.1:8000/api/v2/user/orders?page=2",
"label": "2",
"active": false
},
{
"url": "http://127.0.0.1:8000/api/v2/user/orders?page=2",
"label": "下一页 »",
"active": false
}
],
"path": "http://127.0.0.1:8000/api/v2/user/orders",
"per_page": 15,
"to": 15,
"total": 16
}
},
"time": 1730873512
}
修改于 2024-11-26 08:47:54