Inventory Management
Switchyard provides a hierarchical inventory location system designed for warehouse and retail operations.Location Hierarchy
Inventory locations follow a 5-level hierarchy:| Level | Description | Example |
|---|---|---|
| Zone | Major area of the warehouse | A (Ambient), F (Frozen) |
| Aisle | Numbered pathway | 1, 2, 3 |
| Bay | Section within an aisle | 1, 2, 3 |
| Shelf | Vertical position in bay | 1 (bottom) to 5 (top) |
| Slot | Horizontal position on shelf | 1 to 4 |
Location Code Format
Location codes follow the pattern:{Zone}{Aisle}-{Bay}-{Shelf}-{Slot}
Examples:
A1-1-1-1- Zone A, Aisle 1, Bay 1, Shelf 1, Slot 1F2-3-4-2- Zone F (Frozen), Aisle 2, Bay 3, Shelf 4, Slot 2
API Endpoints
List Inventory Groups
type- Filter by level type (zone, aisle, bay, shelf, slot)parent_group_id- Filter by parent location
Get Location Details
Create Location
Inventory Items
Inventory items are tracked at the variant level with quantities per location.Lookup by Barcode
Update Inventory
set- Set absolute quantityincrement- Add to current quantitydecrement- Subtract from current quantity
Permissions Required
| Action | Permission |
|---|---|
| View inventory | inventory.read |
| Update quantities | inventory.write |
| Scan operations | inventory.scan |