Get Rotation Report
GET /api/v1/reports/rotation
Retrieves the inventory rotation report with turnover metrics for products over a specified period.
Query Parameters
Number of days to analyze for rotation calculations
Filter rotation report for a specific product ID (UUID format)
Filter rotation report by product category
Authorization
Requires one of the following roles:admingestorconsultor
Response
Response Fields
Number of times the inventory turned over during the period. Higher values indicate faster movement.
Average inventory quantity during the analysis period
Total units sold or consumed during the period
Average number of days to sell through current inventory
Product movement classification:
fast_moving- High turnover productsmedium_moving- Average turnover productsslow_moving- Low turnover productsnon_moving- Products with no movement
Filtering Examples
Filter by Product
Filter by Category
Custom Time Period
Use Cases
Identify Slow Movers
Find products with low rotation indexes that may need promotional campaigns or clearance.
Optimize Stock Levels
Use turnover days to adjust reorder points and maintain optimal inventory levels.
Category Analysis
Compare rotation metrics across different product categories to identify trends.
Performance Tracking
Monitor inventory efficiency over different time periods (30, 60, 90 days).
Code Reference
Implemented inbackend/Report/Adapters/report_controller.py:220