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

      • request: NextRequest
      • __namedParameters: { params: Promise<{ id: string }> }

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  barcode: string
                  | null;
                  billingPolicy: string;
                  category: { code: string | null; id: string; name: string } | null;
                  categoryId: string | null;
                  code: string;
                  color: string | null;
                  conversionFactor: number;
                  cost: number;
                  costPerUnit: string | null;
                  createdAt: Date;
                  createdByUserId: string | null;
                  density: number | null;
                  description: string | null;
                  files: {
                      filename: string;
                      id: string;
                      mimetype: string;
                      size: number;
                      url: string;
                  }[];
                  id: string;
                  imageKey: string
                  | null;
                  imageUrl: string | null;
                  internalNotes: string | null;
                  internalReference: string | null;
                  isActive: boolean;
                  length: number | null;
                  maxStockLevel: number | null;
                  minStockLevel: number;
                  name: string;
                  productType: string;
                  reorderPoint: number;
                  salesTax: { id: string; name: string; rate: number } | null;
                  salesTaxId: string | null;
                  sellingPrice: number;
                  supplier:
                      | {
                          code: string;
                          currency: | { code: string; id: string; name: string; symbol: string }
                          | null;
                          id: string;
                          name: string;
                      }
                      | null;
                  supplierCode: string
                  | null;
                  supplierId: string | null;
                  suppliers: {
                      id: string;
                      isActive: boolean;
                      isPreferred: boolean;
                      moqTiers: {
                          id: string;
                          leadTime: number | null;
                          minQuantity: number;
                          unitPrice: number;
                      }[];
                      notes: string
                      | null;
                      priority: number;
                      supplier: {
                          code: string;
                          currency: { code: string; id: string; symbol: string } | null;
                          id: string;
                          name: string;
                      };
                      supplierCode: string
                      | null;
                      supplierDesignation: string | null;
                      supplierId: string;
                  }[];
                  tags: string
                  | null;
                  thickness: number | null;
                  unitOfMeasure:
                      | { code: string; id: string; name: string; symbol: string
                      | null }
                      | null;
                  unitOfMeasureId: string | null;
                  unitOfPurchase:
                      | { code: string; id: string; name: string; symbol: string
                      | null }
                      | null;
                  unitOfPurchaseId: string | null;
                  unitOfStock:
                      | { code: string; id: string; name: string; symbol: string
                      | null }
                      | null;
                  unitOfStockId: string | null;
                  updatedAt: Date;
                  weight: number | null;
                  width: number | null;
              },
          >,
      >