List All Vehicle Consumptions (Organization)
List All Vehicle Consumptions (Organization)
Retrieve consumption records across every vehicle in your organization, in one paginated table
GET
List All Vehicle Consumptions (Organization)
List All Vehicle Consumptions (Organization)
Get a paginated list of consumption records across every vehicle in your organization, instead of one vehicle at a time. This powers an “all consumptions” table view — useful when a single uploaded file was split into consumptions across many vehicles and you want to review, filter, or bulk-delete them as a group.Organization-scoped: This endpoint only returns consumptions for vehicles owned directly by the organization in
x-organization-id. It does not include consumptions from child organizations in a holding.Request
Headers
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faQuery Parameters
Narrow the results to specific vehicle UUIDs
Filter by consumption statusAvailable values:
active, success, loading, errorFilter by fuel unit UUIDs
Filter by source file UUIDs — the primary way to isolate all consumptions created from one bulk upload, across all the vehicles it was split into
Filter by custom identifier (substring match)
Filter consumptions with a start date on or after this date (YYYY-MM-DD)
Filter consumptions with an end date on or before this date (YYYY-MM-DD)
Filter consumptions created on or after this datetime (ISO 8601)
Filter consumptions created on or before this datetime (ISO 8601)
Filter by CO2e calculation statusAvailable values:
calculated, not_calculatedSort field, optionally prefixed with
- for descendingExample: -created_atPage number for pagination
Number of items per page (max 100)
Response
Array of consumption objects
Total number of matching consumption records
Current page number
Number of items per page
Hash of the currently applied filters. Pass this back unchanged when calling Bulk Delete by Filters with the same filters, as a safety check against stale filter state.
Example
Successful Response
Common Errors
401 Unauthorized
Cause: Missing or invalid API key422 Validation Error
Cause: Invalid query parametersRelated Endpoints
Unique Values (Organization)
Get filter dropdown values, e.g. all source files, across the organization
Bulk Delete (Organization)
Delete consumptions by ID, across any vehicle in the organization
Bulk Delete by Filters (Organization)
Delete every consumption matching the current filters, e.g. an entire uploaded file
Vehicle Consumptions
List consumptions for a single vehicle

