菜单

订单列表

使用说明

获取团队订单列表,支持分页,每页最大500条

请求说明

POST /api/v1/team/order

请求参数

参数 类型 必需 说明
created_at_start string 订单创建开始时间,必须是 created_at_end 之前或相同的一个日期,符合 ISO 8601 日期时间格式(YYYY-MM-DDTHH:MM:SS±HH:MM),例如 2026-03-16T00:00:00+08:00,未传则默认最近7天(GMT+08:00)
created_at_end string 订单创建结束时间,必须是 created_at_start 之后或相同的一个日期,符合 ISO 8601 日期时间格式(YYYY-MM-DDTHH:MM:SS±HH:MM),例如 2026-03-16T00:00:00+08:00,未传则默认最近7天(GMT+08:00)
image_ids array 云手机ID
order_id string 订单号
status array 状态,1 待支付;2 取消订单;3 已支付;4 交易失败;5 交易完成;6 已失效;7 退款完成
type array 订单类型,1 购买;2 续费;3 充值;4 扣费;5 兑换;6 赠送; 7 退款; 8 转移; 9 接收
product_type array 产品类型,1 包月开机;2 云手机;3 余额;4 礼包;5 一键新机次数; 6 临时开机;7 云盘变更套餐;8 续费云盘套餐;9 技术服务费;10 云号码;11 AI 积分
sort_by string 排序字段,支持:created_at 创建时间;total 金额
order string 排序规则,asc 正序;desc 倒序
page int 请求页码,若不传则默认为第一页
pagesize int 每页数量,若不传则默认10条/页,目前支持的最大数量为500

请求示例

json 复制代码
{
    "page": 1,
    "pagesize": 200,
    "image_ids": [
        "xxx",
        "xxx"
    ],
    "type": [
        "2",
        "3"
    ],
    "product_type": [
        "2"
    ],
    "status": [
        "1",
        "2"
    ],
    "created_at_start": "2026-02-10T00:00:00+08:00",
    "created_at_end": "2026-03-18T23:59:59+08:00",
    "order_id": "xxxx",
    "sort_by": "created_at",
    "order": "asc"
}

返回示例

json 复制代码
{
    "code": 200,
    "data": {
        "list": [
            {
                "type": "新购",                       // 类型
                "order_id": "xxxx",                   // 订单号
                "product": "云手机",                  // 产品 
                "description": "xxxx",                // 描述
                "status": "待支付",                   // 状态
                "total": "-$21.91",                   // 金额
                "created_at": "2026-02-12T11:34:55+08:00",  // 创建时间
                "expired_at": "2026-02-12T12:04:55+08:00",  // 失效时间,为空时表示订单处于非“待支付”状态
                "expired_seconds": 1795    // 订单待支付的剩余秒数
            },
            {
                "type": "新购",
                "order_id": "xxxx",
                "product": "云手机", 
                "description": "xxxx", 
                "status": "交易完成",
                "total": "-$0.80", 
                "created_at": "2026-02-13T14:09:55+08:00",
                "expired_at": "",
                "expired_seconds": 0 
            },
            {
                "type": "新购",
                "order_id": "xxx",
                "product": "云手机",
                "description": "",
                "status": "已失效",
                "total": "-$21.91",
                "created_at": "2026-03-10T16:09:55+08:00",
                "expired_at": "",
                "expired_seconds": 0
            },
        ],
        "page": 1,
        "pagesize": 200,
        "total": 2,
        "total_page": 1
    },
    "message": "Success"
}
上一个
团队管理
下一个
开发模块插件
最近修改: 2026-03-18Powered by