Get Valorization Report
GET /api/v1/reports/valorization
Retrieves the inventory valorization report at a specific date, showing total value and detailed breakdown by product and batch.
Query Parameters
Target date for valorization report in
YYYY-MM-DD format (e.g., 2026-03-04)Authorization
Requires one of the following roles:admingestorconsultor
Response
Error Responses
Missing or invalid date parameter
Invalid date format
Code Reference
Implemented inbackend/Report/Adapters/report_controller.py:111
Export Valorization Report
GET /api/v1/reports/valorization/export
Exports the valorization report in CSV, PDF, or JSON format.
Query Parameters
Target date for valorization report in
YYYY-MM-DD formatExport format. Available options:
csv- Comma-separated values filepdf- PDF document (not yet implemented)json- JSON format
Authorization
Requires one of the following roles:admingestorconsultor
CSV Export Format
The CSV export includes:- Header Section: Report date and total value
- Product Summary: Aggregated data by product with average costs
- Batch Details: Detailed breakdown by individual batches
JSON Export Format
Returns the same structure as the standard valorization report endpoint.Response Headers
For CSV format:Error Responses
Missing date parameter
Invalid format
Invalid date format
Example Usage
Code Reference
Implemented inbackend/Report/Adapters/report_controller.py:141