Skip to main content
WEBHOOK
EVENTS.BUS_VAL_RULE.UPDATED
{
  "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
    }
  }
}
The EVENTS.BUS_VAL_RULE.UPDATED event indicates that an existing business validation rule has been successfully modified. The event provides the details about the business validation rule with the changes included. 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

Event data object schema for bus_val_rule.updated.

rule
object

This is an object representing a request validation rule. This is an object representing a response validation rule.

updated_at
string<date-time>

Timestamp representing the date and time when the validation rule was updated in the ISO 8601 format.

Example:

"2024-01-01T11:11:11.111Z"

Response

Webhook accepted