registry_fuel_filling_event
To register a fuel filling, use the unit/registry_fuel_filling method.
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. |
cost | Cost. |
location | Unit location. |
deviation | Time deviation, min. |
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 | The user ID is invalid or the user has signed out. |
6 | Failed to register the event. |
7 | The user doesn’t have the required access right to the unit (ADF_ACL_AVL_UNIT_REG_EVENTS). |