lang | string Validation default: en | required |
user_api_hash | string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS | required |
device_id | integer | required |
Service
GET
/add_service_data
Definition
Query String
Responses application/json
object | ||
device_id | integer | optional |
odometer_value | string | optional |
engine_hours_value | string | optional |
expiration_by |
object
Validation
{serviceTypes} |
optional |
key | string | optional |
status | integer | optional |
{ "device_id": 1, "odometer_value": "0", "engine_hours_value": "0", "expiration_by": { "odometer": "Odometer", "engine_hours": "Engine hours", "days": "Days" }, "status": 1 }
object | ||
status | integer | optional |
errors | object | optional |
{ "status": 0, "errors": {} }
object | ||
status | integer | optional |
error | string | optional |
{ "status": 0, "error": "No language selected." }
POST
/add_service
Definition
Query String
lang | string Validation default: en | required |
user_api_hash | string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS | required |
device_id | integer | required |
Request Body multipart/form-data
object
Validation
{servicePost} |
||
device_id | integer | required |
name | string | required |
expiration_by | string | required |
interval | string | required |
last_service | string | required |
trigger_event_left | string | required |
renew_after_expiration | integer | required |
string | optional | |
mobile_phone | string | optional |
GET
/edit_service_data
Definition
Query String
lang | string Validation default: en | required |
user_api_hash | string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS | required |
sensor_id | integer | required |
Responses application/json
object | ||
device_id | integer | optional |
odometer_value | string | optional |
engine_hours_value | string | optional |
expiration_by |
object
Validation
{serviceTypes} |
optional |
key | string | optional |
item |
object
Validation
{service} |
optional |
id | integer string | optional |
user_id | integer string | optional |
device_id | integer string | optional |
name | string | optional |
expiration_by | string | optional |
interval | string | optional |
last_service | string | optional |
trigger_event_left | string | optional |
renew_after_expiration | string | optional |
expires | string | optional |
expires_date | null string | optional |
remind | string | optional |
remind_date | null string | optional |
event_sent | string | optional |
expired | string | optional |
string | optional | |
mobile_phone | string | optional |
device |
object
Validation
{device} |
optional |
id | string | optional |
user_id | null integer | optional |
traccar_device_id | string | optional |
icon_id | string | optional |
active | string | optional |
deleted | string | optional |
name | string | optional |
imei | string | optional |
fuel_measurement_id | string | optional |
fuel_quantity | string | optional |
fuel_price | string | optional |
fuel_per_km | string | optional |
sim_number | string | optional |
device_model | string | optional |
plate_number | string | optional |
vin | string | optional |
registration_number | string | optional |
object_owner | string | optional |
expiration_date | string | optional |
tail_color | string | optional |
tail_length | string | optional |
engine_hours | string | optional |
detect_engine | string | optional |
min_moving_speed | string | optional |
min_fuel_fillings | string | optional |
min_fuel_thefts | string | optional |
snap_to_road | string | optional |
created_at | string | optional |
updated_at | string | optional |
pivot | object | optional |
user_id | string | optional |
device_id | string | optional |
group_id | null | optional |
current_driver_id | string | optional |
active | string | optional |
timezone_id | null | optional |
traccar | object | optional |
id | string | optional |
name | string | optional |
uniqueId | string | optional |
latestPosition_id | string | optional |
lastValidLatitude | string | optional |
lastValidLongitude | string | optional |
other | string | optional |
speed | string | optional |
time | string | optional |
server_time | string | optional |
ack_time | null | optional |
altitude | string | optional |
course | string | optional |
power | null | optional |
address | null | optional |
protocol | string | optional |
latest_positions | string | optional |
icon | object | optional |
id | string | optional |
order | string | optional |
width | string | optional |
height | string | optional |
path | string | optional |
sensors | array[object] | optional |
id | string | optional |
user_id | string | optional |
device_id | string | optional |
name | string | optional |
type | string | optional |
tag_name | string | optional |
add_to_history | string | optional |
on_value | null | optional |
off_value | null | optional |
shown_value_by | string | optional |
fuel_tank_name | null | optional |
full_tank | null | optional |
full_tank_value | null | optional |
min_value | null | optional |
max_value | null | optional |
formula | null | optional |
odometer_value_by | null | optional |
odometer_value | null | optional |
odometer_value_unit | string | optional |
temperature_max | null | optional |
temperature_max_value | null | optional |
temperature_min | null | optional |
temperature_min_value | null | optional |
value | string | optional |
value_formula | string | optional |
show_in_popup | string | optional |
unit_of_measurement | string | optional |
on_tag_value | null | optional |
off_tag_value | null | optional |
on_type | null | optional |
off_type | null | optional |
calibrations | null | optional |
services | array[object] | optional |
id | string | optional |
user_id | string | optional |
device_id | string | optional |
name | string | optional |
expiration_by | string | optional |
interval | string | optional |
last_service | string | optional |
trigger_event_left | string | optional |
renew_after_expiration | string | optional |
expires | string | optional |
expires_date | null | optional |
remind | string | optional |
remind_date | null | optional |
event_sent | string | optional |
expired | string | optional |
string | optional | |
mobile_phone | string | optional |
status | integer | optional |
object | ||
status | integer | optional |
errors | object | optional |
{ "status": 0, "errors": {} }
object | ||
status | integer | optional |
error | string | optional |
{ "status": 0, "error": "No language selected." }
POST
/edit_service
Definition
Query String
lang | string Validation default: en | required |
user_api_hash | string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS | required |
Request Body application/json
object | ||
id |
integer
Validation
{ObjectID} |
required |
device_id |
integer
Validation
{servicePost} |
required |
name |
string
Validation
{servicePost} |
required |
expiration_by |
string
Validation
{servicePost} |
required |
interval |
Validation
{servicePost} |
required |
last_service |
string
Validation
{servicePost} |
required |
trigger_event_left |
string
Validation
{servicePost} |
required |
renew_after_expiration |
integer
Validation
{servicePost} |
required |
string
Validation
{servicePost} |
optional | |
mobile_phone |
string
Validation
{servicePost} |
optional |
GET
/destroy_service
Definition
Query String
lang | string Validation default: en | required |
user_api_hash | string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS | required |
service_id | integer | required |
MODEL
serviceTypes
object | ||
key | string | optional |
{ "odometer": "Odometer", "engine_hours": "Engine hours", "days": "Days" }
MODEL
servicePost
object | ||
device_id | integer | required |
name | string | required |
expiration_by | string | required |
interval | string | required |
last_service | string | required |
trigger_event_left | string | required |
renew_after_expiration | integer | required |
string | optional | |
mobile_phone | string | optional |
MODEL
service
object | ||
id | integer string | optional |
user_id | integer string | optional |
device_id | integer string | optional |
name | string | optional |
expiration_by | string | optional |
interval | string | optional |
last_service | string | optional |
trigger_event_left | string | optional |
renew_after_expiration | string | optional |
expires | string | optional |
expires_date | null string | optional |
remind | string | optional |
remind_date | null string | optional |
event_sent | string | optional |
expired | string | optional |
string | optional | |
mobile_phone | string | optional |
device |
object
Validation
{device} |
optional |
id | string | optional |
user_id | null integer | optional |
traccar_device_id | string | optional |
icon_id | string | optional |
active | string | optional |
deleted | string | optional |
name | string | optional |
imei | string | optional |
fuel_measurement_id | string | optional |
fuel_quantity | string | optional |
fuel_price | string | optional |
fuel_per_km | string | optional |
sim_number | string | optional |
device_model | string | optional |
plate_number | string | optional |
vin | string | optional |
registration_number | string | optional |
object_owner | string | optional |
expiration_date | string | optional |
tail_color | string | optional |
tail_length | string | optional |
engine_hours | string | optional |
detect_engine | string | optional |
min_moving_speed | string | optional |
min_fuel_fillings | string | optional |
min_fuel_thefts | string | optional |
snap_to_road | string | optional |
created_at | string | optional |
updated_at | string | optional |
pivot | object | optional |
user_id | string | optional |
device_id | string | optional |
group_id | null | optional |
current_driver_id | string | optional |
active | string | optional |
timezone_id | null | optional |
id | string | optional |
name | string | optional |
uniqueId | string | optional |
latestPosition_id | string | optional |
lastValidLatitude | string | optional |
lastValidLongitude | string | optional |
other | string | optional |
speed | string | optional |
time | string | optional |
server_time | string | optional |
ack_time | null | optional |
altitude | string | optional |
course | string | optional |
power | null | optional |
address | null | optional |
protocol | string | optional |
latest_positions | string | |
icon | object | optional |
id | string | optional |
order | string | optional |
width | string | optional |
height | string | optional |
path | string | optional |
sensors | array[object] | optional |
id | string | optional |
user_id | string | optional |
device_id | string | optional |
name | string | optional |
type | string | optional |
tag_name | string | optional |
add_to_history | string | optional |
on_value | null | optional |
off_value | null | optional |
shown_value_by | string | optional |
fuel_tank_name | null | optional |
full_tank | null | optional |
full_tank_value | null | optional |
min_value | null | optional |
max_value | null | optional |
formula | null | optional |
odometer_value_by | null | optional |
odometer_value | null | optional |
odometer_value_unit | string | optional |
temperature_max | null | optional |
temperature_max_value | null | optional |
temperature_min | null | optional |
temperature_min_value | null | optional |
value | string | optional |
value_formula | string | optional |
show_in_popup | string | optional |
unit_of_measurement | string | optional |
on_tag_value | null | optional |
off_tag_value | null | optional |
on_type | null | optional |
off_type | null | optional |
calibrations | null | optional |
services | array[object] | optional |
id | string | optional |
user_id | string | optional |
device_id | string | optional |
name | string | optional |
expiration_by | string | optional |
interval | string | optional |
last_service | string | optional |
trigger_event_left | string | optional |
renew_after_expiration | string | optional |
expires | string | optional |
expires_date | null | optional |
remind | string | optional |
remind_date | null | optional |
event_sent | string | optional |
expired | string | optional |
string | optional | |
mobile_phone | string | optional |
{ "id": "1", "user_id": "2", "device_id": "3", "name": "Test service", "expiration_by": "engine_hours", "interval": "0", "last_service": "1000", "trigger_event_left": "0", "renew_after_expiration": "0", "expires": "1000", "expires_date": null, "remind": "1000", "remind_date": null, "event_sent": "0", "expired": "0", "email": "", "mobile_phone": "", "device": {} }