# Overview

Shippit's Rules Engine lets you build business rules that modify how Shippit allocates orders to carriers. The Rules Engine helps you easily automate repetitive allocation decisions that are unique to your business, directly in Shippit.

With the Rules Engine, merchants can:

**Respond to problems fast:**Override default carrier allocation instantly when carriers can’t service freight.**Automate manual tasks:**Reduce manual carrier selection done by staff, reducing errors and time.**Optimise carrier cost management:**Map your carrier allocation preferences into Shippit to ensure optimal ROI on contracted carriers.

# Capabilities available

## Conditions

Create rules to control how Shippit allocates carriers to orders. All new orders that meet your selected conditions will automatically have actions applied to them. Here are the conditions available:

### Product Conditions

**Product SKU**: Also known as Stock Keeping Unit. This is not case sensitive. If a product SKU is any one of, not any one of, equal to, does not equal to, contains, does not contain the specified value, the condition is met.**Product Line ID**: For stock-keeping purposes, the product line ID represents the product line associated with a product. This is not case sensitive. If at least one of the Product Line IDs is any one of, not any one of, equal to, does not equal to, contains, does not contain the value specified, the condition is met.**Product Price**: This is also known as the retail value of the product. If at least one of the Product's Price is equal to, less than, less than or equal to, greater than, greater than or not equal to the value specified, the condition is met.**Product Title**: This is not case sensitive. If at least one of the Product Titles is any one of, not any one of, equal to, does not equal to, contains, does not contain the value specified, the condition is met.

### Order Conditions

**Packaging type**: This refers to the custom Package Types created in your Settings. If an order’s package type name is equal to, does not equal to, contains, does not contain the value specified, the condition is met.**Created day of the week**: This refers to whether an order was created on a specified day of the week (e.g. Monday or Friday). This is based on the store's time zone.**Created between time of day**: This refers to if an order was created between a time window defined between a 'Start Time' and 'End Time'. This is based on the store's time zone.**Created between dates**: This refers to if an order was created between a period defined by a 'Start Date' and 'End Date'. This is based on the store's time zone.**Total order value**: This is the sum of the retail value (i.e. price) of all the products in an order. If the sum of all products prices are equal to, less than, less than or equal to, greater than, greater than or not equal to the value specified, the condition is met.**Order deadweight**: For a single order, this is the sum of the deadweight of all included parcels.**Order volumetric Weight**: For a single order, this is the sum of the volumetric weight of all included parcels. Volumetric weight is calculated by length (in cm) * width (in cm) * height (in cm) * 250 in kg.

### Parcel Conditions

**Parcel deadweight:**If the deadweight is equal to, not equal to, less than, less than or equal to, greater than, greater than or equal to a certain value, the condition is met.**Parcel volumetric weight:**If the volumetric weight is equal to, not equal to, less than, less than or equal to, greater than, greater than or equal to a certain value, the condition is met. Volumetric weight in the Rules Engine is calculated by length (in cm) * width (in cm) * height (in cm) * 250 in kg.**Maximum dimensions**: If the maximum dimensions for the order are equal to, not equal to, less than, less than or equal to, greater than, greater than or equal to a certain value, the condition is met.**Median dimensions:**If the median dimensions for the order are equal to, not equal to, less than, less than or equal to, greater than, greater than or equal to a certain value, then the action is applied. Note that median is the dimension that is not the maximum and minimum.**Minimum dimensions:**If the minimum dimensions for the order are equal to, not equal to, less than, less than or equal to, greater than, greater than or equal to a certain value, then the action is applied.

### Destination Conditions

**Delivery postcode:**If the postcode is any one of or not any one of a list of specified values, or contains or excludes the ranges of postcode specified, the condition is met.**Delivery location:**If the location contains or excludes the specified postcode & suburb combination, then the action is supplied. Note that the available postcode & suburb combinations you can select are based on your account's country. This condition is recommended for domestic destinations.**Delivery country:**If the location contains or excludes the selected country, then the action is applied. This condition is recommended for international destinations.

## Actions

**Do not allocate:**When the conditions are met, the order won’t be allocated to the selected carriers.

## Access levels

**Store rules:**Provides a single location to view and edit all store rules associated to a single store. Users can view company rules as well but cannot edit them.**Company rules:**Provides a single location to view and edit all rules set at a company & store levels. This use-case is only available if your user have access to the Head Office view. Also note that company rules can only be accessed and edited by the Head Office administrator.

# Learn more about Rules Engine

**Basics****Common use-cases**

**Specialised use-cases**