请求头

请求头必填说明
AuthorizationBearer YOUR_ACCESS_TOKEN,账号访问令牌

接口:GET /api/user/topup/self 分页查询当前用户的充值订单记录(含待支付、已完成等状态)。

查询参数

参数类型必填说明
pageinteger页码,从 1 开始
page_sizeinteger每页条数
keywordstring按订单号(trade_no)模糊搜索
curl "https://top.qingyuntop.ai/dashboard//api/user/topup/self?page=1&page_size=10" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Response

{
  "success": true,
  "message": "",
  "data": {
    "items": [
      {
        "id": 1024,
        "user_id": 42,
        "amount": 100,
        "money": 95.00,
        "trade_no": "USR42NOa1b2c31718000000",
        "payment_method": "alipay",
        "payment_provider": "epay",
        "status": "success",
        "create_time": 1718000000,
        "complete_time": 1718000060
      }
    ],
    "total": 1,
    "page": 1,
    "page_size": 10
  }
}
字段类型说明
data.itemsarray充值订单列表
amountinteger充值额度数量
moneynumber实付金额
trade_nostring商户订单号
payment_methodstring支付方式标识(alipay / wxpay / stripe …)
payment_providerstring支付渠道(epay / stripe / creem …)
statusstring订单状态:pending 待支付 / success 已完成
create_timeinteger创建时间(Unix 秒)
complete_timeinteger完成时间(Unix 秒),未完成为 0
data.total / page / page_sizeinteger分页信息