Operations API
Subscriptions
Retrieve Upgrades
this api endpoint ( get get ) retrieves all the possible pricing models that can be used for upgrading or downgrading a subscription path parameters id the id of the subscription require "uri" require "net/http" url = uri("https //api tamio com/v2/subscriptions/upgrades/c121e306 b129 4289 a093 03d71700cee4") https = net http new(url host, url port) https use ssl = true request = net http get new(url) request\["accept"] = "application/json" request\["authorization"] = "bearer your token here" response = https request(request) puts response read body var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("authorization", "bearer your token here"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //api tamio com/v2/subscriptions/upgrades/c121e306 b129 4289 a093 03d71700cee4", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));curl location request get 'https //api tamio com/v2/subscriptions/upgrades/c121e306 b129 4289 a093 03d71700cee4' \\ \ header 'accept application/json' \\ \ header 'authorization bearer your token here'{ "status" 200, "upgrades" \[ { "id" "957003bd dc98 422d 8dc7 44929e191a70", "name" "billing plan a", "is upgrade" false, "trial period" 10, "currency" "eur", "cost" 100, "billing cycle" "month", "interval" 1, "pricing model id" "0eebfc41 62d7 47bb 9528 00dd165944e5", "stripe price id" "price 1ls3acgvhw7af69dwie4psdi" } ] }