StoreDTO
Represents a retail store location with geographic coordinates, capacity constraints, and product demand. Stores have a maximum stock capacity and expect a certain return rate on inventory.Fields
Unique identifier for the store
Geographic latitude coordinate of the store location
Geographic longitude coordinate of the store location
ISO country code where the store is located (e.g., “US”, “CA”, “UK”)
Maximum number of units the store can hold in inventory
Expected percentage of inventory that will be returned (0.0 to 1.0)
Current available capacity after accounting for existing inventory and assignments
List of product items with quantities that the store is requesting
Example
Business Logic
Capacity Management- The
maxStockCapacityrepresents the physical space available for inventory remainingCapacityis dynamically calculated based on current assignments- Stock assignments cannot exceed remaining capacity
- The
expectedReturnRateinfluences inventory planning - Higher return rates may require adjusted stock levels
- Typically ranges from 0.05 (5%) to 0.30 (30%)
- Demand list contains all product items the store needs
- Not all demand may be fulfilled based on warehouse availability
- Unfulfilled demand is tracked in metrics
Related Endpoints
- GET /api/stores - List all stores
- GET /api/stores/ - Get specific store details
- POST /api/stores - Create new store
- PUT /api/stores/ - Update store information
- DELETE /api/stores/ - Delete store
- GET /api/assignments - View assignments for stores