Inventory API
Shippings
Retrieve Shipping
path parameters id the id of the shipping to retrieve require "uri" require "net/http" url = uri("https //api tamio com/v2/shippings/retrieve/c8006b68 6619 4b3f 844c 7025ffaa5b3b") 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/shippings/retrieve/c8006b68 6619 4b3f 844c 7025ffaa5b3b", 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/shippings/retrieve/c8006b68 6619 4b3f 844c 7025ffaa5b3b' \\ \ header 'accept application/json' \\ \ header 'authorization bearer your token here'import requests url = "https //api tamio com/v2/shippings/retrieve/c8006b68 6619 4b3f 844c 7025ffaa5b3b" payload={} headers = { 'accept' 'application/json', 'authorization' 'bearer your token here' } response = requests request("get", url, headers=headers, data=payload) print(response text) { "status" 200, "shipping" { "object" "shipping", "id" "c8006b68 6619 4b3f 844c 7025ffaa5b3b", "label" "new shipping method", "currency" "eur", "destination" \[ "worldwide" ], "price" 1200, "has bundling" true, "postcodes" \[], "states" \[], "sites" \[], "active" true, "bundling rules" \[ { "cost rule" "unit", "type" "range", "max" 100, "cost" 100, "from" 1, "to" 5 }, { "cost rule" "fixed", "type" "max", "max" 5, "cost" 80 } ] } }