Relating to users and their account settings.

Action-Get

Return user account information

module=user&action=get

Returned Data

If returned as XML, the data is contained inside a <data> tag.

NameDescriptionExample
account_identificationFor internal use-
account_numberTMR account identification number11397
addressCompany or personal address661 Waterdale Road, Heidelberg West, Vic 3081
billing_auto_collectionThe state of subscription payment auto collection"on"
billing_card_expiryCard expiry date"6/2025"
billing_card_nameCard account nameTMR Accounts
billing_card_numberHidden credit card number********1234
companyAccount company nameTrack My Ride
customer_account_creditsAccount credits in Australian cents100
-> $1.00 AUD
customer_excess_paymentsExcess payments in Australian cents100
-> $1.00 AUD
customer_refundable_creditsRefundable account credits in Australian cents, arising due to a change to an existing invoice. Amounts will be used towards the next raised invoice and do not represent an amount to be refunded to the original billing method, per our Terms and Conditions.100
-> $1.00 AUD
emailAccount email[email protected]
free_sms_remainingA description of free SMSs left for this period, if included in your plan."30 of 30 remaining"
interface_versionDeprecated
journeys_default_businessWhether device journeys default to business or personal0 or 1
map_stopped_secondsThe number of seconds a device must be stopped for before the point is shown as a stop on the Map page

A ranger of 120-599 seconds
120
nameThe account user's nameTMR Demo Account
last_nameDeprecated
optionsObject holding various account options.

A further description of this can be found below.
{ "map_vehicle_sort_order":"activity",
... }
permissionsObject holding various account options.

A further description of this can be found below.
{...}
phoneCompany or personal contact number1300 553 022
settings_emergencySee the Emergency Module-
sms_creditsAdditional SMS credits10
subscription_cancelled_atThe epoch time of account cancellation1629717849
-> 23 August 2021 (Victoria, Australia)
subscription_current_term_endThe epoch end time of the subscription period1629717849
-> 23 August 2021 (Victoria, Australia)
subscription_current_term_startThe epoch start time of the subscription period1629717849
-> 23 August 2021 (Victoria, Australia)
subscription_plan_idTMR subscription plan idtmr_fleet_metrics
subscription_plan_quantityThe number of subscriptions (devices)10
subscription_statusTMR subscription statusactive
subscription_trial_endThe epoch time of account cancellation1629717849
-> 23 August 2021 (Victoria, Australia)
subscription_trial_startThe epoch time of account cancellation1629717849
-> 23 August 2021 (Victoria, Australia)
terms_agreedWhether the TMR terms and agreements have been set1
-> true
tutorialFor internal use-
usernameTMR login username (email)[email protected]

Account Options

Various TMR portal account options.

NameDescriptionExamples
map_vehicle_sort_orderHow the list of vehicles are sorted on the Map page"name_asc", "name_desc", "activity"
map_path_minutes_to_displayThe default number of minutes of device activity to display on the Map page"0", "5", "15", "30", "60", "120", "360", "720", "1440"
map_playback_minutes_to_displayThe default number of minutes of device playback to display on the Map page"15", "30", "60", "360", "720", "1440"
map_layer_styleShow satellite or street view"satellite", "street"
map_group_vehiclesAllow grouping of vehicles"true", "false"
map_layer_paths_enabledShow vehicle paths on the map page"true", "false"
map_layer_zones_enabledShow the zones layer on the map page"true", "false"
map_layer_heatmap_enabledShow the heatmap layer on the map page"true", "false"
map_label_vehiclesShow vehicle names on the map page"true", "false"
map_fit_map_vehiclesAuto-fit the map to view all vehicles"true", "false"
map_show_coordinatesShow device coordinates in latitude and longitude in the map marker popup"true", "false"
map_show_exact_timesShow exact time stamps on the map in the marker popup"true", "false"
map_marker_styleIcon style for a vehicle on the map marker"1", "2", "3"
map_marker_sizeIcon size for vehicles on the map"70", "80", "90", "100", "110", "120", "130"
map_layer_traffic_enabledDeprecated-
map_enhanced_satellite_zoomAllow an extra level of zoom when using satellite view. This may not be available in all areas."true", "false"
driver_auto_logoffFor hardware trackers, automatically log a driver off at the end of a journey."0", "1"
"1" -> will auto logoff a driver

Account Permissions

All permissions are boolean, with 1 meaning the account has been granted permission.

Permission NumberDescription
50Wildcard permission - The account has all permissions available, and no restrictions are in place.
5Access the map page
7Access the vehicles page
10Access the drivers page
13Access the zones page
17Access the alerts page
25Access the reports page
38Access the account page
51Add records
52Edit records
53Delete records
54View parent account alerts

Action-Save

Update account user details

module=user&action=save

Required data

To update a user, send the variables as query params or via form-data.

Variables are contained within variable "data". For example, to set the variable "name" to "Jenny", add data[name]="Jenny"

❗️

Updating

When updating a user, if a variable is not supplied in the update request it will remain set to its current value.

Variables

NameDescriptionRequiredExample
nameThe first or full name of the useryesJenny
last_nameThe last name of the useryesLittleton
phoneA contact number for the useryes1300 553 022
addressCompany or personal addressyes661 Waterdale Rd, Heidelberg West VIC 3081
companyCompany nameyesSales
billing_emailEmail to send billing emailsyes[email protected]

Example Request and Returned Data

For further info see here

Action-Set User Options

Update user account options.

module=user&action=set_options

Required data

To update a user's account options, send all variables as seen in the users options table above as well as the options seen below.

Variables are contained within variable "data". For example, to set the variable "map_stopped_seconds" to 120, add data[map_stopped_seconds]=120

❗️

Warning

When updating, all variables are required, otherwise, they will be set to default values.

Variables

NameDescriptionRequiredExample
All variables seen in the users options tableuser options variablesyes-
map_stopped_secondsThe number of seconds a vehicle must be stopped before a stop icon is shown on the mapyes120
journeys_default_businessWhether device journeys default to business or personalyes"0", "1"

"1" -> yes

Example Request and Returned Data

For further info see here

Action-Update Password

Update Track My Ride login password

module=user&action=update_password

Required data

Variables are contained within variable "data". For example, to send the variable "old_password" to fha9h%#hsaha, add data[old_password]= fha9h%#hsaha

NameDescriptionExample
old_passwordThe current login passwordpa55word123
new_passwordThe desired new passwordzz23h@#2893

Example Request and Returned Data

For further info see here