POST api/SocialDriver/GetFuelCosts
Get estimates for fuel used during a period of time
Request Information
URI Parameters
None.
Body Parameters
ViewFuelCostRequestName | Description | Type | Additional information |
---|---|---|---|
StartDate |
The start date queried |
date |
None. |
EndDate |
The end date queried |
date |
None. |
Request Formats
application/json, text/json
Sample:
{ "StartDate": "2025-04-27T15:58:13.5634707+00:00", "EndDate": "2025-04-27T15:58:13.5634707+00:00" }
application/xml, text/xml
Sample:
<ViewFuelCostRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <StartDate>2025-04-27T15:58:13.5634707+00:00</StartDate> <EndDate>2025-04-27T15:58:13.5634707+00:00</EndDate> </ViewFuelCostRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ViewFuelCostResponseName | Description | Type | Additional information |
---|---|---|---|
Distance |
The total distance traveled in meters |
integer |
None. |
ActualFuelSpend |
The estimated fuel cost |
decimal number |
None. |
IdealFuelSpend |
The estimated ideal fuel cost |
decimal number |
None. |
PossibleFuelSaving |
Possible fuel saving |
decimal number |
None. |
FuelScore |
The fuel score for the period |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "Distance": 1, "ActualFuelSpend": 2.0, "IdealFuelSpend": 3.0, "PossibleFuelSaving": 4.0, "FuelScore": 5 }
application/xml, text/xml
Sample:
<ViewFuelCostResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Distance>1</Distance> <ActualFuelSpend>2</ActualFuelSpend> <IdealFuelSpend>3</IdealFuelSpend> <PossibleFuelSaving>4</PossibleFuelSaving> <FuelScore>5</FuelScore> </ViewFuelCostResponse>