Inventory API
Products
Update Product
this api endpoint (post) (post) updates an existing product if the request succeeds, it returns a product object docid 4hx r lwtyahq1 pey1da permissions products edit webhook events product events docid\ bfktivl3xva6ucdtrt5bz , product events docid\ bfktivl3xva6ucdtrt5bz and product events docid\ bfktivl3xva6ucdtrt5bz path parameters id the id of the product to update body parameters the body request parameters are the same as the create endpoint of the type of product you are editing for example, if you are updating a service product, the body parameters are the same as the create service docid\ faumlsn6bxctxch9oqlp3 api endpoint require "uri" require "json" require "net/http" url = uri("https //api tamio com/v2/products/update/cbadfed2 4464 452c a146 6f064c863953") https = net http new(url host, url port) https use ssl = true request = net http post new(url) request\["accept"] = "application/json" request\["authorization"] = "bearer your token here" data = { unlimited stock true, tax category "digital services", pricing model \[ { currency "eur", price 1000 } ], languages { en { title "my awesome product" } } } request body = data to json response = https request(request) puts response read bodycurl location request post 'https //api tamio com/v2/products/update/cbadfed2 4464 452c a146 6f064c863953' \\ \ header 'accept application/json' \\ \ header 'authorization bearer your token here' \\ \ data raw '{"languages" {"en" {"title" "new product title"}}}'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("authorization", "bearer your token here"); var data = { languages { en { title "new product title" } } }; var body = json stringify(data); var requestoptions = { method 'post', headers myheaders, body body }; fetch("https //api tamio com/v2/products/update/cbadfed2 4464 452c a146 6f064c863953", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));{ "product" { "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, "reviews allowed" false, "hide if no stock" null, "shown" true, "description" null, "seo description" null, "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 } ], "related products" null, "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 } }, "is moss product" true }, "status" 200 }