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

      • request: NextRequest

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  products: {
                      barcode: string
                      | null;
                      billingPolicy: string;
                      category: { code: string | null; id: string; name: string } | null;
                      categoryId: string | null;
                      client:
                          | {
                              code: string;
                              currency: { code: string; id: string; symbol: string }
                              | null;
                              id: string;
                              name: string;
                          }
                          | null;
                      clientId: string
                      | null;
                      clientProductCode: string | null;
                      code: string;
                      color: string | null;
                      conversionFactor: number;
                      cost: number;
                      costPerUnit: string | null;
                      createdAt: Date;
                      depth: number | null;
                      description: string | null;
                      files: {
                          category: string | null;
                          createdAt: Date;
                          filename: string;
                          id: string;
                          mimetype: string;
                          size: number;
                          url: string;
                      }[];
                      height: number
                      | null;
                      id: string;
                      imageKey: string | null;
                      imageUrl: string | null;
                      internalNotes: string | null;
                      internalReference: string | null;
                      isActive: boolean;
                      length: number | null;
                      minimumQuantity: number;
                      name: string;
                      prices: {
                          currency: { code: string; id: string; symbol: string } | null;
                          endDate: Date | null;
                          id: string;
                          notes: string | null;
                          quantity: number;
                          salesOffer:
                              | {
                                  id: string;
                                  limitedWarranty: boolean;
                                  number: string;
                                  seriesPriceMultiplier: (...)
                                  | (...);
                                  seriesToolPrice: number;
                                  seriesUnitPrice: (...) | (...);
                                  warrantyPeriod: number;
                              }
                              | null;
                          startDate: Date;
                          unitOfMeasure: | { code: string; id: string; symbol: (...)
                          | (...) }
                          | null;
                          unitPrice: number;
                      }[];
                      productType: string;
                      salesMultiple: number;
                      salesTax: | { code: string; id: string; name: string; rate: number }
                      | null;
                      salesTaxId: string | null;
                      sellingPrice: number;
                      sourceOffer:
                          | {
                              currency: { code: string; id: string; symbol: string }
                              | null;
                              id: string;
                              limitedWarranty: boolean;
                              number: string;
                              seriesPriceMultiplier: number | null;
                              seriesToolPrice: number;
                              seriesUnitPrice: string | null;
                              warrantyPeriod: number;
                          }
                          | null;
                      stage: string
                      | null;
                      supplierCode: string | null;
                      tags: string | null;
                      thickness: number | null;
                      unitOfMeasure:
                          | { code: string; id: string; name: string; symbol: string
                          | null }
                          | null;
                      unitOfMeasureId: string | null;
                      unitOfProduction:
                          | { code: string; id: string; name: string; symbol: string
                          | null }
                          | null;
                      unitOfProductionId: string | null;
                      unitOfSale:
                          | { code: string; id: string; name: string; symbol: string
                          | null }
                          | null;
                      unitOfSaleId: string | null;
                      updatedAt: Date;
                      variant: string | null;
                      weight: number | null;
                      width: number | null;
                  }[];
                  total: number;
                  page: number;
                  limit: number;
                  totalPages: number;
              },
          >,
      >