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

Response

200 - application/json

Indicates that a validation rule has been unassigned.

Event data object schema for bus_val_rule.assignment.deleted.

rule
object

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

assignment
object

Assignments of a business validation rule

voucher
object

Simplified voucher data.

campaign
object

Simplified campaign data.

distribution
object

Assign a validation rule to a distribution.

promotion_tier
object

Simplified promotion tier data.

earning_rule
object

Simplified earning rule data.

I