Introduction to Policy Rules
Policy Rules are powerful tools that can be deployed to help make your returns flow intelligent. A policy rule is comprised of 2 parts:
These represent the conditions that must be fulfilled for the rule's outcome to be available. Each condition has four parts:
- Entity. This represents the entity that the condition will evaluate. Examples include Product or Return Order.
- Property. This represents the specific property within the entity that the condition will evaluate. Examples include tags for the Product entity and return reasons for the Return Order entity.
- Operator. This will guide the evaluation of the condition. Either 'includes' or 'does not include'
- Value. The specific value of the entity's property that is evaluated based on the operator.
Example: This condition evaluates whether or not the value for the 'Return reason' property of the 'Return order' entity includes the checked reasons.
These represent the available options for customers to choose from once the Conditions are fulfilled. Each Condition has two parts:
- Outcome Type. These include Return Methods, Shipping Methods, or Refund Methods.
- Value. These are the outcome options that will be made available when the rule's conditions are fulfilled.
Example: The outcome shows that when the condition(s) for the rule are fulfilled, the Return Method options that are checked will be available for the customer to select.
N.B. when rules conflict, none of the outcomes will be available for the customer.