Order Fulfillment Process — Mermaid Flowchart
Flowchart showing e-commerce order fulfillment from placement through payment, picking, shipping, and delivery.
What this diagram shows
This Mermaid flowchart starts when an order is placed. Payment is verified or the order is declined. A fraud check either clears the order or sends it to manual review, which can approve it into inventory or reject it into a refund. Inventory either picks the items or creates a backorder and emails the customer. Picked items go through quality control, which loops back to replace a failed item. Passing QC leads to pack, label, carrier handoff, a tracking email, delivery, and a review request.
Use it for a warehouse SOP where the expensive branches are fraud and stock, not the happy-path pack steps. Manual review is a rectangle with two exits, not a second fraud diamond, because a person is doing the judgment the first check already flagged. The QC loop can cycle. There is no maximum replace count, which you should add if the real floor scraps an order after two failures.
Backorder does not rejoin the pick path. The template notifies the customer and stops. If a later receipt should resume picking, that edge is missing on purpose so the delay is visible.
Mermaid syntax in this template
flowchart TD. Diamonds are payment, fraud, and stock. The QC result is also a diamond. Rectangles are the physical steps.
Verify{Payment Verified?}No declines the order. Yes continues to fraud. Keep the question mark in the label so it reads as a check.
ManualReview -->|Approved| InventoryThe edge lands on the same inventory diamond the clear fraud path uses. Both ways into the warehouse share one stock check.
QC -->|Fail| ReplaceReplace points back at QC. That is the rework loop.
Backorder --> NotifyThe out-of-stock path ends at the delay email. It does not point at Pick.
Variations and ways to customize it
Resume picking when stock arrives
Draw the backorder queue into Pick when the receipt happens, and keep the delay email. The customer was already told to wait.
Backorder --> Notify[Notify Customer of Delay]
Backorder --> Pick[Pick Items from Warehouse]Cap quality-control retries
A second diamond after Replace stops an endless loop. The scrap path should refund or reorder, using the refund node that already exists for fraud.
Replace --> Tries{Under 2 Replacements?}
Tries -->|No| Refund[Issue Refund]
Tries -->|Yes| QCSplit domestic and international labels
After Pack, a diamond on destination can choose a carrier. Both edges should still reach the tracking email so that step is not duplicated.
Diagram type
FlowchartTags
Frequently asked questions
What happens to an out-of-stock order in this flowchart?
The inventory diamond's No branch creates a backorder and sends a delay email. It does not continue to pick, pack, or ship. Add an edge back to Pick if a restock should resume the order.
Where does a fraud rejection go?
Manual review can reject into Issue Refund. A failed payment never reaches fraud; it declines at the first diamond. A clear fraud check skips the reviewer and goes straight to the stock check.
How is a failed quality check shown?
QC's Fail edge goes to Replace Item, and Replace returns to QC. There is no scrap limit. Add a counter diamond if the warehouse will not replace forever.
Does the customer get tracking before delivery?
Yes. After the carrier handoff, Send Tracking Email points at Delivered, then Request Review. The review ask is the last node.
Related templates and guides
All Business Process templatesPurchase Approval Process
Flowchart for a multi-level purchase approval process with budget thresholds and sign-off requirements.
Customer Onboarding Journey
User journey map showing the customer onboarding experience from signup through activation and first value.
Decision Tree Logic
Flowchart showing a branching decision tree for customer routing, support triage, or recommendation logic.
Mermaid flowchart syntax
Decision diamonds and the rework loop used for fraud, stock, and QC.
Flowchart syntax guide
How to label edges when you add a carrier split after packing.