This commit is contained in:
alorig
2025-12-05 14:12:06 +05:00
parent f3d67e9f4a
commit bbc70751db
3 changed files with 11 additions and 7 deletions

View File

@@ -261,8 +261,8 @@ export async function getCreditUsageLimits(): Promise<{
// ============================================================================
export async function getAdminBillingStats(): Promise<AdminBillingStats> {
// Admin stats live under the admin namespace
return fetchAPI('/v1/admin/billing/stats/');
// Use business billing admin stats endpoint (returns all dashboard metrics)
return fetchAPI('/v1/billing/admin/stats/');
}
export async function getAdminInvoices(params?: { status?: string; account_id?: number; search?: string }): Promise<{