Get dashboard statistics
GET/company/dashboard/
Returns complete statistics for the company dashboard, including:
- Auction statistics (total, published, awarded, approved, and scheduled)
- Delivery statistics (scheduled, picked up, and delivered)
Data can be filtered by date range using the minDate and maxDate parameters.
Usage example:
- Get last year's statistics: GET / (no parameters)
- Get Q1 2024 statistics: GET /?minDate=2024-01-01&maxDate=2024-03-31
Request
Responses
- 200
- 401
- 404
Statistics retrieved successfully. Contains the following data groups:
- auctions: Statistics for all auctions
- publishedAuctions: Published auctions
- awardedAuctions: Awarded auctions
- approvedAuctions: Approved auctions
- plannedAuctions: Planned auctions
- plannedDeliveries: Planned deliveries
- collectedDeliveries: Collected deliveries
- deliveredDeliveries: Completed deliveries
Unauthorized. The JWT token is invalid, has expired, or lacks permissions to access these statistics.
Solutions:
- Verify that the token is valid and has not expired
- Ensure the user has an enterprise role
- Request a new authentication token
User or company not found. This occurs when:
- The company ID associated with the user does not exist
- The user has no company assigned
- The company has been deactivated
Solutions:
- Verify that the user has a valid company assigned
- Contact the administrator if the company appears as deactivated