Accounting API
Taxes
Retrieve Tax
this api endpoint ( get get ) retrieve a tax rate by id if the request succeeds, it will return a tax object docid\ ss8eayx qbyxxlmry9 rk permissions taxes view path parameters id the id of the tax to retrieve require "uri" require "net/http" url = uri("https //api tamio com/v2/taxes/retrieve/64305b0e 92f4 46b9 b2da fa27615c3821") 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 curl location request get 'https //api tamio com/v2/taxes/retrieve/64305b0e 92f4 46b9 b2da fa27615c3821' \\ \ header 'accept application/json' \\ \ header 'authorization bearer your token here'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/taxes/retrieve/64305b0e 92f4 46b9 b2da fa27615c3821", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));{ "status" 200, "tax" { "object" "tax", "id" "64305b0e 92f4 46b9 b2da fa27615c3821", "rate" 12 0, "amount" 0 0, "label" "custom shipping tax", "active" false, "country" null, "type" "shipping tax", "applies to" "all shippings", "postcodes" null, "states" null, "payments" null } }