Inventory API
Products
Retrieve Product
this api endpoint ( get get ) retrieves a product by id if the request succeeds, it will return a product object docid 4hx r lwtyahq1 pey1da permissions products view path parameters id the id of the product to retrieve require "uri" require "net/http" url = uri("https //api tamio com/v2/products/retrieve/6e2fa1c1 35c1 416c 9b5c ea277f6ae390") 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 }; fetch("https //api tamio com/v2/products/retrieve/6e2fa1c1 35c1 416c 9b5c ea277f6ae390", 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/retrieve/6e2fa1c1 35c1 416c 9b5c ea277f6ae390' \\ \ header 'accept application/json' \\ \ header 'authorization bearer your token here'import requests url = "https //api tamio com/v2/products/retrieve/6e2fa1c1 35c1 416c 9b5c ea277f6ae390" payload={} headers = { 'accept' 'application/json', 'authorization' 'bearer your token here' } response = requests request("get", url, headers=headers, data=payload) print(response text) { "status" 200, "product" { "id" "6e2fa1c1 35c1 416c 9b5c ea277f6ae390", "object" "product", "name" "my awesome product", "classification" "ebooks", "created" "2022 10 24 22 41 07 +0000", "created unix" 1666651267, "price" 1000, "currency" "eur", "gallery" \[], "in stock" true, "type" "digital product", "updated" "2022 10 24 22 41 07 +0000", "updated unix" 1666651267, "on sale" true, "discount allowed" true, "reviews allowed" false, "hide if no stock" true, "shown" true, "description" null, "seo description" null, "seo title" null, "stock" 2, "tax calculation" "exclusive", "has variations" false, "unlimited stock" false, "pricing model" \[ { "id" "d50ddc33 6cc2 4ccb 86d8 72819cccb8c3", "object" "pricing model", "currency" "eur", "price" 1000 } ], "custom attributes" null, "min units" null, "max units" null, "stock limit warning" null, "allow negative stock" false, "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 } }, "number of downloads" 10, "digital files" \[], "delivery type" "file", "license type" "list", "related products" null, "licenses" \[ "my license", "my second license" ], "is moss product" true } }