Discount an order based on promo item and total number of items
Rule breakdown, resource payload analysis, and outcomes explanation
{
"rules": [
{
"name": "Get 10% discount on the whole order if a specific SKU is present",
"conditions": [
{
"field": "order.line_items.sku.code",
"matcher": "eq",
"value": "PROMOTSHIRT"
},
{
"field": "order.skus_count",
"matcher": "gteq",
"value": 3
}
],
"actions": [
{
"type": "percentage",
"selector": "order",
"value": 0.1
}
]
}
]
} Rules breakdown
Conditions
Actions
Resource payload analysis
Outcomes check
Conclusion
PreviousGet a discount when paying by credit cardNextOffer a specific shipping method for free in a specific country
Last updated