ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  kpis: {
                      revenue: number;
                      expenses: number;
                      netResult: number;
                      treasury: number;
                  };
                  monthlyData: {
                      month: string;
                      revenue: number;
                      expenses: number;
                      profit: number;
                  }[];
                  accountDistribution: { name: string; value: number; color: string }[];
                  recentEntries: {
                      id: string;
                      number: string;
                      description: string;
                      amount: number;
                      status: string;
                  }[];
                  alerts: { type: string; message: string; count: number }[];
              },
          >,
      >

      /api/accounting/dashboard: get: tags: [Accounting, Dashboard] summary: Récupère les données du dashboard comptable description: Récupère les KPIs, graphiques et alertes pour le dashboard comptable responses: 200: description: Succès content: application/json: schema: type: object properties: kpis: type: object properties: revenue: type: number expenses: type: number netResult: type: number treasury: type: number monthlyData: type: array items: type: object properties: month: type: string revenue: type: number expenses: type: number profit: type: number accountDistribution: type: array items: type: object properties: name: type: string value: type: number color: type: string recentEntries: type: array items: type: object alerts: type: array items: type: object 401: description: Non autorisé 500: description: Erreur serveur