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:
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.
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.
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.
Each condition has four parts:
All conditions in the list must match. To match one condition or another, click Add Group.
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.
| Field | What 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 rank | 1 for the cheapest route, 2 for the next, and so on. |
| ETA rank | 1 for the route with the earliest ETA, 2 for the next, and so on. |
| Is cheapest | Yes when the route has price rank 1. |
| Is fastest | Yes when the route has ETA rank 1. |
| Is cheapest for its ETA day | Yes when the route is the cheapest of the routes that arrive on the same day. |
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.
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.
You prefer one carrier. You will pay a little more for it, but not much more, and it must not be much slower.
How it works on one consignment:
| Route | Price | ETA | Price vs cheapest (%) | ETA vs cheapest (business days) |
|---|---|---|---|---|
| Carrier A Road | $100 | Thursday | -4 | -1 |
| Carrier B Road (preferred) | $104 | Friday | 4 | 1 |
| Carrier C Express | $130 | Wednesday | 30 | -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.
You want to remove routes that cost much more than the cheapest but do not arrive sooner.
How it works on one consignment:
| Route | Price | ETA | Price vs cheapest (%) | ETA vs fastest (business days) | Result |
|---|---|---|---|---|---|
| Carrier A Road | $100 | Thursday | -38 | 1 | Stays, because it is the cheapest |
| Carrier B Road | $160 | Friday | 60 | 2 | Removed |
| Carrier C Express | $170 | Wednesday | 70 | -1 | Stays, because it arrives sooner |
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.
How it works on one consignment:
| Route | Price | Cost | Margin | Margin vs cheapest (%) | Price vs cheapest (%) | ETA |
|---|---|---|---|---|---|---|
| Carrier A Road | $100 | $90 | $10 | -17 | -2 | Thursday |
| Carrier B Road (targeted) | $102 | $90 | $12 | 20 | 2 | Thursday |
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.
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.
Your Results filters show in the Shipping Rules list, with their Rule Type, Action and Priority.
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).
Tip: There is no preview for a rule. To test a new rule, generate routes on a consignment and open the rules applied panel.
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.
No. It only shows or removes routes. To change a price, use a shipping modifier.
Restriction rules and shipping modifiers run first. Results filters run after pricing, in priority order.
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.
No. Users who cannot see cost prices cannot see a rule that shows Uses cost data. The rule still applies to their consignments.
Only users who can see cost prices (broker and reseller users) can use cost and margin fields and the templates that use them.
No. You cannot change the rule type after you create the rule. Create a new rule and disable the old one.
The copy is disabled. Check it, then enable it.
Yes. Disable the rule from the Shipping Rules list, or set an Effective Date and Expiry Date.