Skip to content

Create Fuel

Create a new fuel product in Last Mile Intelligence.

createFuel

fuel

ParameterTypeRequiredDefaultDescription
Fuel DataJSONYes-Fuel object with required fields
FieldTypeRequiredDescription
namestringYesFuel product name
codestringYesShort code identifier
typestringYesFuel type (diesel, propane, etc.)
unitOfMeasurestringNoUnit (gallon, liter, etc.)
currentPricenumberNoCurrent price per unit
taxRatenumberNoTax rate
{
"id": "fuel_new123",
"name": "Biodiesel B20",
"code": "B20",
"type": "biodiesel",
"unitOfMeasure": "gallon",
"isActive": true,
"createdAt": "2024-06-21T09:00:00Z"
}
{
"success": false,
"error": "Validation failed",
"details": {
"code": "Code already exists"
}
}
  • Missing API Token: LMI credential is missing API token
  • Duplicate Code: Fuel with this code already exists
  • Validation Error: Required fields missing or invalid
  • Permission Denied: API token lacks permission for this operation