Light Mode
Update Bulk Product Prices
POST
/products/prices/bulkPriceLast modified:Â 10 days ago
This endpoint allows you to update unlimited bulk products' prices by providing the IDs of the products and the price amounts to be updated.
Request
Body Params application/json
products
array [object {5}]Â
required
>= 1 items
price
numberÂ
required
Product Price
Example:
500
cost_price
numberÂ
optional
Cost Price
Example:
550
sale_price
numberÂ
optional
Sale Price
Example:
600
sale_end
stringÂ
optional
Sale price end
Example:
2022-07-30
Example
{
"products": [
{
"id": 784769282,
"price": 500,
"cost_price": 550,
"sale_price": 600,
"sale_end": "2022-07-30"
}
]
}
Request samples
Responses
Created Successfully(201)
Error Validation(422)
Created Successfully
HTTP Code:Â 201
Content Type :Â JSONapplication/json
Data Schema
No schema defined
Example
{
"status": 201,
"success": true,
"data": {
"message": "The details has been queued to update, it may take several minutes to finish the process.",
"code": 201
}
}
Last modified: 10 days ago