Create shipping rules - Results Filters

Create shipping rules - Results Filters

Shipping rules let you control which carriers and routes appear when you create a consignment. There are two types: Restrictions and Results filters.

A Results filter runs after MachShip prices a consignment. It compares the priced routes with each other on price, ETA and (for brokers) margin, then shows or removes the routes it targets.

Use a Results filter to:

  • prefer a carrier when its price is close to the cheapest
  • hide routes that are poor value
  • keep the price list short

The rule applies everywhere you create a consignment: the Create Consignment screen, quotes, imports and the API.

Note: A route is one carrier service on one carrier account, with its own price and ETA. One carrier can have several routes in the results.

To block or allow carriers based on the consignment's details, see Create Shipping Rules for Carrier Selection – Restrictions.

Results filter or Restriction?

  • Restriction checks each carrier, service and account by itself, against the consignment: its items, addresses, zones, questions and accounts. Use it to block or allow carriers. See Create Shipping Rules for Carrier Selection.
  • Results filter runs after pricing and compares the priced routes with each other. Use it when the decision depends on the other results, for example "use this carrier if it is within 5% of the cheapest".

Before you start

  • You need the Manage Shipping Rules permission (in the Broker permission set). This is the same permission as for setting (Shipping rules) Restrictions .
  • Open the correct parent or child account. The rule applies only to the account you create it in.
  • Conditions on cost and margin are available only to users who can see cost prices (broker and reseller users). Other users do not see these fields or the templates that use them.

How to create a Results filter shipping rule

  1. Go to Admin > Shipping Rules.
  2. Click Create Shipping Rule.
  3. Under Rule Type, select Results filter.
  4. Under Action, select Only show or Exclude.
  5. Enter a Priority, or keep the default of 10.

The Rule Type, Action and Priority fields for a Results filter

  1. Select a template under START FROM A TEMPLATE or use the BUILD MANUALLY section to build the conditions yourself. 
    Click Show all templates to see all ten templates

The Results filter templates

  1. Click Add Condition to start building the conditions yourself. 
  2. Under Then, click Add Action and select the carrier, service or account that the rule targets. To target every route, set Any carrier to Yes.
  3. Check the summary under This rule will apply. It shows the whole rule as a sentence.
  4. Enter a Name. Optionally, enter a Description, an Effective Date and an Expiry Date.
  5. Keep This shipping rule is enabled at Yes, then click Create Shipping Rule.

Note: You cannot change the rule type after you create the rule.

Note: The AI rule builder (Generate Rule) is not available for a Results filter. Use a template or build the conditions yourself.

What each field means

Action

  • Only show: when at least one targeted route matches the conditions, MachShip keeps every targeted route and removes all other routes. If no targeted route matches, nothing changes.
  • Exclude: MachShip removes each targeted route that matches the conditions. All other routes stay. If this removes every route, no price is shown.

Priority

A whole number of 0 or more. Results filters run in priority order, and lower numbers run first. Each filter works on the routes that the earlier filters left. Two filters with the same priority run in the order they were created.

Conditions (If)

Each condition has four parts:

  • Any: keep this at Any for Result comparison conditions. Each route has one set of comparison values, so Any and All give the same result.
  • Result comparison: the group of fields that compare a route with the other routes. You can also add conditions from the other groups, such as the destination state or the item weight, to apply the rule only to some consignments.
  • The field, for example Price vs cheapest (%). The table below explains each field.
  • The operator and the value, for example is at most 5.

All conditions in the list must match. To match one condition or another, click Add Group.

Result comparison fields

MachShip compares each route with the other priced routes, from every carrier. "Cheapest" and "fastest" always mean the cheapest or fastest other route, not the route itself.

