Update Product Variant
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-02-02 12:23:10
variant
as a path parameter.Important
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.salla.dev/admin/v2/products/variants/' \
--header 'Content-Type: application/json' \
--data-raw '{
"sku": "23-TD23-32",
"barcode": "abc01",
"price": 96.33,
"sale_price": 90.5,
"cost_price": 100.33,
"stock_quantity": 4,
"weight": 3,
"mpn": 43242342,
"gtin": 54353453,
"quantities": [
{
"branch": 863926575,
"quantity": 100,
"reason_id": 303342349
},
{
"branch": 989845784,
"quantity": 89,
"reason_id": 303342349
}
]
}'
Response Response Example
201 - Example
{
"status": 201,
"success": true,
"data": {
"id": 652911549,
"price": {
"amount": 13.5,
"currency": "SAR"
},
"sale_price": {
"amount": 0,
"currency": "SAR"
},
"cost_price": {
"amount": 0,
"currency": "SAR"
},
"stock_quantity": 3000,
"barcode": "barcode-ABC",
"sku": "sku-variant-1551119600",
"related_option_values": [
667315336
]
}
}
Request
Path Params
variant
string
required
Body Params application/json
Responses
Modified at 2025-02-02 12:23:10