Updated

EVENT: "EVENTS.BUS_VAL_RULE.UPDATED"

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.

📘

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