We do not support any 2D barcodes, like QR codes. We also only generate the 'bars' part of a barcode. If you want text of the code below the barcode, you could add it later to the output of this ...
See the UPC/EAN user-guide for more details. OpenSCAD can generate 2D vector graphics with a few caveats. To generate any of the barcodes using 2D vector geometry rather than 3D solid geometry, simply ...