GET /admin/billing/credit-balance/{tenant_id}

与用户面 /billing/credit-balance/{tenant_id} 同体、同租户范围;供控制台在 admin 平面读取。

计费服务 `bearerAuth` application/json

请求参数

名称位置类型必填默认值示例约束描述
tenant_id path string 是 租户ID

响应

状态描述Schema
200信用余额查询成功service-billing/internal/handler/dto.CreditBalanceDetailResponse
400请求参数错误object
401未授权访问object
403无权限操作object
500服务器内部错误object

引用的 Schema

service-billing/internal/handler/dto.CreditBalanceDetailResponse

字段类型必填示例约束描述
code integer 否
data service-billing/internal/handler/dto.CreditBalanceResponse 否
message string 否
timestamp string 否

service-billing/internal/handler/dto.CreditBalanceResponse

字段类型必填示例约束描述
balance number 否 150
currency string 否 CNY
tenant_id string 否 tnt_xyz789
updated_at string 否 2026-05-12T10:00:00Z