Fetch the Vehicle Gateways of an organization

Purpose: This endpoint fetches all the available vehicle gateways that are assigned to your company or organization. It is important to note that your company must have an vehicle gateways and those must be assigned to a vehicle as well as must be installed in those vehicles.

require 'uri'
require 'net/http'

url = URI('https://api.gomotive.com/v1/eld_devices')

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request['Authorization'] = "Bearer <OAUTH_TOKEN>"

response = http.request(request)
puts response.read_body

Response Parameters

eld_devices

  • Type: Object
  • Description: This object contains the information pertaining to the ELD devices of your organisation.

vehicles

  • Type: Object
  • Description: This object contains the vehicle information tha is associated with the ELD device.

eld_devices Object

id

  • Type: Integer
  • Description: Denotes the ID of the ELD device that is assigned to the above vehicle.

identifier

  • Type: String
  • Description: Denotes the unique identifier of the ELD device.

model

  • Type: String
  • Description: Denotes the model name or the number of the ELD device.

vehicle Object

id

  • Type: Integer
  • Description: Denotes the unique identifier of the organization's vehicle to which this ELD device is assigned to.

number

  • Type: String
  • Description: Denotes the number of the vehicle to which the ELD device is assigned to.

year

  • Type: Integer
  • Description: Denotes the manufacturing year of the organization's vehcicle.

make

  • Type: String
  • Description: Denotes the name of the manufacturer of the organization's vehicle.

model

  • Type: String
  • Description: Denotes the name of the model of the vehicle.

vin

  • Type: String
  • Description: Denotes the VIN number of the vehicle.

metric_units

  • Type: Boolean
  • Description: Denotes if the vehicle uses the metric units for measuring its data or not.
    TRUE: Denotes that the vehicle uses metric units.
    FALSE: Denotes that the vehicle does not use metric units.

mcleod_id

  • Type: String
  • Description: Denotes the McLeod ID of the vehicle.
    NOTE: This ID appears only if the McLeod integration is enabled and active for an account. Otherwise, you will not see this parameter appear in the response.

Language
Credentials
Header
Click Try It! to start a request and see the response here!