registry_insurance_event
To register fuel filling event, use the command unit/registry_insurance_event:
svc=unit/registry_insurance_event¶ms={
"date":<uint>,
"type":<uint>,
"case_num":<uint>,
"description":<text>,
"itemId":<long>
}
Parameters
Parameter | Description |
---|---|
itemId | Unit ID. |
type | If type=1, case_num is saved. |
case_num | Code number. |
description | Event description. |
Response
If the request is completed successfully, an empty response is returned.
{ }
If the request fails, an error code is returned.
Error codes
Error code | Description |
---|---|
4 | Invalid input parameters. |
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). |