freight_visibility/subscribe

Cancel a tracking subscription.

Constraints

  • Only subscriptions that haven’t already ended may be cancelled

Note

  • Cancelling a subscription just hides it from the perspective of the consumers of the API, helping them eliminate ambiguity under some scenarios. A consumer will not see the cancelled subscription when pulling location information. No push will be made for webhook enabled consumers against a cancelled subscription. However, fleets will still see their corresponding vehicle or asset being tracked as usual.
  • The consumer will still be billed for the duration of the subscription regardless of the subscription being cancelled.
require 'uri'
require 'net/http'

url = URI('https://api.keeptruckin.com/v1/freight_visibility/subscribe')

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

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

response = http.request(request)
puts response.read_body
Language
Authorization
Header
Click Try It! to start a request and see the response here!