FieldWhat it means
Price vs cheapest (%)How much more this route costs than the cheapest other route, as a percentage. 4 means 4% more. A negative number means this route is cheaper.
Price vs cheapest ($)The same difference, in dollars.
ETA vs cheapest (business days)How many business days later this route arrives than the cheapest other route. 1 means one day later, 0 means the same day, and -1 means one day sooner.
Price vs fastest (%)How much more this route costs than the fastest other route, as a percentage.
Price vs fastest ($)The same difference, in dollars.
ETA vs fastest (business days)How many business days later this route arrives than the fastest other route.
Cost vs lowest cost (%)How much more this route costs you than the lowest cost of the other routes, as a percentage. Cost permission only.
Margin vs cheapest (%)How much larger this route's margin (in dollars) is than the cheapest other route's margin, as a percentage. Cost permission only.
Margin vs cheapest ($)The same difference, in dollars. Cost permission only.
Margin (%)This route's margin as a percentage of its price. Cost permission only.
Margin ($)This route's price minus its cost. Cost permission only.
Price rank1 for the cheapest route, 2 for the next, and so on.
ETA rank1 for the route with the earliest ETA, 2 for the next, and so on.
Is cheapestYes when the route has price rank 1.
Is fastestYes when the route has ETA rank 1.
Is cheapest for its ETA dayYes when the route is the cheapest of the routes that arrive on the same day.
  • Price fields use the route's total price.
  • Business days do not include weekends or public holidays in the destination state.
  • A route with a $0 price is never the cheapest route. Its comparison fields have no value, so a condition on it does not match. When there is only one route, the "vs cheapest" and "vs fastest" fields have no value.

Then

Routes this rule tests, and keeps or removes. These are the targeted routes. Add a carrier, a carrier service, a carrier account, or a service and account combination. Any carrier set to Yes targets every route for the company.

Uses cost data

When a rule has a cost or margin condition, the rule shows Uses cost data after you save it. Users who cannot see cost prices cannot see this rule in the list. The rule still applies to their consignments.

Example 1: Prefer a carrier when it is close to the cheapest

You prefer one carrier. You will pay a little more for it, but not much more, and it must not be much slower.

  1. Select Results filter, then the Preferred carrier within tolerance template. The template sets the action to Only show and adds two conditions:
    • Price vs cheapest (%) is at most 5: the carrier costs at most 5% more than the cheapest other route.
    • ETA vs cheapest (business days) is at most 1: the carrier arrives at most 1 business day after the cheapest other route.
  2. Under Then, click Add Action, select Select Carrier, and select your preferred carrier.
  3. Enter a Name, for example "Prefer carrier within 5%", and click Create Shipping Rule.

The Preferred carrier within tolerance conditions with one carrier under Then

How it works on one consignment:

RoutePriceETAPrice vs cheapest (%)ETA vs cheapest (business days)
Carrier A Road$100Thursday-4-1
Carrier B Road (preferred)$104Friday41
Carrier C Express$130Wednesday30-1

Each route is compared with the cheapest other route, so the cheapest route gets negative numbers. Carrier B costs 4% more than Carrier A and arrives 1 business day later, so both conditions match. MachShip shows only Carrier B's routes. If Carrier B cost $106 (6% more), the rule would do nothing and all three routes would stay.

Note: With Only show, MachShip keeps every route of the targeted carrier when one of them matches. For example, it keeps both Carrier B Road and Carrier B Express. To keep one service only, target the carrier service instead of the carrier.

Tip: To always use your preferred carrier when it has a price, use the Preferred Carrier/Service If Available template.

Example 2: Hide routes that are poor value

You want to remove routes that cost much more than the cheapest but do not arrive sooner.

  1. Select Results filter, then the Hide poor-value routes template. The template sets the action to Exclude, sets Any carrier to Yes, and adds two conditions:
    • Price vs cheapest (%) is greater than 50: the route costs more than 50% above the cheapest other route.
    • ETA vs fastest (business days) is at least 0: the route does not arrive sooner than the fastest other route.
  2. Set Priority to 5, so that this filter runs before the filter in example 1.
  3. Enter a Name, for example "Hide poor-value routes", and click Create Shipping Rule.

