Update Product By SKU
PUT {{baseUrl}}/products/sku/:sku
You can update specific product Details by providing the SKU of the product you want to update its details in the sku path parameter.
OAuth Scopes
products.read_write
Request Body
{"name"=>"T-Shirt Blue", "price"=>96.33, "quantity"=>4, "description"=>"<strong>Good snowboard!</strong>", "categories"=>[254121314, 254221314, 254521314], "min_amount_donating"=>1, "max_amount_donating"=>5, "sale_price"=>43, "cost_price"=>35, "sale_end"=>"2019-08-13", "require_shipping"=>false, "maximum_quantity_per_order"=>0, "weight"=>12, "sku"=>"23-TD23-32", "hide_quantity"=>false, "enable_upload_image"=>true, "enable_note"=>true, "pinned"=>true, "subtitle"=>"Collection 2020", "promotion_title"=>"New", "metadata_title"=>"T-Shirt blue - collection 2020", "metadata_description"=>"T-Shirt blue - collection 2020", "brand_id"=>254221314, "tags"=>[254121314, 254221314, 254521314]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"status":201,"success":true,"data":{"id":2127310087,"promotion":{"title":"جديد","sub_title":"عطر فاخر"},"sku":"MU-1213","type":"product","name":"ليمون بلدي","short_link_code":"XeReZj","urls":{"customer":"https://shtara.com/profile","admin":"https://shtara.com/profile7"},"price":{"amount":9.9,"currency":"SAR"},"description":null,"quantity":13,"status":"hidden","is_available":false,"views":0,"sale_price":{"amount":0,"currency":"SAR"},"sale_end":null,"require_shipping":true,"cost_price":null,"weight":0,"with_tax":true,"url":"https://shtara.com/profile","images":[{"id":1379665616,"url":"https://i.ibb.co/jyqRQfQ/avatar-male.webp","main":true,"alt":"","video_url":"","type":"image","sort":0},{"id":381263673,"url":"https://i.ibb.co/jyqRQfQ/avatar-male.webp","main":true,"alt":"salamatest","video_url":"","type":"image","sort":1}],"sold_quantity":"3","rating":{"total":0,"count":1,"rate":0},"regular_price":{"amount":9.9,"currency":"SAR"},"max_items_per_user":0,"show_in_app":true,"notify_quantity":null,"unlimited_quantity":false,"managed_by_branches":false,"allow_attachments":false,"is_pinned":false,"pinned_date":"2018-11-27 12:21:16","enable_upload_image":true,"updated_at":"2021-02-19 00:40:22","options":[{"id":1833119338,"name":"User Name","description":null,"type":"radio","required":false,"associated_with_order_time":0,"sort":null,"display_type":"text","visibility":"always","values":[{"id":667315336,"name":"salamavalueupdated","price":{"amount":0,"currency":"SAR"},"display_value":null,"option_id":1833119338,"image_url":"https://i.ibb.co/jyqRQfQ/avatar-male.webp","hashed_display_value":null}]},{"id":1130246629,"name":"option1","description":null,"type":"radio","required":false,"associated_with_order_time":0,"sort":null,"display_type":"text","visibility":"always","values":[{"id":322122678,"name":"XL","price":{"amount":0,"currency":"SAR"},"display_value":"XL","option_id":1130246629,"image_url":"https://i.ibb.co/jyqRQfQ/avatar-male.webp","hashed_display_value":"XL"}]},{"id":636207668,"name":"kkkkkk","description":null,"type":"radio","required":false,"associated_with_order_time":0,"sort":null,"display_type":"text","visibility":"always","values":[{"id":1318371393,"name":"XkLX","price":{"amount":0,"currency":"SAR"},"display_value":"XkLX","option_id":636207668,"image_url":"https://i.ibb.co/jyqRQfQ/avatar-male.webp","hashed_display_value":"XkLX"}]}],"skus":[{"id":652911549,"price":{"amount":110,"currency":"SAR"},"regular_price":{"amount":234,"currency":"SAR"},"sale_price":{"amount":100,"currency":"SAR"},"stock_quantity":13,"barcode":"barcode-ABC","sku":"sku-variant-1551119600","related_option_values":[667315336,322122678,569679762,1318371393]},{"id":1966914519,"price":{"amount":9.9,"currency":"SAR"},"regular_price":{"amount":0,"currency":"SAR"},"sale_price":null,"stock_quantity":null,"barcode":null,"sku":null,"related_option_values":[667315336,322122678,1552401892,1318371393]},{"id":1799056677,"price":{"amount":9.9,"currency":"SAR"},"regular_price":{"amount":0,"currency":"SAR"},"sale_price":null,"stock_quantity":null,"barcode":null,"sku":null,"related_option_values":[667315336,322122678,1209980149,1318371393]},{"id":673658412,"price":{"amount":9.9,"currency":"SAR"},"regular_price":{"amount":0,"currency":"SAR"},"sale_price":null,"stock_quantity":null,"barcode":null,"sku":null,"related_option_values":[667315336,322122678,393917653,1318371393]}],"metadata":{"title":"metafromapi","description":"descfromAPI"},"categories":[{"id":883017162,"name":"عطور رجالية","sort_order":89931559}],"brand":{"id":883017162,"name":"بربري","description":"بربري","banner":"https://i.ibb.co/jyqRQfQ/avatar-male.webp","logo":"https://i.ibb.co/jyqRQfQ/avatar-male.webp","ar_char":"ب","en_char":"B"}}}