Skip to main content

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.

  • 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.

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 capture
capture
() => Promise<>
required

Opens the device camera to scan a barcode. Returns a Promise that resolves to a ScannerPayload containing the scanned data.


Was this page helpful?