E-commerce · n8n
Flag Orders That Would Ship at a Loss Before Fulfillment
Protect profit — catch orders where discounts, shipping and costs would result in a negative margin, and hold them for review.
difficulty Advancedsetup 40 minresult Loss-making orders are flagged before shipping so you can fix pricing or shipping rules.—
- 1
Trigger on New Orders
Add a
Shopify Triggernode on new orders. - 2
Compute the Margin
Add a
Codenode subtracting product cost, shipping and fees from the order total. - 3
Detect a Loss
Add an
IFnode continuing when the margin is negative. - 4
Flag for Review
Add a
Slacknode posting the loss-making order with the margin breakdown. - 5
Activate and Test
Activate the workflow and place a heavily discounted test order. Confirm it's flagged.
Frequently asked questions
How does an order go negative?
Stacked discounts, free shipping on heavy items, or mispriced SKUs — the flag catches all of them.
Should I auto-cancel?
Hold for review rather than cancel; often you'll honor it once but fix the rule causing the loss.
About this recipe. Recipes on FlowRecipesHub are written for business owners, not developers, and are tested before publishing — how recipes get made. Some ingredient links are affiliate links that cost you nothing — full disclosure.