Scanner API
The Scanner API allows you to use the mobile device's camera to scan barcodes. Use this API to capture barcode data and integrate it into your app's workflow on Shopify POS.
Anchor to Use casesUse cases
- Product lookup: Scan barcodes to quickly look up products in the store catalog.
- Inventory management: Scan items during inventory counts or stocktaking workflows.
- Order processing: Scan package barcodes during fulfillment or receiving workflows.
- Custom scanning: Implement custom barcode scanning workflows that process scan data for your app's needs.
Anchor to MethodsMethods
The scanner API provides a capture method that opens the mobile device's scanner to capture a barcode. It returns a Promise resolving to the scanned barcode data or an error.
- Anchor to capturecapturecapture() => Promise<ScannerPayload>() => Promise<ScannerPayload>requiredrequired
Opens the device camera to scan a barcode. Returns a Promise that resolves to a
containing the scanned data.
ScannerPayload
The result returned after a successful barcode scan.
- data
The scanned barcode data as a string.
string
Was this page helpful?