Aggregation
How to aggregate the targets of an action
Example
"actions": [
{
"type": "percentage",
"selector": "order.line_items",
"groups": [ "discountable-items" ],
"aggregation": {
"field": "order.line_items.total_amount_cents",
"operator": "sum",
"matcher": "lteq",
"value": 4500
},
"value": 0.3
}
]Last updated