Overview
The Dashboard endpoints provide analytics, KPIs, and expiration tracking for all vehicle documents. These endpoints are optimized for dashboard displays and management reporting.Get KPIs
Query Parameters
Filter by vehicle license plate (partial match)
Filter by operating area (partial match)
Response
Total number of vehicles in the dataset
Number of expired documents (expiration date < today)
Number of documents expiring within 30 days
Number of documents expiring within 31-60 days
Number of valid documents (expiring in >60 days)
Number of documents without expiration date
Total number of documents (excludes sinDocumento)
Example Response
Document Status Logic
Documents are categorized based on days until expiration:- VENCIDO (Expired): Days remaining < 0
- POR_VENCER (About to expire): 0-30 days
- PROXIMO (Upcoming): 31-60 days
- VIGENTE (Valid): >60 days
- SIN_FECHA (No date): No expiration date set
Get Calendar Events
Query Parameters
Year for calendar (defaults to current year)
Month for calendar, 1-12 (defaults to current month)
Filter by vehicle license plate
Filter by operating area
Filter by document type:
SOAT, RTM, or PólizaResponse
Returns an array of calendar events, sorted by date.Unique event identifier (format:
{vehiculo_id}-{field_name})Vehicle license plate
Operating area
Document type: SOAT, RTM, or Póliza
Expiration date (YYYY-MM-DD)
Document status: VENCIDO, POR_VENCER, PROXIMO, or VIGENTE
Days until expiration (negative if expired)
Color indicator: red, orange, yellow, or green
URL to PDF document (null if not available)
Example Response
Date Range
The endpoint returns events within the specified month ± 7 days to ensure events near month boundaries are included.Get Expiring Documents List
Query Parameters
Filter by vehicle license plate
Filter by operating area
Filter by document type:
SOAT, RTM, or PólizaFilter by status:
VENCIDO, POR_VENCER, PROXIMO, or VIGENTEMaximum number of items to return
Response
Returns an array of document items, prioritized by urgency (expired first, then soonest to expire).Unique item identifier
Vehicle database ID
Vehicle license plate
Operating area
Document type: SOAT, RTM, or Póliza
Expiration date
Document status
Days until expiration
Color indicator for UI
URL to PDF document
Example Response
Sorting Priority
- Expired documents (negative diasRestantes)
- About to expire (0-30 days)
- Upcoming expirations (31-60 days)
- Valid documents (>60 days)
Get Documents by Area
Response
Returns an array of area summaries, sorted by priority (areas with most urgent documents first).Operating area name
Total documents in this area
Expired documents
Documents expiring within 30 days
Documents expiring within 31-60 days
Valid documents (>60 days)
Example Response
Sorting
Areas are sorted by urgency:(vencidos + porVencer) in descending order, showing problem areas first.