Update Price Rule
PUT /v2/price-rule/:id
Updates an existing price rule (price engine) by ID. Validates the payload, applies changes, and returns the full updated resource including identifiers and timestamps.
Request Body
{
"name": "Markup",
"type": "markup",
"productIDs": [
"b52ad07c-47fd-4509-abce-432cace1d77d"
],
"active": true,
"allowStacking": false,
"percentage": 10
}
Response Example
{
"name": "Markup",
"tenant": "tenant-id-1",
"type": "markup",
"productIDs": [
"00000000-0000-0000-0000-000000000001"
],
"customerIDs": [],
"productCollectionIDs": [],
"customerCollectionIDs": [],
"dateRange": {
"from": "2023-06-01T00:00:00.000Z",
"to": "2023-08-31T23:59:59.999Z"
},
"active": true,
"allowStacking": false,
"percentage": 10,
"priceRange": [],
"deleted": null,
"_id": "rule-object-id-1",
"created": "2025-10-21T16:32:36.573Z",
"updated": "2025-10-21T16:33:04.740Z",
"id": "rule-object-id-1"
}