Get Fuel
Retrieve a single fuel product by its ID from Last Mile Intelligence.
Operation
Section titled “Operation”getFuel
Resource
Section titled “Resource”fuel
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Fuel ID | string | Yes | - | The ID of the fuel product to retrieve |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "fuel_diesel", "name": "Ultra Low Sulfur Diesel", "code": "ULSD", "type": "diesel", "unitOfMeasure": "gallon", "currentPrice": 3.459, "taxRate": 0.244, "isActive": true}{ "success": false, "error": "Fuel not found", "fuelId": "invalid_id"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Fuel Not Found: Fuel with specified ID does not exist
- Permission Denied: API token lacks permission for this operation