Consumptions CSV Import
Consumptions CSV Import
Generate a presigned URL for bulk vehicle consumption import via CSV
POST
Consumptions CSV Import
Consumptions CSV Import
Generate a presigned S3 upload URL for bulk importing vehicle consumption records via CSV file. After uploading the CSV to the returned URL, the system processes the file asynchronously and creates the consumption records.Request
Headers
string
required
Your API key for authenticationExample:
sk_live_1234567890abcdefstring
required
Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faBody Parameters
string
required
Name of the CSV file to upload (must end in
.csv)Example: fleet-fuel-q1-2025.csvResponse
string
Presigned S3 URL to upload the CSV file via PUT request
string
The file name as stored
string
UUID of the created file record for tracking
string
S3 key where the file will be stored
string
Confirmation message
Example
Successful Response
Common Errors
401 Unauthorized
Cause: Missing or invalid API key403 Forbidden
Cause: The authenticated user is not a member of the organization422 Unprocessable Entity
Cause: Invalid or missing file name in the request bodyRelated Endpoints
List Consumptions
Browse imported consumption records
Delete by File
Delete all consumptions from a specific import