Step 3: Customize your fulfillment flow
DropStream’s automation runs on Business Rules. A rule fires on a specific event — a new order coming in from your Store, a shipment notification coming back from your Warehouse, a return, a purchase order, or an invoice export — and can transform, filter, or enrich the data as it passes through.
Most accounts need at least one rule before orders can ship: a Shipping Rule that maps the shipping descriptions used by your Store (e.g. “Free Shipping”, “Expedited”) to the carrier codes used by your Warehouse. Different warehouses use different carrier codes, and DropStream needs to know which codes apply to your account.
Every order needs a Carrier Name, a Service Level, and a Warehouse Shipping Code before DropStream can send it to the warehouse, even if your warehouse system ignores the shipping method. The Shipping Rule sets all three. If no rule covers an order’s shipping description, the order stops in Error with the message “Shipping method was not selected for this order. Please check shipment rules in store settings.” and is not sent to the warehouse.
Rules belong to a Store, so a new Store has none: its first orders stop in Error until you add a Shipping Rule for it.
Before you start: add your warehouse’s carrier codes
The Shipping Rule picks from your account’s Warehouse Carrier Codes, and the list is empty until codes exist. Add the codes your warehouse system uses first. See Upload Carrier Codes.
Open Business Rules
In the left navigation, expand Automation and click Rules.
Rules are grouped by Merchant and then by Store, so you can see at a glance which Stores have rules and which don’t.
Create a Shipping Rule
-
In the top-right of the Business Rules page, click New Rule.
-
Under Store, pick the Store this rule will run on. Under Hook, choose Order Import — the event that fires when DropStream pulls a new order from the Store. Click Continue to editor.
-
The visual rule editor opens with an empty canvas. Click Start Building (on some accounts the button reads Build manually), then in the Add Statement dialog choose the Shipping Rule template and click Add Statement.
The template drops a
WHEN/THENscaffold onto the canvas: a condition that matches an order’s external shipping description, and ashipping_transformationaction that sets the warehouse carrier code. -
Click the
WHENnode to open its Configuration panel on the right. Set the Field toexternal_shipping_description, the Operator to is, and the value to the exact shipping description that comes from your Store (for example,Free Shipping). is compares the whole description, including punctuation and spacing, soStandarddoesn’t matchStandard (Standard). -
Click the
shipping_transformationnode underTHEN. In its Configuration panel, choose a Carrier Mapping from your Warehouse Carrier Codes. The panel shows Will set: with the three values the rule sets on the order: carrier name, warehouse shipping code, and service level. -
Give the rule a name (click the pencil icon next to New Rule at the top), then click Save in the top-right. New rules are created Inactive — open the rule’s More actions menu and activate it when you’re ready for it to run.
To handle additional shipping descriptions, either add another
WHEN block to the same rule and repeat steps 4–5 (each block matches
a different description and can set a different Carrier Mapping), or,
when several descriptions should use the same Carrier Mapping, click
Add condition in the WHEN node’s Configuration panel, then click
the AND between the conditions to switch it to OR. A description that no block covers leaves the order in
Error, so add new descriptions as they appear.
Before you activate the rule, try it against a real order on the editor’s Test tab.
Fix orders already in Error
Adding the method in your warehouse system doesn’t clear the error; the Shipping Rule has to cover the order’s shipping description. Once the rule is active, process the affected orders again with Reprocess or Reset. See What is the difference between resetting and reprocessing an order? Processing the order again without fixing the rule changes nothing.
If you change a carrier code later
The rule keeps its own copy of the carrier name, code, and service level from when you selected the Carrier Mapping. After you edit a carrier code or its description, open each rule that uses it, select the Carrier Mapping again, and save. Then process the affected orders again.
Tip: Once you have orders flowing into DropStream, you can find the exact shipping descriptions on the order’s detail page under Sales Orders → Orders.
The Shipping Rule is the only rule most accounts strictly need. The rules engine also supports filtering, data enrichment, branching flow control, and custom code, all from the same visual editor.
Comments
Please sign in to leave a comment.