Skip to main content
POST
Create Logistics Recharge

Create Logistics Recharge

Create a new fuel consumption record for a logistics vehicle. A recharge records fuel usage (diesel, electric, etc.) linked to a specific fuel type and optionally a vehicle and project.

Request

Headers

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

Body Parameters

string
required
UUID of the fuel type from the logistic_fuels table. Use GET /logistics/fuels to list all available fuel IDs and their names.Example: 550e8400-e29b-41d4-a716-446655440000
string
required
Country ISO 3166-1 alpha-2 code where the recharge took place.Example: ES
string
required
Date of the recharge in YYYY-MM-DD format.Example: 2025-06-15
number
Amount of fuel consumed, in the fuel’s unit (e.g., liters for diesel, kWh for electricity).Example: 50.0
string
License plate of the vehicle that was refueled.Example: 1234-ABC
string
UUID of the vehicle type (TOC) associated with this recharge. Use the GET /tocs endpoint to get available TOC IDs.
string
UUID of a project to associate this recharge with.

Response

Returns the created (or upserted) recharge with HTTP 201.
string
Recharge UUID
string
UUID of the fuel type
string
Display name of the fuel (e.g. Diesel, Electricity)
string
ISO-2 country code
date
Recharge date (ISO 8601)
number
Fuel quantity in the fuel’s unit
string | null
License plate of the vehicle
string | null
UUID of the associated vehicle type (TOC)
string
Unit of measurement (e.g. liters, kWh, kg)
string
Record status: active or deleted
datetime
Creation timestamp (ISO 8601)
datetime | null
Last update timestamp (ISO 8601)

Example

Successful Response

Upsert Behavior

If a recharge with the same combination of country, date, quantity, and vehicle_license_plate already exists within the organization, the existing record is updated instead of creating a duplicate.

Common Errors

401 Unauthorized

Cause: Missing or invalid API key

403 Forbidden

Cause: The authenticated user is not a member of the organization

404 Not Found

Cause: The fuel_id does not exist or is inactive.
Solution: Use GET /logistics/fuels to get the full list of valid fuel IDs.

422 Validation Error

Cause: Missing required fields or invalid country code.

Create Recharges (Bulk)

Create up to 5,000 recharges in one request

List Recharges

Retrieve fuel consumption records

Delete Recharge

Delete a single recharge

Get Vehicle Types (TOCs)

List available vehicle types

List Fuel Types

List all available fuel types and their IDs