Bulk Delete Vehicle Consumptions (Organization)
Bulk Delete Vehicle Consumptions (Organization)
Delete multiple consumption records by ID, across any vehicle in the organization
POST
Bulk Delete Vehicle Consumptions (Organization)
Bulk Delete Vehicle Consumptions (Organization)
Delete multiple consumption records by their IDs in a single call — the consumptions don’t need to belong to the same vehicle. Use this from an “all consumptions” table view where a user has selected specific rows across multiple vehicles.Consumption IDs that don’t exist, or whose vehicle belongs to a different organization, are reported in
failed_ids rather than causing the whole request to fail. Always check failed_count after a 200 response.Request
Headers
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faBody Parameters
Array of consumption record UUIDs to delete, from any vehicle in the organization. Minimum 1, maximum 100,000 IDs per request.Example:
["660e8400-e29b-41d4-a716-446655440000", "770e8400-e29b-41d4-a716-446655440001"]Response
Returns200 OK with a JSON summary of the operation.
Number of consumption records successfully deleted
UUIDs of successfully deleted consumption records
Number of records that failed to delete
UUIDs of records that failed to delete (not found, or owned by a different organization)
Human-readable summary of the operation
Example
Successful Response
Common Errors
401 Unauthorized
Cause: Missing or invalid API key422 Validation Error
Cause: Invalid request body (e.g. emptyconsumption_ids array or exceeding 100,000 IDs)
Related Endpoints
List Vehicle Consumptions (Organization)
List all consumptions across every vehicle, with filters
Bulk Delete by Filters (Organization)
Delete every consumption matching the current filters, e.g. an entire uploaded file
Bulk Delete Consumptions
Delete consumptions scoped to a single vehicle

