GET /billing/statistics/{tenant_id}
Query the tenant's comprehensive billing statistics, including active user count, resource usage, etc. Optional app_id filter.
Billing Service `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
tenant_id |
path |
string |
Yes |
|
|
|
Tenant ID |
app_id |
query |
string |
No |
|
|
|
Application ID (optional) |
Responses
| Status | Description | Schema |
| 200 | Tenant statistics query successful | dto.TenantStatisticsDetailResponse |
| 400 | Invalid request parameters | object |
| 401 | Unauthorized | object |
| 500 | Internal server error | object |
Referenced Schemas
dto.TenantStatisticsDetailResponse
dto.TenantStatisticsResponse
| Field | Type | Required | Example | Constraints | Description |
active_users |
integer |
No |
45 |
|
|
app_id |
string |
No |
app_001 |
|
|
mrr |
number |
No |
99 |
|
|
retention_rate |
number |
No |
0.95 |
|
|
tenant_id |
string |
No |
tnt_xyz789 |
|
|
total_spend |
number |
No |
1188 |
|
|