Update Product Variant Quantity
Deprecated
Production
https://api.salla.dev/admin/v2
Production
https://api.salla.dev/admin/v2
PUT
https://api.salla.dev/admin/v2
Product Variants
Last modified:2025-01-30 10:45:17
variant
as a path parameter.Important
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.salla.dev/admin/v2/products/quantities/variant/' \
--header 'Content-Type: application/json' \
--data-raw '{
"quantity": 13
}'
Response Response Example
201 - 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": "٣ كجم"
}
}
Request
Path Params
variant
string
required
Body Params application/json
Responses
Modified at 2025-01-30 10:45:17