Base URL
Available Endpoints
List Services
Get all service records with pagination and filtering
Create Service
Record a new service event
Update Service
Update an existing service record
Delete Service
Remove a service record
Dashboard Analytics
Get KPIs, trends, and analytics
Financial Reports
Generate detailed financial reports
Data Model
The Engrase model tracks service expenses:Common Parameters
Pagination
page- Page number (default: 1)limit- Items per page (default: 20)
Filters
conductor- Filter by driver nameplaca- Filter by vehicle platearea_operacion- Filter by operational areafecha_inicio- Start date (YYYY-MM-DD)fecha_fin- End date (YYYY-MM-DD)
Sorting
sort_by- Field to sort by (fecha, suma, placa)sort_order- Sort direction (asc, desc)
Authentication
All endpoints require a Bearer token:Error Responses
All endpoints follow standard HTTP status codes:| Status | Description |
|---|---|
| 200 | Success |
| 400 | Bad request - Invalid parameters |
| 401 | Unauthorized - Missing or invalid token |
| 404 | Not found - Resource doesn’t exist |
| 500 | Server error |
Next Steps
Quick Start
Get started with the API
Authentication
Learn about authentication