ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • Parameters

      • request: NextRequest

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  clients: {
                      addresses: {
                          city: string
                          | null;
                          country: string | null;
                          id: string;
                          isDefault: boolean;
                          name: string | null;
                          postalCode: string | null;
                          state: string | null;
                          street: string | null;
                          type: string;
                      }[];
                      contacts: {
                          email: string
                          | null;
                          firstName: string;
                          id: string;
                          isDefault: boolean;
                          lastName: string;
                          mobile: string | null;
                          phone: string | null;
                          position: string | null;
                      }[];
                      currency: | { code: string; id: string; name: string; symbol: string }
                      | null;
                      legalIdentifiers: {
                          country: string | null;
                          id: string;
                          isActive: boolean;
                          type: string;
                          value: string;
                      }[];
                      createdAt: string;
                      updatedAt: string;
                  }[];
                  pagination: {
                      page: number;
                      limit: number;
                      total: number;
                      totalPages: number;
                  };
              },
          >,
      >

      /api/sales/clients: post: tags: [Sales, Clients] summary: Crée un nouveau client description: Crée un nouveau client requestBody: required: true content: application/json: schema: type: object responses: 201: description: Créé avec succès content: application/json: schema: type: object 400: description: Données invalides content: application/json: schema: $ref: '#/components/schemas/Error' 401: description: Non autorisé content: application/json: schema: $ref: '#/components/schemas/Error' 500: description: Erreur serveur content: application/json: schema: $ref: '#/components/schemas/Error'