Deleted

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

The EVENTS.BUS_VAL_RULE.DELETED event indicates that a business validation rule has been successfully deleted from Voucherify.

📘

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.deleted

{
  "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",
    "updated_at": "2024-02-15T11:06:04.849Z",
    "context_type": "campaign.promotion",
    "applicable_to": {
      "excluded": [],
      "included": [],
      "included_all": false
    }
  }
}
Language
Click Try It! to start a request and see the response here!