Configure Fleetio Integration
This feature is limited to PRO accounts only. If you're interested in learning more about our PRO feature set, check out this page.
This article details all the steps required to setup the ClearPathGPS -> Fleetio integration. Please contact your Fleetio Sales Representative for information regarding which Fleetio subscriptions may be required for advanced features such as Diagnostic Trouble Code reporting.
How it works:
- Setting up this integration will enable the ability to send data from ClearPathGPS over to Fleetio by setting up a number of notification 'rules' created via the Alerts page.
- The following types of data can be sent over to Fleetio (data is sent daily at ~3am PST unless stated otherwise):
- Odometer - last known mileage of the asset
- Engine Hours - last known engine hours of the asset
- Diagnostic Trouble Codes ("Fault Codes") - codes used to diagnose malfuncitons registered by the tracking device, sent over in real time.
- Location - all locations events reported by the tracking device, sent over in real time
- Fueling Location - automatically adds the asset's location to Fleetio fueling events.
- Navigate to the User Profile section of Fleetio by clicking the drop down in the top left hand corner.
- On the next page in the menu on the left, click "Manage API Keys"
-
Click +New API Key, and label the key 'ClearPathGPS'. Use API Version '2023-03-01' from the dropdown.
Note: The label must be spelled as one word without spaces, 'ClearPathGPS' in order for this to work. Upper and lower cases do not matter.
-
Copy and paste the long API Key and the shorter Account Token into a separate document or keep the web page up in a separate tab. If you lose this page you should be able to come back and access the same API Key and Account Token again. You can also copy and paste the curl command at the bottom, this includes both the API Key and the Account Token.
These will be used in later steps within your ClearPathGPS account.
- Navigate back to the general settings page in Fleetio and look for the section on the left called "External Vehicle IDs"
- In the top right, select +Add External Vehicle ID
-
Enter the following text into the fields exactly as shown below (in bold):
Label : ClearPathGPS
Description: ClearPathGPS Vehicle ID
- Finally, click "Save External Vehicle ID", you should see the External Vehicle ID has been created and the 'key' should match like the one in the image below.
-
On the "External Vehicle IDs" page from Step 2, click the 3-dot menu button to the right of "clearpathgps" key. and select "Assign Vehicles".
-
In the ClearPathGPS colum, you will need to enter the External Vehicle ID (also called the "CP #") found in the ClearPathGPS portal. To obtain this number:
- Log into your ClearPathGPS portal
- Navigate to Admin -> Vehicle Admin
- Vehicle IDs begin with 'cp' and is followed by a six digit number. (For example, cp012345.) Take note of this number for each vehicle you wish to assign
- Enter the CP # in the box next to the vehicle, and click the blue check mark/box on the right side. A green message will appear when successful.
- It is strongly recommended that you start by creating a group within your ClearPathGPS account called "Fleetio Assets". Steps on creating groups can be found here.
- Add the tracking devices that you want to integrate with Fleetio to this group.
Any devices ("CP #s") you have assigned to assets within Fleetio must be in this group, see Step 3 for details on Assigning External Vehicle IDs.
- Next, you need to make a some 'Custom Alerts' by navigating to the Alerts page in your ClearPathGPS account.
If you're already working with a ClearPathGPS Support representative, they may have already setup these alerts within your account. If this is the case, you should see a series of custom alerts with "Fleetio" in the name on the 'Alerts' page.
- Steps 5-9 detail the five different Alerts that can be created depending on the data you want to send over to Fleetio.
- To begin, select 'Create Alert' in the top right hand corner and scroll to the bottom until you see 'Custom Alert'.
- To send over Odometer data, configure the the custom Alert exactly as detailed below, starting with 'Alert Details':
- Alert Name: x-api-fleetio-odo
- Applies To: Group - Fleetio Assets
- Status Code: All Codes
- Cron Option: Daily
- Rule Selector:
lat != 0 && lon != 0
- Minimum Interval: Leave all fields (days, hours, minutes) on the default 0
- Trigger Action - Email: Uncheck this box
- Trigger Action - Queue: Check this box
- Click 'Next' to go to the 'Notify' page and do the following:
- Notify - via Email: Leave this field blank
- Notify - Email Message ("Enter Email Subject"): Leave this field blank
- Notify - Email Message ("Enter Email Message"): Copy and paste everything in the block below
{
"apiAuth":"ADD API KEY HERE",
"apiToken":"ADD ACCOUNT TOKEN HERE",
"odo":"${odometer}"
} - Notify - via Text: Leave this field blank
- Notify - Text Message: Leave this field blank
- Click 'Next' to go to the 'Finalize' page:
- At the top of this page (you may need to scroll up), untoggle the 'Active' button, you will come back and activate this later on.
- Click 'Save' and move on to Step 3.
Important: For engine hours to sync and show correctly in Fleetio you must ensure that the 'Secondary Meter' is enabled for the asset and set to engine hours. Engine hours sent from ClearPathGPS will always be stored in this field.
- To send over Engine Hours data, configure the the custom Alert exactly as detailed below, starting with 'Alert Details':
- Alert Name: x-api-fleetio-enghours
- Applies To: Group - Fleetio Assets
- Status Code: All Codes
- Cron Option: Daily
- Rule Selector:
(true)
- Minimum Interval: Leave all fields (days, hours, minutes) on the default 0
- Trigger Action - Email: Uncheck this box
- Trigger Action - Queue: Check this box
- Click 'Next' to go to the 'Notify' page and do the following:
- Notify - via Email: Leave this field blank
- Notify - Email Message ("Enter Email Subject"): Leave this field blank
- Notify - Email Message ("Enter Email Message"): Copy and paste everything in the block below
{
"apiAuth":"ADD API KEY HERE",
"apiToken":"ADD ACCOUNT TOKEN HERE",
"engHours":"${engineHours}",
"engHoursOffset":"${engineHoursOffset}"
} - Notify - via Text: Leave this field blank
- Notify - Text Message: Leave this field blank
- Click 'Next' to go to the 'Finalize' page:
- At the top of this page (you may need to scroll up), untoggle the 'Active' button, you will come back and activate this later on.
- Click 'Save' and move on to Step 3.
- To send over Diagnostic Trouble Codes or Fault Codes configure the the custom Alert exactly as detailed below, starting with 'Alert Details':
- Alert Name: x-api-fleetio-dtc
- Applies To: Group - Fleetio Assets
- Status Code: OBD Fault Code
- Cron Option: No
- Rule Selector:
(true)
- Minimum Interval: Leave all fields (days, hours, minutes) on the default 0
- Trigger Action - Email: Uncheck this box
- Trigger Action - Queue: Check this box
- Click 'Next' to go to the 'Notify' page and do the following:
- Notify - via Email: Leave this field blank
- Notify - Email Message ("Enter Email Subject"): Leave this field blank
- Notify - Email Message ("Enter Email Message"): Copy and paste everything in the block below
{
"apiAuth":"ADD API KEY HERE",
"apiToken":"ADD ACCOUNT TOKEN HERE",
"faultCodes":"${faultCodes}"
} - Notify - via Text: Leave this field blank
- Notify - Text Message: Leave this field blank
- Click 'Next' to go to the 'Finalize' page:
- At the top of this page (you may need to scroll up), untoggle the 'Active' button, you will come back and activate this later on.
- Click 'Save' and move on to Step 3.
-
To send over Location data, configure the the custom Alert exactly as detailed below, starting with 'Alert Details':
- Alert Name: x-api-fleetio-location
- Applies To: Group - Fleetio Assets
- Status Code: All Codes
- Cron Option: No
- Rule Selector:
lat != 0 && lon != 0
- Minimum Interval: Leave all fields (days, hours, minutes) on the default 0
- Trigger Action - Email: Uncheck this box
- Trigger Action - Queue: Check this box
- Click 'Next' to go to the 'Notify' page and do the following:
- Notify - via Email: Leave this field blank
- Notify - Email Message ("Enter Email Subject"): Leave this field blank
- Notify - Email Message ("Enter Email Message"): Copy and paste everything in the block below
{
"apiAuth":"ADD API KEY HERE",
"apiToken":"ADD ACCOUNT TOKEN HERE",
"lat":"${latitude}",
"lon":"${longitude}"
} - Notify - via Text: Leave this field blank
- Notify - Text Message: Leave this field blank
- Click 'Next' to go to the 'Finalize' page:
- At the top of this page (you may need to scroll up), untoggle the 'Active' button, you will come back and activate this later on.
- Click 'Save' and move on to Step 3.
- To Geolate Fueling Events within Fleetio, configure the the custom Alert exactly as detailed below, starting with 'Alert Details':
- Alert Name: x-api-fleetio-fuel
- Applies To: Group - Fleetio Assets
- Status Code: All Codes
- Cron Option: Daily
- Rule Selector:
(true)
- Minimum Interval: Leave all fields (days, hours, minutes) on the default 0
- Trigger Action - Email: Uncheck this box
- Trigger Action - Queue: Check this box
- Click 'Next' to go to the 'Notify' page and do the following:
- Notify - via Email: Leave this field blank
- Notify - Email Message ("Enter Email Subject"): Leave this field blank
- Notify - Email Message ("Enter Email Message"): Copy and paste everything in the block below
{
"apiAuth":"ADD API KEY HERE",
"apiToken":"ADD ACCOUNT TOKEN HERE"
} - Notify - via Text: Leave this field blank
- Notify - Text Message: Leave this field blank
- Click 'Next' to go to the 'Finalize' page:
- At the top of this page (you may need to scroll up), untoggle the 'Active' button, you will come back and activate this later on.
- Click 'Save' and move on to Step 3.