Update Product Variant Quantity
PUT {{baseUrl}}/products/quantities/variant/:variant
You can update a specific product variant quantity by providing the ID of the variant you want to update its quantity in the variant path parameter.
Request Body
{"quantity"=>13}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"status":201,"success":true,"data":{"id":652911549,"price":{"amount":13.5,"currency":"SAR"},"sale_price":{"amount":0,"currency":"SAR"},"regular_price":{"amount":0,"currency":"SAR"},"stock_quantity":3000,"barcode":"barcode-ABC","sku":"sku-variant-1551119600","related_option_values":[667315336]}}