Vehicle Consumptions
Vehicle Consumptions
Retrieve consumption data and tracking for a specific vehicle
GET
Vehicle Consumptions
Vehicle Consumptions
Get detailed consumption records for a specific vehicle. This endpoint returns paginated consumption data including status information about data processing and tracking.Consumption Tracking: This endpoint retrieves consumption records linked to a vehicle, showing fuel usage, mileage, and processing status over time.
Request
Path Parameters
The UUID of the vehicleExample:
550e8400-e29b-41d4-a716-446655440000Headers
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faQuery Parameters
Filter by consumption statusAvailable values:
active, success, loading, errorExample: status=success&status=activePage number for paginationExample:
2Number of items per page (max 100)Example:
50Response
Array of consumption objects
Total number of consumption records
Current page number
Number of items per page
Total number of pages
Example
Successful Response
Consumption Status Reference
| Status | Description | Action |
|---|---|---|
| active | Consumption record is currently active and being tracked | Monitor for completion |
| success | Consumption data has been successfully processed | Data is ready to use |
| loading | Consumption data is being processed | Wait for completion |
| error | An error occurred during processing | Review logs or retry |
Common Errors
401 Unauthorized
Cause: Missing or invalid API key404 Not Found
Cause: Vehicle not found in organization422 Validation Error
Cause: Invalid query parametersactive, success, loading, or error.
Use Cases
Get Successful Consumption Records
Retrieve only successfully processed consumption data:Monitor Consumption Processing
Track consumption records that are being processed:Export Consumption Data
Export consumption records for analysis:Analyze Fuel Efficiency Trends
Track fuel efficiency changes over time:Related Endpoints
List Vehicles
Retrieve all vehicles
Create Vehicle
Add a new vehicle to your fleet
Vehicle Overview
Learn about the Vehicles API
Logistics API
Calculate emissions for shipments

