Create Logistics Recharge
Create Logistics Recharge
Create a single logistics recharge (fuel consumption record) for your organization
POST
Create Logistics Recharge
Documentation Index
Fetch the complete documentation index at: https://code.dcycle.io/llms.txt
Use this file to discover all available pages before exploring further.
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 /recharges/unique-values?field=fuel_name to list available fuel IDs and their labels.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 recharge object with200 OK.
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.
Example
Common Errors
404 Not Found
Cause: Thefuel_id does not exist or is inactive.
GET /recharges/unique-values?field=fuel_name to get 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