The Exclude action with priority 5

The Hide poor-value routes conditions with Any carrier set to Yes

How it works on one consignment:

RoutePriceETAPrice vs cheapest (%)ETA vs fastest (business days)Result
Carrier A Road$100Thursday-381Stays, because it is the cheapest
Carrier B Road$160Friday602Removed
Carrier C Express$170Wednesday70-1Stays, because it arrives sooner

Example 3: Steer to a route with a better margin (brokers)

You are a broker. You want to steer your customers to a carrier that gives you a better margin, but only when your customer pays almost the same price and gets the freight at the same time or sooner.

  1. Select Results filter, click Show all templates, then select Margin steering. The template sets the action to Only show and adds three conditions:
    • Margin vs cheapest (%) is at least 10: your margin on this carrier is at least 10% larger than your margin on the cheapest other route.
    • Price vs cheapest (%) is at most 3: your customer pays at most 3% more than the cheapest other route.
    • ETA vs cheapest (business days) is at most 0: the carrier arrives on the same day as the cheapest other route, or sooner.
  2. Under Then, add the carrier.
  3. Enter a Name, for example "Steer to better margin", and click Create Shipping Rule.

The Margin steering conditions with one carrier under Then

How it works on one consignment:

RoutePriceCostMarginMargin vs cheapest (%)Price vs cheapest (%)ETA
Carrier A Road$100$90$10-17-2Thursday
Carrier B Road (targeted)$102$90$12202Thursday

Your margin on Carrier B is $2 more, which is 20% more than on Carrier A. Your customer pays 2% more, and the freight arrives on the same day. All three conditions match, so MachShip shows only Carrier B's routes.

After you save the rule, it shows Uses cost data.

A saved Results filter with the Uses cost data indicator

Note: The price cap is part of the template so that your customers do not pay much more without knowing. Keep a price condition when you change this rule.

Result

Your Results filters show in the Shipping Rules list, with their Rule Type, Action and Priority.

The Shipping Rules list with three Results filters

When you generate routes on a consignment, the price list shows only the routes that are left after the filters. Click the rules applied button next to the route list to see which rule removed which route (Blocked) and which routes it kept (Info).

The rules applied panel after an Only show filter kept one carrier

Tip: There is no preview for a rule. To test a new rule, generate routes on a consignment and open the rules applied panel.

When a Results filter does not apply

  • When you edit or reprice an existing consignment.
  • When an API request names a carrier service or carrier account. The request already chose the route.
  • A Results filter cannot bring back a route that a Restriction rule or a shipping modifier removed.
  • For a consignment with several legs, MachShip filters each leg by itself. It does not compare the totals of the whole journey.

Note: An Exclude filter can remove every route. Then the consignment shows no prices and cannot be booked automatically. Check the priority order and the conditions of your filters.

FAQ

Does a Results filter change prices?

No. It only shows or removes routes. To change a price, use a shipping modifier.

Which runs first, a Restriction or a Results filter?

Restriction rules and shipping modifiers run first. Results filters run after pricing, in priority order.

Why did my Only show filter do nothing?

No targeted route matched the conditions, or the targeted carrier had no price for that consignment. In both cases MachShip shows the routes as usual.

Can my customers see my margin rules?

No. Users who cannot see cost prices cannot see a rule that shows Uses cost data. The rule still applies to their consignments.

Why can I not see the margin and cost fields?

Only users who can see cost prices (broker and reseller users) can use cost and margin fields and the templates that use them.

Can I change a Restriction into a Results filter?

No. You cannot change the rule type after you create the rule. Create a new rule and disable the old one.

What happens when I clone a Results filter?

The copy is disabled. Check it, then enable it.

Can I stop a Results filter for a short time?

Yes. Disable the rule from the Shipping Rules list, or set an Effective Date and Expiry Date.