Skip to main content
POST
/
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
    }
  }
}

Response

200 - application/json

Indicates that a validation rule has been updated.

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"

I