Assignment deleted

EVENT: "EVENTS.BUS_VAL_RULE.ASSIGNMENT.DELETED"
HTTP method: POST

The EVENTS.BUS_VAL_RULE.ASSIGNMENT.DELETED event indicates that a business validation rule has been successfully unassigned.

📘

Webhook documentation

This page documents only the event. If you need more details about the webhook payload data that includes this event, go to Webhook v2024-01-01 page.

Example: business validation 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
}
Language
Click Try It! to start a request and see the response here!