Vincent is here! Just say the word, and Vincent will build the campaigns for you! Get early access.
{
"rule": {
"id": "val_rfuNf5qDB9xg",
"name": "Business Validation Rule - 2/15/2024",
"type": "expression",
"rules": {
"1": {
"name": "customer.segment",
"error": {
"message": "Incorrect segment"
},
"rules": {},
"conditions": {
"$is": [
"seg_n3vVcU5t0m3rs4rEPr3C1oU5"
]
}
},
"2": {
"name": "order.initial_amount",
"rules": {},
"conditions": {
"$more_than": [
9900
]
}
},
"3": {
"name": "order.items.count",
"rules": {},
"conditions": {
"$more_than": [
3
]
}
},
"4": {
"name": "order.items.price_each",
"rules": {},
"conditions": {
"$more_than": [
500
]
}
},
"logic": " 1 AND 2 AND ( 3 AND 4 )"
},
"object": "validation_rules",
"created_at": "2024-02-15T11:04:01.856Z",
"context_type": "campaign.promotion",
"applicable_to": {
"excluded": [],
"included": [],
"included_all": false
}
}
}{
"rule": {
"id": "val_rfuNf5qDB9xg",
"name": "Business Validation Rule - 2/15/2024",
"type": "expression",
"rules": {
"1": {
"name": "customer.segment",
"error": {
"message": "Incorrect segment"
},
"rules": {},
"conditions": {
"$is": [
"seg_n3vVcU5t0m3rs4rEPr3C1oU5"
]
}
},
"2": {
"name": "order.initial_amount",
"rules": {},
"conditions": {
"$more_than": [
9900
]
}
},
"3": {
"name": "order.items.count",
"rules": {},
"conditions": {
"$more_than": [
3
]
}
},
"4": {
"name": "order.items.price_each",
"rules": {},
"conditions": {
"$more_than": [
500
]
}
},
"logic": " 1 AND 2 AND ( 3 AND 4 )"
},
"object": "validation_rules",
"created_at": "2024-02-15T11:04:01.856Z",
"context_type": "campaign.promotion",
"applicable_to": {
"excluded": [],
"included": [],
"included_all": false
}
}
}TheDocumentation Index
Fetch the complete documentation index at: https://docs.voucherify.io/llms.txt
Use this file to discover all available pages before exploring further.
EVENTS.BUS_VAL_RULE.CREATED event indicates that a new business validation rule has been successfully created in Voucherify. This event provides, among others, the following details about the newly created rule:
Event data object schema for bus_val_rule.created.
Webhook accepted
Was this page helpful?