Scanner API
The Scanner API is designed for mobile devices used by warehouse pickers, drivers, and intake staff.Overview
The Scanner API provides:- Barcode Lookup: Find sellable products by UPC/EAN barcode
- Inventory Scanning: Update quantities with FEFO/FIFO tracking
- Inventory Receiving: Receive new inventory from sweeps
- Order Picking: Access orders assigned for fulfillment
- Bag Scanning: Scan items into bags for order assembly
Authentication
Scanner devices authenticate using Supabase JWT tokens:Endpoints
Scanner Status
Check scanner API availability and user permissions.Product Lookup
Look up a sellable product by barcode. Returns inventory in FEFO/FIFO order.Inventory items are returned in FEFO/FIFO order - items expiring soonest first, then oldest received.
Inventory Scan
Process an inventory scan operation.Actions
Response:
List Orders
Get orders assigned for picking.Order Details
Get full order details for picking, including totes and bags.Bag and Tote Workflow
Picking Flow
- Picker receives pick_list assignment
- For each pick_list_item:
- Scan product barcode
- System shows inventory location (FEFO/FIFO)
- Picker retrieves item
- Scan into bag (creates bag_item)
- Seal bag and assign to tote
- Stage tote for robot delivery
Intake Flow (Sweep Returns)
- Driver returns from sweep
- For each sweep_item:
- Scan product barcode
- Scan into bag (creates bag_item)
- Links to order_item for fulfillment
- Bags assigned to totes
- Stage for delivery