get https://api.gomotive.com/v1/freight_visibility/companies
Recipes
🦉
Configure the visibility of your Freight
Open Recipe
Purpose: Usually, a vehicle location or tracking information can be shared with third-parties, brokers, or stakeholders for regular monitoring as well as to provide certain services. This location sharing is done for a limited time period.
If a broker, or a third-party wants to know which all companies allow the sharing of vehicle tracking info, then they can call this endpoint. This endpoint is mostly used by the brokers, or the third-party agents.
require 'uri'
require 'net/http'
url = URI('https://api.gomotive.com/v1/freight_visibility/companies')
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
data
- Type: Object
- Description: Contains information about companies.
companies
- Type: Array of Objects
- Description: List of company details.
name
- Type: String
- Description: The name of the company.
company_id
- Type: String
- Description: Unique identifier for the company.
dot_ids
- Type: Array
- Description: List of DOT IDs associated with the company.
street
- Type: String
- Description: Street address of the company.
city
- Type: String
- Description: City where the company is located.
state
- Type: String
- Description: State where the company is located.
zip
- Type: String
- Description: ZIP code of the company address.