Hi all,
I’ve implemented the CameraScanner component into my app, and it’s working as intended (it returns barcodes as strings when the device camera scans them).
However, I assumed there would be a way of using the ProductSearchApi to return a product/variant that matched the scanned barcode. Upon testing it looks as though that’s not possible, even with the searchProductsfunction.
Is there any way of performing a barcode lookup via the POS extension, or will I need to hit an endpoint in my admin app and return the data?
Any advice would be appreciated!