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"=>"<integer>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"status":"\u003cnumber\u003e","success":"\u003cboolean\u003e","data":{"id":"\u003cinteger\u003e","price":{"amount":"\u003cnumber\u003e","currency":"\u003cstring\u003e"},"regular_price":{"amount":"\u003cnumber\u003e","currency":"\u003cstring\u003e"},"sale_price":{"amount":"\u003cnumber\u003e","currency":"\u003cstring\u003e"},"stock_quantity":"\u003cinteger\u003e","barcode":"\u003cstring\u003e","sku":"\u003cstring\u003e","related_option_values":["\u003cinteger\u003e","\u003cinteger\u003e"],"is_default":"\u003cboolean\u003e","weight":"\u003cnumber\u003e","weight_type":"\u003cstring\u003e","weight_label":"\u003cstring\u003e"}}