Modo Claro
Update Product Variant Quantity
PUT
/products/quantities/variant/{variant}Last modified: a month ago
This endpoint allows you to update a specific product variant quantity by passing the variant
as a path parameter.
Request
Parâmetros Path
variant
string
requerido
Parâmetros Bodyapplication/json
quantity
integer
requerido
The new amount of the product variant quantities.
Exemplo
{
"quantity": 13
}
Request samples
Respostas
Updated Successfully(201)
Not Found(404)
Error Validation(422)
Updated Successfully
HTTP Code: 201
Content Type : JSONapplication/json
Esquema de Dados
No schema defined
Exemplo
{
"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: a month ago