Create Logistics Recharge
Create Logistics Recharge
Create a single logistics recharge (fuel consumption record) for your organization
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
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faBody Parameters
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-446655440000Country ISO 3166-1 alpha-2 code where the recharge took place.Example:
ESDate of the recharge in
YYYY-MM-DD format.Example: 2025-06-15Amount of fuel consumed, in the fuel’s unit (e.g., liters for diesel, kWh for electricity).Example:
50.0License plate of the vehicle that was refueled.Example:
1234-ABCUUID of the vehicle type (TOC) associated with this recharge. Use the GET /tocs endpoint to get available TOC IDs.
UUID of a project to associate this recharge with.
Response
Returns the created (or upserted) recharge with HTTP 201.Recharge UUID
UUID of the fuel type
Display name of the fuel (e.g.
Diesel, Electricity)ISO-2 country code
Recharge date (ISO 8601)
Fuel quantity in the fuel’s unit
License plate of the vehicle
UUID of the associated vehicle type (TOC)
Unit of measurement (e.g.
liters, kWh, kg)Record status:
active or deletedCreation timestamp (ISO 8601)
Last update timestamp (ISO 8601)
Example
Successful Response
Upsert Behavior
If a recharge with the same combination ofcountry, 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 key403 Forbidden
Cause: The authenticated user is not a member of the organization404 Not Found
Cause: Thefuel_id does not exist or is inactive.
GET /logistics/fuels to get the full list of valid fuel IDs.
422 Validation Error
Cause: Missing required fields or invalid country code.Related Endpoints
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