Skip to main content

GET /credits/history

返回当前认证用户的积分流水,包含购买、消耗与退款等。需要 JWT 访问令牌(会话鉴权)。
**第三方集成:**请改用 GET /credits/history/api 并以 API Key 鉴权。

查询参数

number
默认值:"20"
返回条数(最大 100)。
number
默认值:"0"
分页偏移(跳过的条数)。
string
按类型筛选:purchaseusagerefund

响应

array
流水对象数组。
number
符合条件的流水总数。
boolean
是否还有更多记录。

GET /credits/history/api

使用 API Key 返回积分流水,适合第三方集成。

认证

需要 API Key,在 Authorization 请求头中携带:

查询参数

/credits/history 相同。

响应

/credits/history 相同。