registry_fuel_filling_event
To register a fuel filling, use the unit/registry_fuel_filling_event method.
Endpoint
svc=unit/registry_fuel_filling_event¶ms={
"date": <uint>,
"volume": <double>,
"cost": <double>,
"location": <text>,
"deviation": <uint>,
"x": <double>,
"y": <double>,
"description": <text>,
"itemId": <long>
}
Parameters
| Parameter | Description |
|---|---|
date |
Date. |
volume |
Amount of fuel filled in the measurement system of the unit: liters for metric (SI), gallons for US, imperial, and metric with gallons. |
cost |
Cost. |
location |
Unit location. |
deviation |
Time deviation, min. Optional. |
x |
Longitude. |
y |
Latitude. |
description |
Description. |
itemId |
Unit ID. |
Response
If the request is completed successfully, an empty object is returned.
{}
Otherwise, an error code is returned.
Error codes
| Error code | Description |
|---|---|
| 4 | One of the following errors:
|
| 6 | Failed to register the event. |
| 7 | The user doesn’t have the Manage events access right to the unit. |