Inventory API
Shippings
List All Shippings
this api endpoint ( get get ) retrieves all your shipping methods 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 shipping object docid 5za enkucyxmck0padqau the number of available results and the flags used for filtering permissions shippings 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 email , label , country , address , city , telephone , postcode and state tax id optional identified used for filtering results if provided it will return the shipping methods that are associated with this tax rate filter optional text used for filtering results countries ( appendix docid\ kfbmx4q3dxjtduqf75yx1 ) ( example ?countries=de,ro ) a list of country codes to use for filtering if provided it will return shipping methods that serve any of the required countries order determines in which order the results are returned the available options are asc (ascending) and desc (descending) the default value is desc 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/list?page=1\&per page=10", 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/list?page=1\&per page=10' \\ \ header 'accept application/json' \\ \ header 'authorization bearer your token here'require "uri" require "net/http" url = uri("https //api tamio com/v2/shippings/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 import requests url = "https //api tamio com/v2/shippings/list?page=1\&per page=10" payload={} headers = { 'accept' 'application/json', 'authorization' 'bearer your token here' } response = requests request("get", url, headers=headers, data=payload) print(response text) { "status" 200, "shippings" \[ { "object" "shipping", "id" "c8006b68 6619 4b3f 844c 7025ffaa5b3b", "label" "new shipping method", "currency" "eur", "destination" \[ "worldwide" ], "price" 12, "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 } ] } ], "total results" 1, "page" 1, "per page" 10, "sort by" null, "filter" null }