列出积分账本
OpenAPI 契约
- 方法
- GET
- 路径
/api/v1/billing/ledger- 认证
- jwtBearer (bearer)
- 响应状态
- 200 400 401 403 404 429 500
请求与响应 Schema
JSON
{
"requestBody": {},
"responses": {
"200": {
"description": "Ledger page",
"content": {
"application/json": {}
}
},
"400": {
"description": "Invalid request",
"content": {
"application/json": {
"$ref": "#/components/schemas/RequestError"
}
}
},
"401": {
"description": "Authentication required or invalid",
"content": {
"application/json": {
"$ref": "#/components/schemas/SecurityError"
}
}
},
"403": {
"description": "Authenticated but not permitted",
"content": {
"application/json": {
"$ref": "#/components/schemas/SecurityError"
}
}
},
"404": {
"description": "Ledger was not found",
"content": {
"application/json": {
"$ref": "#/components/schemas/ApiError"
}
}
},
"429": {
"description": "Rate limit exceeded",
"content": {
"application/json": {
"$ref": "#/components/schemas/SecurityError"
}
}
},
"500": {
"description": "Unexpected server error",
"content": {
"application/json": {
"$ref": "#/components/schemas/ApiError"
}
}
}
}
}GET /api/v1/billing/ledger 仅限 JWT,返回当前认证用户的 Spring 分页积分条目。page 默认为 0 且最小为 0;size 默认为 20,并限制在 1..100。每条记录包含总额和分桶变化、运行余额、原因、引用字段、备注及创建时间。
构建收费表现为 BUILD_HOLD 扣款,并在适用时以 BUILD_REFUND 返还;不存在单独的消费条目。
http
GET /api/v1/billing/ledger?page=0&size=20
Authorization: Bearer <access token>