Skip to Content
DispatchersAssignments

Dispatcher Assignments

The most common use of dispatchers is assigning orders to specific fulfillment paths.

Warehouse Assignment

Tag orders with warehouse identifiers:

{ "name": "East Coast orders", "conditions": { "operator": "or", "conditions": [ { "field": "shippingAddress.state", "operator": "in", "value": ["NY", "NJ", "CT", "MA", "PA"] } ] }, "action": { "type": "add_tag", "value": "warehouse:east" } }

Carrier Assignment

Route to specific carriers based on criteria:

{ "name": "Heavy items to freight", "conditions": { "field": "metadata.totalWeight", "operator": "gt", "value": 150 }, "action": { "type": "add_tag", "value": "carrier:freight" } }

Priority Routing

Escalate high-value or time-sensitive orders:

{ "name": "Express for VIP", "priority": 1, "stopOnMatch": true, "conditions": { "operator": "and", "conditions": [ { "field": "tags", "operator": "contains", "value": "vip" }, { "field": "totalPrice", "operator": "gte", "value": 200 } ] }, "action": { "type": "add_tag", "value": "shipping:express" } }

Combining Multiple Dispatchers

Use priority ordering to build a routing pipeline:

PriorityNameConditionAction
1VIP ExpressVIP tag + $200+Tag: shipping:express (stop)
10East CoastStates: NY, NJ, etc.Tag: warehouse:east
10West CoastStates: CA, WA, etc.Tag: warehouse:west
20Cold ChainTag: perishableTag: carrier:coldtrack
99DefaultAll othersTag: warehouse:central