Vincent is here! Just say the word, and Vincent will build the campaigns for you! Get early access.
{
"rule": {
"id": "val_w59dYLHbkcn5",
"name": "Initial amount more than 99",
"type": "expression",
"error": {
"message": "The initial amount is too low"
},
"rules": {
"1": {
"name": "order.initial_amount",
"rules": {},
"conditions": {
"$more_than": [
9900
]
}
},
"logic": " 1"
},
"object": "validation_rules",
"created_at": "2024-02-12T10:19:09.557Z",
"context_type": "global",
"applicable_to": {
"excluded": [],
"included": [],
"included_all": false
}
},
"campaign": {
"id": "camp_AQZ1GLRlbGaC2dETd31VbJQ9",
"object": "campaign"
},
"assignment": {
"id": "asgm_zlMpWI5mPVG6x3dg",
"object": "validation_rules_assignment",
"rule_id": "val_w59dYLHbkcn5",
"created_at": "2024-02-15T12:46:57.959Z",
"updated_at": "2024-02-15T14:02:47.889Z",
"related_object_id": "ern_FQxftbKUq9E93k00Z3qkC0sX",
"related_object_type": "earning_rule"
},
"distribution": null,
"earning_rule": {
"id": "ern_FQxftbKUq9E93k00Z3qkC0sX",
"active": true,
"metadata": {},
"parameters": {
"event": "order.paid",
"banner": "Order-paid",
"loyalty": {
"type": "PROPORTIONAL",
"order": {
"total_amount": {
"every": 500,
"points": 10
}
},
"calculation_type": "ORDER_TOTAL_AMOUNT"
}
},
"campaign_id": "camp_AQZ1GLRlbGaC2dETd31VbJQ9",
"automation_id": "auto_sRc6onPl70seyfrGOXhwDxYE",
"validation_rule_id": null
},
"promotion_tier": null
}{
"rule": {
"id": "val_w59dYLHbkcn5",
"name": "Initial amount more than 99",
"type": "expression",
"error": {
"message": "The initial amount is too low"
},
"rules": {
"1": {
"name": "order.initial_amount",
"rules": {},
"conditions": {
"$more_than": [
9900
]
}
},
"logic": " 1"
},
"object": "validation_rules",
"created_at": "2024-02-12T10:19:09.557Z",
"context_type": "global",
"applicable_to": {
"excluded": [],
"included": [],
"included_all": false
}
},
"campaign": {
"id": "camp_AQZ1GLRlbGaC2dETd31VbJQ9",
"object": "campaign"
},
"assignment": {
"id": "asgm_zlMpWI5mPVG6x3dg",
"object": "validation_rules_assignment",
"rule_id": "val_w59dYLHbkcn5",
"created_at": "2024-02-15T12:46:57.959Z",
"updated_at": "2024-02-15T14:02:47.889Z",
"related_object_id": "ern_FQxftbKUq9E93k00Z3qkC0sX",
"related_object_type": "earning_rule"
},
"distribution": null,
"earning_rule": {
"id": "ern_FQxftbKUq9E93k00Z3qkC0sX",
"active": true,
"metadata": {},
"parameters": {
"event": "order.paid",
"banner": "Order-paid",
"loyalty": {
"type": "PROPORTIONAL",
"order": {
"total_amount": {
"every": 500,
"points": 10
}
},
"calculation_type": "ORDER_TOTAL_AMOUNT"
}
},
"campaign_id": "camp_AQZ1GLRlbGaC2dETd31VbJQ9",
"automation_id": "auto_sRc6onPl70seyfrGOXhwDxYE",
"validation_rule_id": null
},
"promotion_tier": null
}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.ASSIGNMENT.DELETED event indicates that a business validation rule has been successfully unassigned.
This event is used in a webhook configured in Project settings in Voucherify dashboard.
Event data object schema for bus_val_rule.assignment.deleted.
This is an object representing a response validation rule.
Show child attributes
Assignments of a business validation rule
Show child attributes
Simplified voucher data.
Show child attributes
Simplified campaign data.
Show child attributes
Assign a validation rule to a distribution.
Show child attributes
Simplified promotion tier data.
Show child attributes
Simplified earning rule data.
Show child attributes
Webhook accepted
Was this page helpful?