ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • POST(
          request: NextRequest,
      ): Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  client: {
                      code: string;
                      email: string
                      | null;
                      id: string;
                      name: string;
                      phone: string | null;
                  };
                  currency: | { code: string; id: string; name: string; symbol: string }
                  | null;
              } & {},
          >,
      >

      Parameters

      • request: NextRequest

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  client: {
                      code: string;
                      email: string
                      | null;
                      id: string;
                      name: string;
                      phone: string | null;
                  };
                  currency: | { code: string; id: string; name: string; symbol: string }
                  | null;
              } & {},
          >,
      >

      /api/accounting/client-accounts: post: tags: [Accounting, Client Accounts] summary: Crée un nouveau compte client description: Crée un nouveau compte client requestBody: required: true content: application/json: schema: type: object required: - clientId properties: clientId: type: string description: ID du client currencyId: type: string description: ID de la devise isActive: type: boolean description: Statut actif/inactif responses: 201: description: Compte client créé avec succès 400: description: Données invalides 401: description: Non autorisé 500: description: Erreur serveur