curl --request GET \
--url https://api.switchyard.run/scanner/inventory/lookup \
--header 'Authorization: Bearer <token>'{
"success": true,
"barcode": "012345678901",
"product": {
"id": "prod_01ABC123",
"title": "Organic Bananas",
"handle": "organic-bananas",
"thumbnail": "https://cdn.example.com/bananas.jpg",
"description": "<string>"
},
"variant": {
"id": "var_01XYZ789",
"title": "1 lb",
"sku": "BAN-ORG-1LB",
"barcode": "012345678901"
},
"inventory": [
{
"location_id": "<string>",
"stocked_quantity": 123,
"reserved_quantity": 123,
"available_quantity": 123
}
]
}Look up a product and its inventory levels by scanning a barcode (UPC/EAN or SKU). Optionally filter inventory by location.
curl --request GET \
--url https://api.switchyard.run/scanner/inventory/lookup \
--header 'Authorization: Bearer <token>'{
"success": true,
"barcode": "012345678901",
"product": {
"id": "prod_01ABC123",
"title": "Organic Bananas",
"handle": "organic-bananas",
"thumbnail": "https://cdn.example.com/bananas.jpg",
"description": "<string>"
},
"variant": {
"id": "var_01XYZ789",
"title": "1 lb",
"sku": "BAN-ORG-1LB",
"barcode": "012345678901"
},
"inventory": [
{
"location_id": "<string>",
"stocked_quantity": 123,
"reserved_quantity": 123,
"available_quantity": 123
}
]
}Supabase JWT token
UPC/EAN barcode or SKU to look up
Filter inventory to a specific stock location
Product found with inventory information
true
"012345678901"