Light Mode
Update Product Variant Quantity
PUT
/products/quantities/variant/{variant}Last modified: 25 days ago
This endpoint allows you to update a specific product variant quantity by passing the variant
as a path parameter.
Request
Path Params
variant
string
required
Body Params application/json
quantity
integer
required
The new amount of the product variant quantities.
Example
{
"quantity": 13
}
Request samples
Responses
Updated Successfully(201)
Not Found(404)
Error Validation(422)
Updated Successfully
HTTP Code: 201
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
{
"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
],
"weight": 3,
"weight_type": "kg",
"weight_label": "٣ كجم"
}
}
Last modified: 25 days ago