Light Mode
Update Bulk Product Prices
POST
/products/prices/bulkPriceLast modified: 19 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: 19 days ago