Skip to main content
WEBHOOK
EVENTS.BUS_VAL_RULE.ASSIGNMENT.DELETED
{
  "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
}
The 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.
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
rule
object
assignment
object
voucher
object
campaign
object
distribution
object
promotion_tier
object
earning_rule
object

Response