registry_fuel_filling_event

To register a fuel filling, use the unit/registry_fuel_filling method.

Copied!
svc=unit/registry_fuel_filling_event&params={
    "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.

Copied!
{} 

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).

If you find a mistake in the text, please select it and press Ctrl+Enter.

Report a mistake

Your message was sent. Thank you!

An error occurred while submitting the form

Download PDF file
Download Word document

See also