String
Automation rules

Does the Order of ShipStation Automation Rules Matter?

Published

Short answer: Yes. ShipStation runs your automation rules from the top of the list to the bottom, and when two rules set the same thing, the lower one wins. Some rules also depend on something an earlier rule set: a rate needs the package first, and carrier insurance needs the service first. Put each rule below whatever it depends on, and above anything you want it to override.

Rules run top to bottom, and the last one wins

Within the Automation Rules list, every rule that matches an order applies, in order. If rule 3 sets the service to Ground and rule 9 sets it to 2Day, the order ends up on 2Day. Nothing tells you rule 3 ran and was overwritten. The order’s activity log, in Order Details, shows what actually applied, but you have to know to look.

On accounts with ShipStation’s newer Automation Rules screen, rules sit inside workflows, and each workflow has its own trigger. The same top-to-bottom order applies within each workflow.

What runs before your rules

Automation rules are the last of several layers ShipStation applies, so they can override all of them:

  1. Auto-Routing and Auto-Split, where your plan includes them
  2. SmartFill, which fills weight and dimensions from your recent shipments
  3. Preset Groups
  4. Product Defaults
  5. Service Mapping
  6. Automation Rules

That’s why a rule can quietly undo a Product Default you set months ago. It’s also why a value from SmartFill only survives on orders nothing else touched. The full order of operations covers each layer.

Which rules have to come first

These pairs break when they’re in the wrong order:

  • Package before rate shopping. A rate is quoted for the package on the order, so the rule that sets dimensions or applies Recommend Package has to sit above the rule that applies a rate shopper. ShipStation’s own Rate Shopper setup says the dimensions rule must come first.
  • The packing rule above any rule it should override, and below any it shouldn’t. A rule below Recommend Package that sets a package replaces the plan.
  • Service before carrier insurance. A rule that adds carrier-specific insurance fails if no earlier rule set the service.
  • A tag before any rule that reads it. Tags on products and customers are applied at import, before any rule runs, so they’re always safe. A tag applied by a rule is only visible to rules below it.

Stopping the rules below

The Stop Processing Rules for the Order action stops every rule after it from running on that order. Use it when an early rule has made the final decision for a set of orders, and you don’t want a general rule further down to change it.

Two failures that look like order problems

  • A blank rule stops everything under it. ShipStation’s troubleshooting guide says a rule with blank criteria or a blank action fails, and so does every rule after it. One half-finished rule near the top can switch off most of your list with no warning.
  • Rules run once. Classic rules run when an order first arrives in Awaiting Shipment or On Hold. Editing the order afterwards doesn’t re-run them. Reprocess Automation Rules re-runs them on everything in Awaiting Shipment, though it deliberately doesn’t re-apply weight adjustments.

A simple way to order a list

Group rules by what they decide, in the order the decisions depend on each other:

  1. Classify: rules that only add tags.
  2. Package: rules that set the box or apply Recommend Package.
  3. Service and rate: rules that set a service or apply a rate shopper.
  4. Everything that needs the service: insurance, confirmation, carrier options.
  5. Exceptions: holds, alerts and notes for orders a person needs to see.

A list kept in that order is much easier to reason about when something goes wrong. If a rule matches orders it shouldn’t, see why ShipStation automation rules don’t apply.



Worth reading next

When the rule can't express it

Eight situations where the decision depends on something an automation rule cannot see.