Inventory API
Products
List All Products
this api endpoint ( get get ) retrieves all your products 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 product object docid 4hx r lwtyahq1 pey1da , the number of available results and the flags used for filtering permissions products 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 from appendix docid\ kfbmx4q3dxjtduqf75yx1 start date to use for filtering (the date the product was created) to appendix docid\ kfbmx4q3dxjtduqf75yx1 end date used for filtering (the date the product was created) sort by an optional identifier used for sorting results the available options are price , weight , length , width , height , isbn , upc , sku , ean , gtin , mpn , brand , model , asin , hscode , shown , discount allowed , exclude from feed , on sale , delivery type , license type type optional identified used for filtering results by product type the available options are physical services , digital products , billing plans , digital services , whitelabel plans and physical products filter optional text used for filtering products by title warehouse id the id of a warehouse to use for filtering if provided, it will return the products that are associated with this warehouse affiliate program id the id of an affiliate program to use for filtering if provided, it will return the products that are associated with this affiliate program discount id the id of a discount to use for filtering if provided, it will return the products that are associated with this discount tax id the id of a tax rate to use for filtering if provided, it will return the products that are associated with this tax rate teammate id if provided, it will return the products that are assigned to the teammate stock used to filter products that have stock or are out of stock the available options are enabled and disabled discounts used to filter products that can or cannot have discounts the available options are enabled and disabled minimum price it will filter products whose default price is at least the provided value maximum price it will filter products whose default price does not exceed the provided value billing cycle used to filter billing plans by billing cycle the available options are day , week , month and year trial used to filter billing plans by their trial availability the available options are enabled and disabled license type used to filter digital products by license type the available options are list , autogenerated and none on sale used to filter products that are available for sale or are currently hidden the available options are enabled and disabled on saletax classification tax classification products docid\ gaxf8cqa3te sjlpubl7a filters product by category currency appendix docid\ kfbmx4q3dxjtduqf75yx1 filters products by currency order determines in which order the results are returned the available options are asc (ascending) and desc (descending) the default value is desc related product id the id of a product to use for filtering if provided, it will return the products that are related to this product note that the results are not returned in the same order as the one saved on the related product var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("authorization", "bearer your token here"); var requestoptions = { method 'get', headers myheaders }; fetch("https //api tamio com/v2/products/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/products/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/products/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/products/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, "products" \[ { "id" "cbadfed2 4464 452c a146 6f064c863953", "object" "product", "name" " my awesome product", "classification" "digital services", "created" "2022 10 20 23 42 05 +0000", "created unix" 1666309325, "price" 1000, "currency" "eur", "gallery" \[], "in stock" true, "type" "digital service", "updated" "2022 10 20 23 42 05 +0000", "updated unix" 1666309325, "on sale" true, "discount allowed" true, "hide if no stock" null, "shown" true, "description" null, "seo description" null, "reviews allowed" false, "seo title" null, "stock" null, "tax calculation" "exclusive", "has variations" false, "unlimited stock" true, "pricing model" \[ { "id" "d50ddc33 6cc2 4ccb 86d8 72819cccb8c3", "object" "pricing model", "currency" "eur", "price" 1000, "recommended seller price" 0, "acquisition price" 0 } ], "custom attributes" null, "min units" null, "max units" null, "stock limit warning" null, "allow negative stock" false, "related products" null, "additional information" { "sample" false, "release date unix" null, "release date" null, "expiry date unix" null, "expiry date" null, "new from unix" null, "new from" null, "new to unix" null, "new to" null, "exclude from feed" false }, "languages" { "en" { "title" " my awesome product", "seo title" null, "description" null, "seo description" null, "slug" null } }, "is moss product" true } ], "total results" 1, "page" 1, "per page" 10, "sort by" null, "filter" null }