Accounting API
Taxes
List All Taxes
this api endpoint ( get get ) retrieves all your tax rates the response is paginated; therefore, you should use the 'page' parameter for navigating through the results in subsequent requests on successful completion, it returns an array of tax object docid\ ss8eayx qbyxxlmry9 rk the number of available results and the flags used for filtering permissions taxes view query parameters page fetch the results from a specific page it defaults to 1 per page the number of results to fetch per page the maximum is 50 and if it defaults to 10 sort by an optional identifier used for sorting results available options are rate , country and label filter optional text used for filtering results by label order determines in which order the results are returned the available options are asc (ascending) and desc (descending) the default value is desc require "uri" require "net/http" url = uri("https //api tamio com/v2/taxes/list?page=1\&per page=10") 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/list?page=1\&per page=10' \\ \ 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/list?page=1\&per page=10", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));{ "status" 200, "taxes" \[ { "object" "tax", "id" "8c79abbc 0748 4545 9514 afa28d6f983d", "rate" 10, "amount" 0, "label" "german tax", "active" false, "country" "de", "type" "product tax", "applies to" "all products", "postcodes" null, "states" null, "payments" null } ], "total results" 1, "page" 1, "per page" 10, "sort by" null, "filter" null }