Update Product Variant Quantity

PUT {{baseUrl}}/products/quantities/variant/:variant

This endpoint allows you to 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

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;status&quot;:&quot;\u003cnumber\u003e&quot;,&quot;success&quot;:&quot;\u003cboolean\u003e&quot;,&quot;data&quot;:{&quot;id&quot;:&quot;\u003cnumber\u003e&quot;,&quot;barcode&quot;:&quot;\u003cstring\u003e&quot;,&quot;sku&quot;:&quot;\u003cstring\u003e&quot;,&quot;price&quot;:{&quot;amount&quot;:&quot;\u003cnumber\u003e&quot;,&quot;currency&quot;:&quot;\u003cstring\u003e&quot;},&quot;sale_price&quot;:{&quot;amount&quot;:&quot;\u003cnumber\u003e&quot;,&quot;currency&quot;:&quot;\u003cstring\u003e&quot;},&quot;regular_price&quot;:{&quot;amount&quot;:&quot;\u003cnumber\u003e&quot;,&quot;currency&quot;:&quot;\u003cstring\u003e&quot;},&quot;cost_price&quot;:{&quot;amount&quot;:&quot;\u003cnumber\u003e&quot;,&quot;currency&quot;:&quot;\u003cstring\u003e&quot;},&quot;stock_quantity&quot;:&quot;\u003cinteger\u003e&quot;,&quot;unlimited_quantity&quot;:&quot;\u003cboolean\u003e&quot;,&quot;related_options&quot;:[&quot;\u003cinteger\u003e&quot;,&quot;\u003cinteger\u003e&quot;],&quot;related_option_values&quot;:[&quot;\u003cinteger\u003e&quot;,&quot;\u003cinteger\u003e&quot;],&quot;is_default&quot;:&quot;\u003cboolean\u003e&quot;,&quot;weight&quot;:&quot;\u003cnumber\u003e&quot;,&quot;weight_type&quot;:&quot;\u003cstring\u003e&quot;,&quot;weight_label&quot;:&quot;\u003cstring\u003e&quot;,&quot;gtin&quot;:&quot;\u003cstring\u003e&quot;,&quot;mpn&quot;:&quot;\u003cstring\u003e&quot;,&quot;notify_low&quot;:&quot;\u003cinteger\u003e&quot;}}