Skip to main content
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

string
required
Your API key for authenticationExample: sk_live_1234567890abcdef
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa

Query Parameters

array[string]
Narrow the results to specific vehicle UUIDs
array[string]
Filter by consumption statusAvailable values: active, success, loading, error
array[string]
Filter by fuel unit UUIDs
array[string]
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
string
Filter by custom identifier (substring match)
string
Filter consumptions with a start date on or after this date (YYYY-MM-DD)
string
Filter consumptions with an end date on or before this date (YYYY-MM-DD)
string
Filter consumptions created on or after this datetime (ISO 8601)
string
Filter consumptions created on or before this datetime (ISO 8601)
string
Filter by CO2e calculation statusAvailable values: calculated, not_calculated
string
Sort field, optionally prefixed with - for descending. Unrecognized values fall back to the default order (-created_at).Available values: custom_id, quantity, start_date, end_date, status, created_at, updated_at, base_total_spendExample: -created_at
integer
default:"1"
Page number for pagination
integer
default:"50"
Number of items per page (max 100)

Response

array[object]
Array of consumption objects
integer
Total number of matching consumption records
integer
Current page number
integer
Number of items per page
string
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 key

422 Validation Error

Cause: Invalid query parameters

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