Discount all the SKU in an order based on the customer email domain
Rule breakdown, resource payload analysis, and outcomes explanation
{
"rules": [
{
"name": "Customer email domain mybrand.com / example.com",
"conditions_logic": "or",
"conditions": [
{
"field": "order.customer_email",
"matcher": "matches",
"value": ".*@mybrand.com"
},
{
"field": "order.customer_email",
"matcher": "matches",
"value": ".*@example.com"
}
],
"actions": [
{
"type": "percentage",
"selector": "order.line_items.sku",
"value": 0.15
}
]
}
]
} Rules breakdown
Conditions
Actions
Resource payload analysis
Result check
Conclusion
Last updated