Update Quantity By SKU
DeprecatedPUT
/products/quantities/bySku/{sku}This endpoint allows you to update specific product price by passing the sku
as a path parameter.
:::warning Important
As this endpoint is to be deprecated soon, it is recommended to adapt using the Update Bulk Quantities endpoint
:::
Request
The Product SKU. List of Product SKU can be found here.
The numerical value representing the number of units or items of a specific product available, required if
the variable unlimited_quantity
is = false
Mode of quantity update; one of the allowed enum values.
Option to indicate the product is of unlimited quantity.
The branch quantities object is required if the store installed an App developed called Retail Store | متاجر التجزئة
{
"quantity": 5,
"mode": "increment"
}
Request samples
[api.label.responses]
Response status code, a numeric or alphanumeric identifier used to convey the outcome or status of a request, operation, or transaction in various systems and applications, typically indicating whether the action was successful, encountered an error, or resulted in a specific condition.
Response flag, boolean indicator used to signal a particular condition or state in the response of a system or application, often representing the presence or absence of certain conditions or outcomes.
A text or data communication generated by a system or application in response to a request.
A numerical or alphanumeric identifier used in various systems and protocols to indicate the status or outcome of a specific request.
{
"status": 201,
"success": true,
"data": {
"message": "The details has been updated successfully",
"code": 201
}
}