{
"rule": {
"id": "val_WmgZXBqwCZrv",
"name": "Business Validation Rule - 2/9/2024",
"type": "expression",
"rules": {
"1": {
"name": "order.initial_amount",
"rules": {},
"conditions": {
"$more_than": [
9900
]
}
},
"logic": " 1"
},
"object": "validation_rules",
"created_at": "2024-02-09T10:15:49.306Z",
"updated_at": "2024-02-09T10:16:47.426Z",
"context_type": "campaign.discount_coupons.discount.percent.apply_to_items",
"applicable_to": {
"excluded": [
{
"id": "prod_0df14b7e7d8975079d",
"effect": "APPLY_TO_EVERY",
"object": "product",
"strict": false
},
{
"id": "pc_vmP8CPV6dC2X4a4ouI2bAJAP",
"effect": "APPLY_TO_EVERY",
"object": "products_collection",
"strict": false
}
],
"included": [
{
"id": "prod_0de0c540ad917bb410",
"effect": "APPLY_TO_EVERY",
"object": "product",
"strict": false,
"amount_limit": 500,
"quantity_limit": 2,
"aggregated_amount_limit": 10000,
"aggregated_quantity_limit": 4
},
{
"id": "pc_Pz9rI3FroSYacwobgNT5uiNN",
"effect": "APPLY_TO_EVERY",
"object": "products_collection",
"strict": false,
"amount_limit": 5000,
"quantity_limit": 3,
"aggregated_amount_limit": 50000,
"aggregated_quantity_limit": 10
}
],
"included_all": false
}
},
"voucher": {
"id": "v_sgi3vqxJZ4rg1WHS1iyyTVskoRqoMpUp",
"code": "Test-applicable-1",
"type": "DISCOUNT_VOUCHER",
"active": true,
"object": "voucher",
"campaign": "Test-campaign-applicable-to",
"discount": {
"type": "PERCENT",
"effect": "APPLY_TO_ITEMS",
"percent_off": 5,
"amount_limit": 15000,
"aggregated_amount_limit": 30000
},
"metadata": {},
"created_at": "2024-02-09T10:16:04.749Z",
"redemption": {
"quantity": null,
"redeemed_quantity": 0
},
"campaign_id": "camp_18NCNUkQIaXnqbHqhtQnt355",
"category_id": null,
"is_referral_code": false
},
"campaign": {
"id": "camp_18NCNUkQIaXnqbHqhtQnt355",
"object": "campaign"
},
"assignment": {
"id": "asgm_6wuh8m2Ic1aT3NHD",
"object": "validation_rules_assignment",
"rule_id": "val_WmgZXBqwCZrv",
"created_at": "2024-02-09T10:16:47.835Z",
"related_object_id": "v_sgi3vqxJZ4rg1WHS1iyyTVskoRqoMpUp",
"related_object_type": "voucher"
},
"distribution": null,
"earning_rule": null,
"promotion_tier": null
}Assignment Created
WEBHOOK
EVENTS.BUS_VAL_RULE.ASSIGNMENT.CREATED
{
"rule": {
"id": "val_WmgZXBqwCZrv",
"name": "Business Validation Rule - 2/9/2024",
"type": "expression",
"rules": {
"1": {
"name": "order.initial_amount",
"rules": {},
"conditions": {
"$more_than": [
9900
]
}
},
"logic": " 1"
},
"object": "validation_rules",
"created_at": "2024-02-09T10:15:49.306Z",
"updated_at": "2024-02-09T10:16:47.426Z",
"context_type": "campaign.discount_coupons.discount.percent.apply_to_items",
"applicable_to": {
"excluded": [
{
"id": "prod_0df14b7e7d8975079d",
"effect": "APPLY_TO_EVERY",
"object": "product",
"strict": false
},
{
"id": "pc_vmP8CPV6dC2X4a4ouI2bAJAP",
"effect": "APPLY_TO_EVERY",
"object": "products_collection",
"strict": false
}
],
"included": [
{
"id": "prod_0de0c540ad917bb410",
"effect": "APPLY_TO_EVERY",
"object": "product",
"strict": false,
"amount_limit": 500,
"quantity_limit": 2,
"aggregated_amount_limit": 10000,
"aggregated_quantity_limit": 4
},
{
"id": "pc_Pz9rI3FroSYacwobgNT5uiNN",
"effect": "APPLY_TO_EVERY",
"object": "products_collection",
"strict": false,
"amount_limit": 5000,
"quantity_limit": 3,
"aggregated_amount_limit": 50000,
"aggregated_quantity_limit": 10
}
],
"included_all": false
}
},
"voucher": {
"id": "v_sgi3vqxJZ4rg1WHS1iyyTVskoRqoMpUp",
"code": "Test-applicable-1",
"type": "DISCOUNT_VOUCHER",
"active": true,
"object": "voucher",
"campaign": "Test-campaign-applicable-to",
"discount": {
"type": "PERCENT",
"effect": "APPLY_TO_ITEMS",
"percent_off": 5,
"amount_limit": 15000,
"aggregated_amount_limit": 30000
},
"metadata": {},
"created_at": "2024-02-09T10:16:04.749Z",
"redemption": {
"quantity": null,
"redeemed_quantity": 0
},
"campaign_id": "camp_18NCNUkQIaXnqbHqhtQnt355",
"category_id": null,
"is_referral_code": false
},
"campaign": {
"id": "camp_18NCNUkQIaXnqbHqhtQnt355",
"object": "campaign"
},
"assignment": {
"id": "asgm_6wuh8m2Ic1aT3NHD",
"object": "validation_rules_assignment",
"rule_id": "val_WmgZXBqwCZrv",
"created_at": "2024-02-09T10:16:47.835Z",
"related_object_id": "v_sgi3vqxJZ4rg1WHS1iyyTVskoRqoMpUp",
"related_object_type": "voucher"
},
"distribution": null,
"earning_rule": 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.CREATED event indicates that a business validation rule has been assigned. A business validation rule can be assigned to a:
- Campaign,
- Voucher code,
- Promotion tier,
- Earning rule,
- Or any other entity that can be associated with a validation rule within Voucherify.
This page documents only the event. If you need more details about the webhook payload data that includes this event, go to Introduction to webhooks page.
Body
application/json
Event data object schema for bus_val_rule.assignment.created.
This is an object representing a response validation rule.
Show child attributes
Show child attributes
Assignments of a business validation rule
Show child attributes
Show child attributes
Simplified voucher data.
Show child attributes
Show child attributes
Simplified campaign data.
Show child attributes
Show child attributes
Assign a validation rule to a distribution.
Show child attributes
Show child attributes
Simplified promotion tier data.
Show child attributes
Show child attributes
Simplified earning rule data.
Show child attributes
Show child attributes
Response
Webhook accepted
Last modified on June 2, 2026
Was this page helpful?
⌘I

